Skip to content

Commit

Permalink
1.2.004修改打包
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwenping committed May 12, 2017
1 parent 6575e69 commit 1132997
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.snowcattle.game</groupId>
<artifactId>game-sharding-db</artifactId>
<version>1.2.002</version>
<version>1.2.004</version>

<repositories>
<repository>
Expand All @@ -30,7 +30,7 @@
<mysql.version>5.1.30</mysql.version>
<commons.dbcp.version>1.4</commons.dbcp.version>
<GameThreadPool.version>1.1</GameThreadPool.version>
<redis-game-transaction.version>1.8.009</redis-game-transaction.version>
<redis-game-transaction.version>1.8.010</redis-game-transaction.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -218,16 +218,65 @@
</dependencies>

<build>

<resources>
<resource>
<directory>src/main/Java</directory>
<!-- 包含 -->
<includes>
<include>**/*.vm</include>
<include>**/*.properties</include>
</includes>
<!-- 排除 -->
<excludes>
<exclude>**/*.xml</exclude>
</excludes>
</resource>
</resources>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>${project.build.sourceEncoding}</encoding>
<generatedSourcesDirectory>${project.build.directory}</generatedSourcesDirectory>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<!-- 定义在prepare-package时将classes/com打jar -->
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classesDirectory>${project.basedir}/target/classes</classesDirectory>
<includes>
<include>com/**</include>
</includes>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase><!-- 要绑定到的生命周期的阶段 在verify之后,install之前执行下面指定的goal -->
<goals>
<goal>jar-no-fork</goal><!-- 类似执行mvn source:jar -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 1132997

Please sign in to comment.