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

23
pom.xml
View File

@ -205,6 +205,10 @@
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
</resource> </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> <resource>
<directory>../</directory> <directory>../</directory>
<includes> <includes>
@ -234,6 +238,25 @@
</excludes> </excludes>
</configuration> </configuration>
</plugin> </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> </plugins>
<pluginManagement> <pluginManagement>
<plugins> <plugins>