RESOLVED: Add parent pom for samples in assembly package. Now you can unzip and (cd samples/spring-batch-samples; mvn test). Cool.
This commit is contained in:
18
dist/pom.xml
vendored
18
dist/pom.xml
vendored
@@ -51,6 +51,24 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-parent-pom</id>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<copy file="../pom.xml" todir="target"/>
|
||||
</tasks>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
2
dist/src/assembly/docs.xml
vendored
2
dist/src/assembly/docs.xml
vendored
@@ -4,7 +4,7 @@
|
||||
<fileSet>
|
||||
<includes>
|
||||
<include>license.txt</include>
|
||||
<include>notice.txt</include>
|
||||
<include>notice.txt</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<lineEnding>unix</lineEnding>
|
||||
|
||||
8
dist/src/assembly/no-dependencies.xml
vendored
8
dist/src/assembly/no-dependencies.xml
vendored
@@ -44,12 +44,16 @@
|
||||
samples/${artifactId}
|
||||
</outputDirectoryMapping>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<fileSet>
|
||||
<includes>
|
||||
<include>pom.xml</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>bin/**</exclude>
|
||||
<exclude>target/**</exclude>
|
||||
<exclude>**/clover.license</exclude>
|
||||
<exclude>*.xml</exclude>
|
||||
<exclude>*.xml</exclude>
|
||||
<exclude>derby*/**</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
|
||||
13
dist/src/assembly/parent.xml
vendored
Normal file
13
dist/src/assembly/parent.xml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>target</directory>
|
||||
<outputDirectory>samples</outputDirectory>
|
||||
<includes>
|
||||
<include>pom.xml</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<lineEnding>unix</lineEnding>
|
||||
</fileSets>
|
||||
</component>
|
||||
1
dist/src/assembly/with-dependencies.xml
vendored
1
dist/src/assembly/with-dependencies.xml
vendored
@@ -5,6 +5,7 @@
|
||||
</formats>
|
||||
<componentDescriptors>
|
||||
<componentDescriptor>src/assembly/docs.xml</componentDescriptor>
|
||||
<componentDescriptor>src/assembly/parent.xml</componentDescriptor>
|
||||
</componentDescriptors>
|
||||
<includeBaseDirectory>true</includeBaseDirectory>
|
||||
<moduleSets>
|
||||
|
||||
Reference in New Issue
Block a user