Add profile for clover build (inactive by default)
This commit is contained in:
15
pom.xml
15
pom.xml
@@ -160,11 +160,12 @@
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<groupId>com.atlassian.maven.plugins</groupId>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
<version>2</version>
|
||||
<configuration>
|
||||
<licenseLocation>
|
||||
${basedir}/src/test/resources/clover.license
|
||||
${clover.license.path}
|
||||
</licenseLocation>
|
||||
</configuration>
|
||||
<executions>
|
||||
@@ -565,6 +566,11 @@
|
||||
<name>Lucas Ward</name>
|
||||
<email>lucas.l.ward@accenture.com</email>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>robokaso</id>
|
||||
<name>Robert Kasanicky</name>
|
||||
<email>robert.kasanicky@accenture.com</email>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<repositories>
|
||||
@@ -622,6 +628,11 @@
|
||||
https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext
|
||||
</url>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>atlassian-m2-repository</id>
|
||||
<name>Atlassian Maven 2.x Repository</name>
|
||||
<url>http://repository.atlassian.com/maven2</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>spring-batch-core</artifactId>
|
||||
@@ -16,6 +18,26 @@
|
||||
<relativePath>..</relativePath>
|
||||
</parent>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>clover</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.batch</groupId>
|
||||
@@ -37,7 +59,7 @@
|
||||
<groupId>easymock</groupId>
|
||||
<artifactId>easymock</artifactId>
|
||||
</dependency>
|
||||
<!-- Spring Dependencies -->
|
||||
<!-- Spring Dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-beans</artifactId>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>spring-batch-execution</artifactId>
|
||||
@@ -16,6 +18,26 @@
|
||||
<relativePath>..</relativePath>
|
||||
</parent>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>clover</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.batch</groupId>
|
||||
@@ -40,12 +62,12 @@
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib-nodep</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- Spring Dependencies -->
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib-nodep</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- Spring Dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-beans</artifactId>
|
||||
@@ -80,105 +102,159 @@
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<typedef resource="foundrylogic/vpp/typedef.properties" />
|
||||
<taskdef resource="foundrylogic/vpp/taskdef.properties" />
|
||||
<typedef
|
||||
resource="foundrylogic/vpp/typedef.properties" />
|
||||
<taskdef
|
||||
resource="foundrylogic/vpp/taskdef.properties" />
|
||||
<!-- Scripts for DAO tests - N.B. under source control. -->
|
||||
<vppcopy todir="${basedir}/src/test/resources/org/springframework/batch/execution/repository/dao" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/src/test/resources/org/springframework/batch/execution/repository/dao"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/hsqldb.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/hsqldb.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/hsqldb.vpp" />
|
||||
<property
|
||||
key="velocimacro.library" value="src/main/sql/hsqldb.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="*.sql.vpp" excludes="schema*" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="*.sql.vpp"
|
||||
excludes="schema*" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*.sql" />
|
||||
</vppcopy>
|
||||
<!-- Reference script for HSQLDB - N.B. not under source control, but packagaed in jar. -->
|
||||
<vppcopy todir="${basedir}/target/generated-resources" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/target/generated-resources"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/hsqldb.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/hsqldb.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/hsqldb.vpp" />
|
||||
<property
|
||||
key="velocimacro.library" value="src/main/sql/hsqldb.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*-hsqldb.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*-hsqldb.sql" />
|
||||
</vppcopy>
|
||||
<!-- Reference script for DB2 - N.B. not under source control, but packagaed in jar. -->
|
||||
<vppcopy todir="${basedir}/target/generated-resources" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/target/generated-resources"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/db2.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/db2.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/db2.vpp" />
|
||||
<property
|
||||
key="velocimacro.library" value="src/main/sql/db2.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*-db2.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*-db2.sql" />
|
||||
</vppcopy>
|
||||
<!-- Reference script for Derby - N.B. not under source control, but packagaed in jar. -->
|
||||
<vppcopy todir="${basedir}/target/generated-resources" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/target/generated-resources"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/derby.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/derby.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/derby.vpp" />
|
||||
<property
|
||||
key="velocimacro.library" value="src/main/sql/derby.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*-derby.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*-derby.sql" />
|
||||
</vppcopy>
|
||||
<!-- Reference script for Oracle - N.B. not under source control, but packagaed in jar. -->
|
||||
<vppcopy todir="${basedir}/target/generated-resources" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/target/generated-resources"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/oracle10g.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/oracle10g.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/oracle10g.vpp" />
|
||||
<property
|
||||
key="velocimacro.library"
|
||||
value="src/main/sql/oracle10g.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*-oracle10g.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*-oracle10g.sql" />
|
||||
</vppcopy>
|
||||
<!-- Reference script for PostgreSQL - N.B. not under source control, but packagaed in jar. -->
|
||||
<vppcopy todir="${basedir}/target/generated-resources" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/target/generated-resources"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/postgresql.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/postgresql.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/postgresql.vpp" />
|
||||
<property
|
||||
key="velocimacro.library"
|
||||
value="src/main/sql/postgresql.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*-postgresql.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*-postgresql.sql" />
|
||||
</vppcopy>
|
||||
<!-- Reference script for MySQL - N.B. not under source control, but packaged in jar. -->
|
||||
<vppcopy todir="${basedir}/target/generated-resources" overwrite="true">
|
||||
<vppcopy
|
||||
todir="${basedir}/target/generated-resources"
|
||||
overwrite="true">
|
||||
<config>
|
||||
<context>
|
||||
<property key="includes" value="src/main/sql" />
|
||||
<property file="${basedir}/src/main/sql/mysql.properties" />
|
||||
<property key="includes"
|
||||
value="src/main/sql" />
|
||||
<property
|
||||
file="${basedir}/src/main/sql/mysql.properties" />
|
||||
</context>
|
||||
<engine>
|
||||
<property key="velocimacro.library" value="src/main/sql/mysql.vpp" />
|
||||
<property
|
||||
key="velocimacro.library" value="src/main/sql/mysql.vpp" />
|
||||
</engine>
|
||||
</config>
|
||||
<fileset dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp" to="*-mysql.sql" />
|
||||
<fileset
|
||||
dir="${basedir}/src/main/sql" includes="schema.sql.vpp" />
|
||||
<mapper type="glob" from="*.sql.vpp"
|
||||
to="*-mysql.sql" />
|
||||
</vppcopy>
|
||||
</tasks>
|
||||
</configuration>
|
||||
|
||||
@@ -16,6 +16,26 @@
|
||||
<relativePath>..</relativePath>
|
||||
</parent>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>clover</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-clover-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
||||
Reference in New Issue
Block a user