Build all-in-one JAR on non-fullbuild.

This commit is contained in:
Trustin Lee 2012-06-13 14:03:57 +09:00
parent 31cebd7ce2
commit aa3be3e1e8
2 changed files with 94 additions and 81 deletions

View File

@ -171,6 +171,73 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Disable animal sniffer -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<!-- Disable checkstyle -->
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>check-style</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<!-- Disable all plugin executions configured by jar packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>default-resources</id>
<phase>none</phase>
</execution>
<execution>
<id>default-testResources</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>none</phase>
</execution>
<execution>
<id>default-testCompile</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>fullbuild</id>
<build>
<plugins>
<plugin> <plugin>
<artifactId>maven-jxr-plugin</artifactId> <artifactId>maven-jxr-plugin</artifactId>
<version>2.2</version> <version>2.2</version>
@ -246,66 +313,9 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Disable animal sniffer -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<!-- Disable checkstyle -->
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
<execution>
<id>check-style</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<!-- Disable all plugin executions configured by jar packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>default-resources</id>
<phase>none</phase>
</execution>
<execution>
<id>default-testResources</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>none</phase>
</execution>
<execution>
<id>default-testCompile</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</profile>
</profiles>
</project> </project>

15
pom.xml
View File

@ -66,6 +66,10 @@
</developer> </developer>
</developers> </developers>
<properties>
<jboss.marshalling.version>1.3.14.GA</jboss.marshalling.version>
</properties>
<modules> <modules>
<module>common</module> <module>common</module>
<module>buffer</module> <module>buffer</module>
@ -75,15 +79,18 @@
<module>handler</module> <module>handler</module>
<module>example</module> <module>example</module>
<module>testsuite</module> <module>testsuite</module>
<module>all</module>
</modules> </modules>
<profiles> <profiles>
<!-- Build all-in-one JAR, xref, Javadoc only on full build --> <!-- Build xref, Javadoc, and tarball only on full build -->
<profile> <profile>
<id>fullbuild</id> <id>fullbuild</id>
<!--
<modules> <modules>
<module>all</module> <module>tarball</module>
</modules> </modules>
-->
</profile> </profile>
</profiles> </profiles>
@ -217,10 +224,6 @@
</dependencies> </dependencies>
<properties>
<jboss.marshalling.version>1.3.14.GA</jboss.marshalling.version>
</properties>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>