Skip to content

Commit

Permalink
BATCH-1258: remove with-dependencies assembly from build
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed May 31, 2009
1 parent 77b349e commit 955045e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 357 deletions.
108 changes: 32 additions & 76 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.batch</groupId>
Expand Down Expand Up @@ -79,7 +78,6 @@
<configuration>
<descriptors>
<descriptor>src/assembly/no-dependencies.xml</descriptor>
<descriptor>src/assembly/with-dependencies.xml</descriptor>
</descriptors>
</configuration>
</execution>
Expand Down Expand Up @@ -131,8 +129,7 @@
<imgSrcPath>src/site/docbook/reference/</imgSrcPath>
<admonGraphicsPath>src/docbkx/resources/images/</admonGraphicsPath>
<postProcess>
<copy file="${basedir}/target/docbkx/pdf/index.pdf"
tofile="${basedir}/target/site/reference/pdf/spring-batch-docs.pdf"
<copy file="${basedir}/target/docbkx/pdf/index.pdf" tofile="${basedir}/target/site/reference/pdf/spring-batch-docs.pdf"
failonerror="false" />
</postProcess>
</configuration>
Expand Down Expand Up @@ -241,49 +238,17 @@
</goals>
<configuration>
<tasks>
<unzip dest="target/it/with-dep">
<fileset dir="target">
<include name="*with-dep*.zip" />
</fileset>
<regexpmapper from="^[^/]*/(.*)$$" to="\1"
handledirsep="true" />
</unzip>
<unzip dest="target/it/no-dep">
<fileset dir="target">
<include name="*no-dep*.zip" />
</fileset>
<regexpmapper from="^[^/]*/(.*)$$" to="\1"
handledirsep="true" />
<regexpmapper from="^[^/]*/(.*)$$" to="\1" handledirsep="true" />
</unzip>
<fail
message="Failed integration test of zip distro: Spring Batch jar files are missing.">
<condition>
<not>
<resourcecount count="3">
<fileset id="fs" dir="target/it/with-dep/dist"
includes="*.jar" />
</resourcecount>
</not>
</condition>
</fail>
<fail
message="Failed integration test of zip distro: dependency jar files are missing.">
<fail message="Failed integration test of zip distro: dist/* jar file count wrong.">
<condition>
<not>
<resourcecount count="1">
<fileset id="fs" dir="target/it/with-dep/sources/lib"
includes="org.springframework.beans-*.jar" />
</resourcecount>
</not>
</condition>
</fail>
<fail
message="Failed integration test of zip distro: test dependency jar files are missing.">
<condition>
<not>
<resourcecount count="1">
<fileset id="fs" dir="target/it/with-dep/sources/lib"
includes="com.springsource.org.junit-*.jar" />
<resourcecount count="6">
<fileset id="fs" dir="target/it/no-dep/dist" includes="spring-batch-*.jar" />
</resourcecount>
</not>
</condition>
Expand All @@ -294,8 +259,30 @@
</executions>
</plugin>
<plugin>
<!-- After the file count, we build the samples and archetypes as well -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<projectsDirectory>target/it/no-dep</projectsDirectory>
<localRepositoryPath>target/local-repo</localRepositoryPath>
<debug>true</debug>
<settingsFile>${basedir}/src/it/settings.xml</settingsFile>
<goals>
<goal>test</goal>
</goals>
<pomIncludes>
<pomInclude>samples/*/pom.xml</pomInclude>
</pomIncludes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -340,16 +327,6 @@
<url>http://people.apache.org/maven-snapshot-repository</url>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-8-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>manifest</id>
Expand Down Expand Up @@ -401,6 +378,10 @@
</extensions>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand All @@ -417,31 +398,6 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<projectsDirectory>target/it/no-dep</projectsDirectory>
<localRepositoryPath>target/local-repo</localRepositoryPath>
<debug>true</debug>
<settingsFile>${basedir}/src/it/settings.xml</settingsFile>
<goals>
<goal>test</goal>
</goals>
<pomIncludes>
<pomInclude>samples/*/pom.xml</pomInclude>
</pomIncludes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
78 changes: 1 addition & 77 deletions spring-batch-core/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,83 +1,7 @@
#Tue Aug 19 18:12:49 BST 2008
#Sat May 30 15:50:11 BST 2009
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=error
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=default
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeUncheckedExceptions=disabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
15 changes: 4 additions & 11 deletions spring-batch-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<artifactId>spring-batch-parent</artifactId>
<version>2.0.1.CI-SNAPSHOT</version>
<name>Spring Batch Parent</name>
<url>http://static.springframework.org/spring-batch</url>
<description>Spring Batch parent project. Defines dependencies and common configuration for the
build process.</description>
<packaging>pom</packaging>
Expand Down Expand Up @@ -92,21 +91,15 @@
<url>http://people.apache.org/maven-snapshot-repository</url>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-8-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<groupId>com.springsource.bundlor</groupId>
<artifactId>com.springsource.bundlor.maven</artifactId>
Expand Down
14 changes: 7 additions & 7 deletions src/assembly/no-dependencies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
<moduleSet>
<includes>
<include>
org.springframework.batch:org.springframework.batch.parent
org.springframework.batch:spring-batch-parent
</include>
<include>
org.springframework.batch:org.springframework.batch.test
org.springframework.batch:spring-batch-test
</include>
<include>
org.springframework.batch:org.springframework.batch.core
org.springframework.batch:spring-batch-core
</include>
<include>
org.springframework.batch:org.springframework.batch.infrastructure
org.springframework.batch:spring-batch-infrastructure
</include>
</includes>
<sources>
Expand All @@ -39,10 +39,10 @@
<moduleSet>
<includes>
<include>
org.springframework.batch:org.springframework.batch.samples
org.springframework.batch:spring-batch-samples
</include>
<include>
org.springframework.batch:org.springframework.batch.archetype.simple.cli
org.springframework.batch:spring-batch-simple-cli
</include>
</includes>
<sources>
Expand All @@ -62,7 +62,7 @@
<moduleSet>
<includes>
<include>
org.springframework.batch:org.springframework.batch.parent
org.springframework.batch:spring-batch-parent
</include>
</includes>
<sources>
Expand Down
Loading

0 comments on commit 955045e

Please sign in to comment.