提交 f502a624 编写于 作者: 武汉红喜's avatar 武汉红喜

maven插件版本升级并集中配置

上级 2f194111
# whatsmars # whatsmars
*`mvn clean package -Dmaven.test.skip`* `jdk8+` *`mvn clean package -Dmaven.test.skip`* `jdk8+` `maven3.3.1+`
<br>Java生态研究(Spring Boot + Redis + Dubbo + RocketMQ) <br>Java生态研究(Spring Boot + Redis + Dubbo + RocketMQ)
<br>Spring Boot 系列(Servlet, Tomcat, Spring, SpringMVC, Spring Boot) <br>Spring Boot 系列(Servlet, Tomcat, Spring, SpringMVC, Spring Boot)
......
...@@ -79,6 +79,11 @@ ...@@ -79,6 +79,11 @@
<java-source.version>1.8</java-source.version> <java-source.version>1.8</java-source.version>
<java-target.version>1.8</java-target.version> <java-target.version>1.8</java-target.version>
<file-encoding>UTF-8</file-encoding> <file-encoding>UTF-8</file-encoding>
<compiler-plugin.version>3.7.0</compiler-plugin.version>
<resources-plugin.version>3.0.2</resources-plugin.version>
<release-plugin.version>2.5.3</release-plugin.version>
<dependency-plugin.version>3.0.2</dependency-plugin.version>
<springloaded.version>1.2.6.RELEASE</springloaded.version>
<rootdir>${basedir}</rootdir> <rootdir>${basedir}</rootdir>
</properties> </properties>
...@@ -444,7 +449,7 @@ ...@@ -444,7 +449,7 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>${compiler-plugin.version}</version>
<configuration> <configuration>
<source>${java-source.version}</source> <source>${java-source.version}</source>
<target>${java-target.version}</target> <target>${java-target.version}</target>
...@@ -453,7 +458,7 @@ ...@@ -453,7 +458,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.6</version> <version>${resources-plugin.version}</version>
<configuration> <configuration>
<encoding>${file-encoding}</encoding> <encoding>${file-encoding}</encoding>
</configuration> </configuration>
...@@ -461,7 +466,7 @@ ...@@ -461,7 +466,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.1</version> <version>${release-plugin.version}</version>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
......
...@@ -101,29 +101,6 @@ ...@@ -101,29 +101,6 @@
<build> <build>
<finalName>${project.artifactId}</finalName> <finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java-source.version}</source>
<target>${java-target.version}</target>
<encoding>${file-encoding}</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>${file-encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
</plugin>
</plugins>
</build> </build>
......
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<description>The demo module of dubbo project</description> <description>The demo module of dubbo project</description>
<properties>
<skip_maven_deploy>true</skip_maven_deploy>
</properties>
</project> </project>
\ No newline at end of file
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version> <version>${dependency-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version> <version>${dependency-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>
......
...@@ -12,11 +12,9 @@ ...@@ -12,11 +12,9 @@
<artifactId>whatsmars-elasticjob</artifactId> <artifactId>whatsmars-elasticjob</artifactId>
<properties> <properties>
<java.version>1.7</java.version>
<elastic-job.version>2.1.5</elastic-job.version> <elastic-job.version>2.1.5</elastic-job.version>
<curator.version>2.10.0</curator.version> <curator.version>2.10.0</curator.version>
<h2.version>1.4.184</h2.version> <h2.version>1.4.184</h2.version>
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
</properties> </properties>
<dependencies> <dependencies>
......
...@@ -78,29 +78,6 @@ ...@@ -78,29 +78,6 @@
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
</resources> </resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java-source.version}</source>
<target>${java-target.version}</target>
<encoding>${file-encoding}</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>${file-encoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
</plugin>
</plugins>
</build> </build>
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<description>The demo module of motan project</description> <description>The demo module of motan project</description>
<properties> <properties>
<skip_maven_deploy>true</skip_maven_deploy>
<motan.version>1.0.0</motan.version> <motan.version>1.0.0</motan.version>
</properties> </properties>
<modules> <modules>
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId> <artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version> <version>${springloaded.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 --> <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
</resource> </resource>
</resources> </resources>
<plugins> <plugins>
<!-- 生成可执行jar和lib文件夹 -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
...@@ -68,11 +69,30 @@ ...@@ -68,11 +69,30 @@
<archive> <archive>
<addMavenDescriptor>true</addMavenDescriptor> <addMavenDescriptor>true</addMavenDescriptor>
<manifest> <manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>org.hongxi.whatsmars.tomcat.server.HttpServer</mainClass> <mainClass>org.hongxi.whatsmars.tomcat.server.HttpServer</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${dependency-plugin.version}</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册