Fix source archives

This commit is contained in:
moparisthebest 2014-04-22 08:32:49 -04:00
parent c050957b1e
commit 43396675b0
2 changed files with 24 additions and 9 deletions

View File

@ -28,7 +28,7 @@
<artifactId>beehive-jms-control</artifactId>
<name>beehive-jms-control</name>
<properties>
<gensrc.dir>${project.build.directory}/generated-sources</gensrc.dir>
<gensrc.dir>${project.build.outputDirectory}</gensrc.dir>
</properties>
<dependencies>
<dependency>
@ -46,14 +46,6 @@
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${gensrc.dir}</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>

23
pom.xml
View File

@ -205,6 +205,10 @@
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<!-- For generated sources, ugly hack, but maven-source-plugin can't do it any other way right now? -->
<directory>${project.build.outputDirectory}</directory>
</resource>
<resource>
<directory>../</directory>
<includes>
@ -234,6 +238,25 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*.class</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>