| <?xml version="1.0" encoding="UTF-8"?> |
| <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> |
| |
| <parent> |
| <groupId>org.apache.maven.grarchetype</groupId> |
| <artifactId>maven-grarchetype</artifactId> |
| <version>2.0-alpha-5-SNAPSHOT</version> |
| </parent> |
| <artifactId>grarchetype-common</artifactId> |
| <name>Maven GRArchetype Common</name> |
| <packaging>jar</packaging> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-model</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-project</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.groovy</groupId> |
| <artifactId>groovy-all</artifactId> |
| <version>1.6.0</version> |
| <!--version>1.6-RC-2</version--> |
| </dependency> |
| <dependency> |
| <groupId>jdom</groupId> |
| <artifactId>jdom</artifactId> |
| <version>1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.shared</groupId> |
| <artifactId>maven-plugin-testing-harness</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-file</artifactId> |
| <version>1.0-beta-2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.wagon</groupId> |
| <artifactId>wagon-http</artifactId> |
| <version>1.0-beta-2</version><!-- with 1.0-beta-4 some tests fail --> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.cargo</groupId> |
| <artifactId>cargo-core-api-container</artifactId> |
| <version>1.0-alpha-6</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.cargo</groupId> |
| <artifactId>cargo-core-api-util</artifactId> |
| <version>1.0-alpha-6</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.cargo</groupId> |
| <artifactId>cargo-core-api-generic</artifactId> |
| <version>1.0-alpha-6</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.cargo</groupId> |
| <artifactId>cargo-core-api-module</artifactId> |
| <version>1.0-alpha-6</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.cargo</groupId> |
| <artifactId>cargo-core-container-jetty</artifactId> |
| <version>1.0-alpha-6</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jetty</artifactId> |
| <version>6.1.11</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>${project.parent.groupId}</groupId> |
| <artifactId>grarchetype-repository</artifactId> |
| <version>${project.version}</version> |
| <type>war</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <systemProperties> |
| <property> |
| <name>maven.home</name> |
| <value>${maven.home}</value> |
| </property> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.modello</groupId> |
| <artifactId>modello-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>model</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>jdom-writer</goal> |
| </goals> |
| <configuration> |
| <model>src/main/mdo/maven.mdo</model> |
| <version>4.0.0</version> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.groovy.maven</groupId> |
| <artifactId>gmaven-plugin</artifactId> |
| <version>1.0-rc-5</version> |
| <configuration> |
| <providerSelection>1.6</providerSelection> |
| <!--providerSelection>1.6</providerSelection--> |
| </configuration> |
| <executions> |
| <execution> |
| <id>generate-sources</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>generateStubs</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>compile</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>test-compile</id> |
| <phase>test-compile</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>prepareRepositories</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| <configuration> |
| <source> |
| log.info "Preparing Repositories" |
| def dir = "${project.basedir}/target/repositories" |
| ant.delete dir: dir |
| ant.mkdir dir: dir |
| ant.copy( toDir: dir ) { |
| fileset dir: "${project.basedir}/src/test/repositories" |
| } |
| |
| def prepareArchetype = { archetype, archetypeVersion -> |
| if( project.packaging != 'pom' ) { |
| log.info "Preparing ${archetype}-${archetypeVersion} archetype..." |
| dir = "${project.basedir}/target/repositories/central/archetypes/${archetype}/${archetypeVersion}" |
| ant.mkdir dir: dir |
| ant.jar destFile: "${dir}/${archetype}-${archetypeVersion}.jar", basedir: "${project.basedir}/src/test/archetypes/${archetype}" |
| } |
| } |
| prepareArchetype 'nested-complete-main', '1.0' |
| prepareArchetype 'nested-complete-inner', '1.0' |
| prepareArchetype 'nested-complete-innest', '1.0' |
| |
| prepareArchetype 'nested-missing-main', '1.0' |
| prepareArchetype 'nested-missing-inner', '1.0' |
| |
| prepareArchetype 'basic', '1.0' |
| prepareArchetype 'basic-with-parent', '1.0' |
| prepareArchetype 'multi', '1.0' |
| prepareArchetype 'multi-with-parent', '1.0' |
| |
| prepareArchetype 'old', '1.0' |
| prepareArchetype 'nested-main', '1.0' |
| prepareArchetype 'nested-inner', '1.0' |
| prepareArchetype 'nested-innest', '1.0' |
| prepareArchetype 'nested-partial', '1.0' |
| </source> |
| </configuration> |
| </execution> |
| <execution> |
| <id>prepareProjects</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>execute</goal> |
| </goals> |
| <configuration> |
| <source> |
| log.info "Preparing projects..." |
| def dir = "${project.basedir}/target/projects" |
| ant.delete dir: dir |
| ant.mkdir dir: dir |
| ant.copy( toDir: dir ) { |
| fileset dir: "${project.basedir}/src/test/projects" |
| } |
| </source> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.plexus</groupId> |
| <artifactId>plexus-maven-plugin</artifactId> |
| <version>1.3.8</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>descriptor</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>process-test-resources</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/wars</outputDirectory> |
| <overWriteReleases>true</overWriteReleases> |
| <overWriteSnapshots>true</overWriteSnapshots> |
| <includeTypes>war</includeTypes> |
| <stripVersion>true</stripVersion> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>cobertura-maven-plugin</artifactId> |
| <version>2.2</version> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| <profiles> |
| <profile> |
| <id>internal-catalog</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <includes> |
| <include>**/InternalCatalogFromWiki.java</include> |
| </includes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |