<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
+ <artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
- <id>copy-argeo</id>
+ <id>prepare-source</id>
<phase>package</phase>
<goals>
- <goal>copy-dependencies</goal>
+ <goal>single</goal>
</goals>
<configuration>
- <includeTypes>jar</includeTypes>
- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory>
- <includeGroupIds>org.argeo.slc</includeGroupIds>
- <excludeTransitive>true</excludeTransitive>
- <excludeArtifactIds>org.argeo.slc.dep.minimal</excludeArtifactIds>
- <includeTypes>jar</includeTypes>
- <includeScope>runtime</includeScope>
- <useRepositoryLayout>true</useRepositoryLayout>
+ <descriptorRefs>
+ <descriptorRef>a2-source</descriptorRef>
+ </descriptorRefs>
</configuration>
</execution>
- <!-- <execution> -->
- <!-- <id>copy-argeo-self</id> -->
- <!-- <phase>package</phase> -->
- <!-- <goals> -->
- <!-- <goal>copy</goal> -->
- <!-- </goals> -->
- <!-- <configuration> -->
- <!-- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory> -->
- <!-- <useRepositoryLayout>true</useRepositoryLayout> -->
- <!-- <artifactItems> -->
- <!-- <artifactItem> -->
- <!-- <groupId>${project.groupId}</groupId> -->
- <!-- <artifactId>${project.artifactId}</artifactId> -->
- <!-- <version>${project.version}</version> -->
- <!-- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory> -->
- <!-- </artifactItem> -->
- <!-- </artifactItems> -->
- <!-- </configuration> -->
- <!-- </execution> -->
</executions>
</plugin>
+<!-- <plugin> -->
+<!-- <groupId>org.apache.maven.plugins</groupId> -->
+<!-- <artifactId>maven-dependency-plugin</artifactId> -->
+<!-- <executions> -->
+<!-- <execution> -->
+<!-- <id>copy-argeo</id> -->
+<!-- <phase>package</phase> -->
+<!-- <goals> -->
+<!-- <goal>copy-dependencies</goal> -->
+<!-- </goals> -->
+<!-- <configuration> -->
+<!-- <includeTypes>jar</includeTypes> -->
+<!-- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory> -->
+<!-- <includeGroupIds>org.argeo.slc</includeGroupIds> -->
+<!-- <excludeTransitive>true</excludeTransitive> -->
+<!-- <excludeArtifactIds>org.argeo.slc.dep.minimal</excludeArtifactIds> -->
+<!-- <includeTypes>jar</includeTypes> -->
+<!-- <includeScope>runtime</includeScope> -->
+<!-- <useRepositoryLayout>true</useRepositoryLayout> -->
+<!-- </configuration> -->
+<!-- </execution> -->
+<!-- </executions> -->
+<!-- </plugin> -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<directoryIncluded>true</directoryIncluded>
<sources>
<source>
- <location>${project.build.directory}/lib-argeo</location>
+ <location>${project.build.directory}/${project.artifactId}-${project.version}-a2-source</location>
<includes>
<include>**/*.jar</include>
</includes>