Use build-helper-maven-plugin instead of messy hack

This commit is contained in:
Trustin Lee 2012-06-13 17:12:51 +09:00
parent aa3be3e1e8
commit 98fb86fbf2
2 changed files with 22 additions and 36 deletions

1
all/.gitignore vendored
View File

@ -1 +0,0 @@
src

View File

@ -95,44 +95,11 @@
<version>2.5</version> <version>2.5</version>
<executions> <executions>
<execution> <execution>
<id>clean-src</id> <id>clean-first</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/src</directory>
<followSymlinks>false</followSymlinks>
<useDefaultExcludes>false</useDefaultExcludes>
</fileset>
<fileset>
<directory>${project.basedir}/target</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution>
<execution>
<id>clean-all</id>
<phase>generate-resources</phase> <phase>generate-resources</phase>
<goals> <goals>
<goal>clean</goal> <goal>clean</goal>
</goals> </goals>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/src</directory>
<followSymlinks>false</followSymlinks>
<useDefaultExcludes>false</useDefaultExcludes>
</fileset>
<fileset>
<directory>${project.basedir}/target</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
@ -150,7 +117,7 @@
<classifier>sources</classifier> <classifier>sources</classifier>
<includes>io/netty/**</includes> <includes>io/netty/**</includes>
<includeGroupIds>io.netty</includeGroupIds> <includeGroupIds>io.netty</includeGroupIds>
<outputDirectory>${project.basedir}/src/main/java</outputDirectory> <outputDirectory>${project.build.directory}/src</outputDirectory>
<overWriteReleases>false</overWriteReleases> <overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots> <overWriteSnapshots>true</overWriteSnapshots>
</configuration> </configuration>
@ -171,6 +138,25 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>target/src</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Disable animal sniffer --> <!-- Disable animal sniffer -->
<plugin> <plugin>
@ -289,6 +275,7 @@
<overview>${basedir}/src/javadoc/overview.html</overview> <overview>${basedir}/src/javadoc/overview.html</overview>
<doctitle>Netty API Reference (${project.version})</doctitle> <doctitle>Netty API Reference (${project.version})</doctitle>
<windowtitle>Netty API Reference (${project.version})</windowtitle> <windowtitle>Netty API Reference (${project.version})</windowtitle>
<detectJavaApiLink>false</detectJavaApiLink>
<additionalparam> <additionalparam>
-link http://docs.oracle.com/javase/7/docs/api/ -link http://docs.oracle.com/javase/7/docs/api/
-link http://code.google.com/apis/protocolbuffers/docs/reference/java/ -link http://code.google.com/apis/protocolbuffers/docs/reference/java/