|
104 | 104 |
|
105 | 105 | <build>
|
106 | 106 | <plugins>
|
| 107 | + <!--指定SpringBoot的启动类--> |
107 | 108 | <plugin>
|
108 | 109 | <groupId>org.springframework.boot</groupId>
|
109 | 110 | <artifactId>spring-boot-maven-plugin</artifactId>
|
110 | 111 | <version>${spring-boot.version}</version>
|
| 112 | + <configuration> |
| 113 | + <mainClass>com.xxl.job.admin.XxlJobAdminApplication}</mainClass> |
| 114 | + </configuration> |
111 | 115 | <executions>
|
112 | 116 | <execution>
|
113 | 117 | <goals>
|
|
116 | 120 | </execution>
|
117 | 121 | </executions>
|
118 | 122 | </plugin>
|
119 |
| - <!-- docker --> |
| 123 | + |
| 124 | + <!--指定项目的编译Java版本,设置为1.8就好了--> |
120 | 125 | <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> |
124 | 129 | <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> |
135 | 133 | </configuration>
|
136 | 134 | </plugin>
|
| 135 | +<!-- <!– docker –>--> |
| 136 | +<!-- <plugin>--> |
| 137 | +<!-- <groupId>com.spotify</groupId>--> |
| 138 | +<!-- <artifactId>docker-maven-plugin</artifactId>--> |
| 139 | +<!-- <version>0.4.13</version>--> |
| 140 | +<!-- <configuration>--> |
| 141 | +<!-- <!– made of '[a-z0-9-_.]' –>--> |
| 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>--> |
137 | 153 | </plugins>
|
138 | 154 | </build>
|
139 | 155 |
|
|
0 commit comments