Skip to content

Commit b11aefb

Browse files
committed
ci
1 parent 1865ff9 commit b11aefb

File tree

2 files changed

+30
-67
lines changed

2 files changed

+30
-67
lines changed

pom.xml

-53
Original file line numberDiff line numberDiff line change
@@ -67,59 +67,6 @@
6767
</developer>
6868
</developers>
6969

70-
<build>
71-
<plugins>
72-
<!-- Source -->
73-
<plugin>
74-
<groupId>org.apache.maven.plugins</groupId>
75-
<artifactId>maven-source-plugin</artifactId>
76-
<version>${maven-source-plugin.version}</version>
77-
<executions>
78-
<execution>
79-
<phase>package</phase>
80-
<goals>
81-
<goal>jar-no-fork</goal>
82-
</goals>
83-
</execution>
84-
</executions>
85-
</plugin>
86-
<!-- Javadoc -->
87-
<plugin>
88-
<groupId>org.apache.maven.plugins</groupId>
89-
<artifactId>maven-javadoc-plugin</artifactId>
90-
<version>${maven-javadoc-plugin.version}</version>
91-
<executions>
92-
<execution>
93-
<phase>package</phase>
94-
<goals>
95-
<goal>jar</goal>
96-
</goals>
97-
<configuration>
98-
<doclint>none</doclint>
99-
</configuration>
100-
</execution>
101-
</executions>
102-
</plugin>
103-
<!-- GPG -->
104-
<plugin>
105-
<groupId>org.apache.maven.plugins</groupId>
106-
<artifactId>maven-gpg-plugin</artifactId>
107-
<version>${maven-gpg-plugin.version}</version>
108-
<configuration>
109-
<useAgent>false</useAgent>
110-
</configuration>
111-
<executions>
112-
<execution>
113-
<phase>verify</phase>
114-
<goals>
115-
<goal>sign</goal>
116-
</goals>
117-
</execution>
118-
</executions>
119-
</plugin>
120-
</plugins>
121-
</build>
122-
12370

12471
<distributionManagement>
12572
<repository>

xxl-job-admin/pom.xml

+30-14
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,14 @@
104104

105105
<build>
106106
<plugins>
107+
<!--指定SpringBoot的启动类-->
107108
<plugin>
108109
<groupId>org.springframework.boot</groupId>
109110
<artifactId>spring-boot-maven-plugin</artifactId>
110111
<version>${spring-boot.version}</version>
112+
<configuration>
113+
<mainClass>com.xxl.job.admin.XxlJobAdminApplication}</mainClass>
114+
</configuration>
111115
<executions>
112116
<execution>
113117
<goals>
@@ -116,24 +120,36 @@
116120
</execution>
117121
</executions>
118122
</plugin>
119-
<!-- docker -->
123+
124+
<!--指定项目的编译Java版本,设置为1.8就好了-->
120125
<plugin>
121-
<groupId>com.spotify</groupId>
122-
<artifactId>docker-maven-plugin</artifactId>
123-
<version>0.4.13</version>
126+
<groupId>org.apache.maven.plugins</groupId>
127+
<artifactId>maven-compiler-plugin</artifactId>
128+
<version>3.10.0</version>
124129
<configuration>
125-
<!-- made of '[a-z0-9-_.]' -->
126-
<imageName>${project.artifactId}:${project.version}</imageName>
127-
<dockerDirectory>${project.basedir}</dockerDirectory>
128-
<resources>
129-
<resource>
130-
<targetPath>/</targetPath>
131-
<directory>${project.build.directory}</directory>
132-
<include>${project.build.finalName}.jar</include>
133-
</resource>
134-
</resources>
130+
<source>1.8</source>
131+
<target>1.8</target>
132+
<encoding>UTF-8</encoding>
135133
</configuration>
136134
</plugin>
135+
<!-- &lt;!&ndash; docker &ndash;&gt;-->
136+
<!-- <plugin>-->
137+
<!-- <groupId>com.spotify</groupId>-->
138+
<!-- <artifactId>docker-maven-plugin</artifactId>-->
139+
<!-- <version>0.4.13</version>-->
140+
<!-- <configuration>-->
141+
<!-- &lt;!&ndash; made of '[a-z0-9-_.]' &ndash;&gt;-->
142+
<!-- <imageName>${project.artifactId}:${project.version}</imageName>-->
143+
<!-- <dockerDirectory>${project.basedir}</dockerDirectory>-->
144+
<!-- <resources>-->
145+
<!-- <resource>-->
146+
<!-- <targetPath>/</targetPath>-->
147+
<!-- <directory>${project.build.directory}</directory>-->
148+
<!-- <include>${project.build.finalName}.jar</include>-->
149+
<!-- </resource>-->
150+
<!-- </resources>-->
151+
<!-- </configuration>-->
152+
<!-- </plugin>-->
137153
</plugins>
138154
</build>
139155

0 commit comments

Comments
 (0)