http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-model/src/main/java/org/company/proficio/model/Model.java ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-model/src/main/java/org/company/proficio/model/Model.java b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-model/src/main/java/org/company/proficio/model/Model.java deleted file mode 100644 index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/pom.xml b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/pom.xml deleted file mode 100644 index 5973da6..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/pom.xml +++ /dev/null @@ -1,19 +0,0 @@ -<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>com.company.proficio</groupId> - <artifactId>proficio</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - - <artifactId>proficio-stores</artifactId> - - <name>proficio stores</name> - <packaging>pom</packaging> - - <modules> - <module>proficio-store-memory</module> - <module>proficio-store-xstream</module> - </modules> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.checkstyle ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.checkstyle b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.checkstyle deleted file mode 100644 index 407fd33..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.checkstyle +++ /dev/null @@ -1 +0,0 @@ -azae \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.classpath ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.classpath b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.classpath deleted file mode 100644 index 807b540..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/.classpath +++ /dev/null @@ -1,2 +0,0 @@ -org/apache/maven/archetype/test -A String to search for \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/pom.xml b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/pom.xml deleted file mode 100644 index 28610c3..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ -<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>com.company.proficio</groupId> - <artifactId>proficio-stores</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - - <artifactId>proficio-store-memory</artifactId> - - <name>proficio store memory</name> - - <dependencies> - <dependency> - <groupId>com.company.proficio</groupId> - <artifactId>proficio-api</artifactId> - <version>1.0-SNAPSHOT</version> - </dependency> - </dependencies> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/src/main/java/com/company/proficio/store/memory/Memory.java ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/src/main/java/com/company/proficio/store/memory/Memory.java b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-memory/src/main/java/com/company/proficio/store/memory/Memory.java deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.checkstyle ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.checkstyle b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.checkstyle deleted file mode 100644 index 407fd33..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.checkstyle +++ /dev/null @@ -1 +0,0 @@ -azae \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.classpath ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.classpath b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.classpath deleted file mode 100644 index 807b540..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/.classpath +++ /dev/null @@ -1,2 +0,0 @@ -org/apache/maven/archetype/test -A String to search for \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/pom.xml b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/pom.xml deleted file mode 100644 index 4f19eb1..0000000 --- a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ -<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>com.company.proficio</groupId> - <artifactId>proficio-stores</artifactId> - <version>1.0-SNAPSHOT</version> - </parent> - - <artifactId>proficio-store-xstream</artifactId> - - <name>proficio store xstream</name> - - <dependencies> - <dependency> - <groupId>com.company.proficio</groupId> - <artifactId>proficio-api</artifactId> - <version>1.0-SNAPSHOT</version> - </dependency> - </dependencies> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/src/main/java/com/company/proficio/store/xstream/XStream.java ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/src/main/java/com/company/proficio/store/xstream/XStream.java b/archetype-common/src/test/resources/projects/roundtrip-multi/proficio-stores/proficio-store-xstream/src/main/java/com/company/proficio/store/xstream/XStream.java deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-common/src/test/resources/projects/roundtrip-multi/src/site/site.xml ---------------------------------------------------------------------- diff --git a/archetype-common/src/test/resources/projects/roundtrip-multi/src/site/site.xml b/archetype-common/src/test/resources/projects/roundtrip-multi/src/site/site.xml deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/pom.xml b/archetype-testing/archetype-final/pom.xml new file mode 100644 index 0000000..d6fdf0a --- /dev/null +++ b/archetype-testing/archetype-final/pom.xml @@ -0,0 +1,180 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <artifactId>archetype-testing</artifactId> + <groupId>org.apache.maven.archetype</groupId> + <version>2.5-SNAPSHOT</version> + </parent> + + <artifactId>archetype-final</artifactId> + <packaging>jar</packaging> + + <name>Maven Archetype Testing Final</name> + + <properties> + <cargoVersion>1.0-alpha-6</cargoVersion> + </properties> + + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-common</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.maven.plugin-testing</groupId> + <artifactId>maven-plugin-testing-harness</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-core-api-container</artifactId> + <version>${cargoVersion}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-core-api-generic</artifactId> + <version>${cargoVersion}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.codehaus.cargo</groupId> + <artifactId>cargo-core-container-jetty</artifactId> + <version>${cargoVersion}</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>org.apache.maven.wagon</groupId> + <artifactId>wagon-file</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-http</artifactId> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>archetype-repository</artifactId> + <version>${project.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>archetype-proxy</artifactId> + <version>${project.version}</version> + <type>war</type> + <scope>test</scope> + </dependency> + </dependencies> + <profiles> + <profile> + <id>run-its</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-invoker-plugin</artifactId> + <configuration> + <debug>true</debug> + <projectsDirectory>src/it</projectsDirectory> + <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> + <pomIncludes> + <pomInclude>*</pomInclude> + </pomIncludes> + <preBuildHookScript>setup</preBuildHookScript> + <postBuildHookScript>verify</postBuildHookScript> + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> + <settingsFile>src/it/settings.xml</settingsFile> + </configuration> + <executions> + <execution> + <id>integration-test</id> + <goals> + <goal>install</goal> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + <build> + <plugins> + <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> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <systemPropertyVariables> + <maven.home>${maven.home}</maven.home> + <java.io.tmpdir>${project.build.outputDirectory}</java.io.tmpdir> + </systemPropertyVariables> + </configuration> + </plugin> + </plugins> + </build> +</project> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/it/create-from-project/archetype.properties ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/it/create-from-project/archetype.properties b/archetype-testing/archetype-final/src/it/create-from-project/archetype.properties new file mode 100644 index 0000000..0aa486a --- /dev/null +++ b/archetype-testing/archetype-final/src/it/create-from-project/archetype.properties @@ -0,0 +1 @@ +AppName App \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/it/create-from-project/invoker.properties ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/it/create-from-project/invoker.properties b/archetype-testing/archetype-final/src/it/create-from-project/invoker.properties new file mode 100644 index 0000000..dac2cd9 --- /dev/null +++ b/archetype-testing/archetype-final/src/it/create-from-project/invoker.properties @@ -0,0 +1 @@ +invoker.goals = clean org.apache.maven.plugins:maven-archetype-plugin:${project.version}:create-from-project -Darchetype.properties=archetype.properties http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/it/create-from-project/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/it/create-from-project/pom.xml b/archetype-testing/archetype-final/src/it/create-from-project/pom.xml new file mode 100644 index 0000000..7a173a0 --- /dev/null +++ b/archetype-testing/archetype-final/src/it/create-from-project/pom.xml @@ -0,0 +1,30 @@ +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.maven.plugins.archetype.its</groupId> + <artifactId>create-from-project</artifactId> + <version>1.0-SNAPSHOT</version> + + <name>archetype:create-from-project It</name> +</project> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/it/create-from-project/src/main/java/foo/bar/App.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/it/create-from-project/src/main/java/foo/bar/App.java b/archetype-testing/archetype-final/src/it/create-from-project/src/main/java/foo/bar/App.java new file mode 100644 index 0000000..5d59afd --- /dev/null +++ b/archetype-testing/archetype-final/src/it/create-from-project/src/main/java/foo/bar/App.java @@ -0,0 +1,32 @@ +package foo.bar; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/** + * Hello world! + * package foo.bar from foo/bar directory + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/it/create-from-project/verify.bsh ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/it/create-from-project/verify.bsh b/archetype-testing/archetype-final/src/it/create-from-project/verify.bsh new file mode 100644 index 0000000..84a5f1e --- /dev/null +++ b/archetype-testing/archetype-final/src/it/create-from-project/verify.bsh @@ -0,0 +1,38 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import java.io.*; + +File archetype = new File( basedir, "target/generated-sources/archetype" ); + +File pom = new File( archetype, "pom.xml" ); +if ( !pom.isFile() ) +{ + throw new Exception( pom + " file is missing or not a file." ); +} + +// ARCHETYPE-462 filter file name with archetype.properties properties +File app = new File( archetype, "src/main/resources/archetype-resources/src/main/java/__AppName__.java" ); +if ( !app.isFile() ) +{ + throw new Exception( app + " file is missing or not a file." ); +} + +return true; http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/it/settings.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/it/settings.xml b/archetype-testing/archetype-final/src/it/settings.xml new file mode 100644 index 0000000..c8f77f0 --- /dev/null +++ b/archetype-testing/archetype-final/src/it/settings.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<settings> + <profiles> + <profile> + <id>it-repo</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <repository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>local.central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> +</settings> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetype-metadata.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetype-metadata.xml b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000..1a061c4 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<archetype-descriptor name="basic"> + + <requiredProperties> + <requiredProperty key="property-with-default-1"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-2"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-3"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-4"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-without-default-1"/> + <requiredProperty key="property-without-default-2"/> + <requiredProperty key="property-without-default-3"/> + <requiredProperty key="property-without-default-4"/> + </requiredProperties> + + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="true"> + <directory>src/main/c</directory> + <includes> + <include>**/*.c</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="true"> + <directory>src/test/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="true"> + <directory>src/test/c</directory> + <includes> + <include>**/*.c</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/main/resources</directory> + <includes> + <include>**/*.properties</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/main/mdo</directory> + <includes> + <include>**/*.mdo</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/test/resources</directory> + <includes> + <include>**/*.properties</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/test/mdo</directory> + <includes> + <include>**/*.mdo</include> + </includes> + </fileSet> + </fileSets> + +</archetype-descriptor> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetypes/basic/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetypes/basic/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetypes/basic/pom.xml new file mode 100644 index 0000000..a00a8c3 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/META-INF/maven/archetypes/basic/pom.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>archetypes</groupId> + <artifactId>basic</artifactId> + <version>1.0</version> +</project> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/pom.xml new file mode 100644 index 0000000..bb055cf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/pom.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + + <name>Maven archetype Test</name> + <packaging>jar</packaging> + + <properties> + <empty></empty> + </properties> + + <!-- comment in prototype pom --> + <dependencies> + <!-- empty dependencies, with comments --> + </dependencies> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/c/App.c ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/c/App.c b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/c/App.c new file mode 100644 index 0000000..fb8cea5 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/c/App.c @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/App.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/App.java b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/App.java new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/App.java @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/inner/package/App2.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/inner/package/App2.java b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/inner/package/App2.java new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/java/inner/package/App2.java @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/mdo/App.mdo ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/mdo/App.mdo b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/mdo/App.mdo new file mode 100644 index 0000000..ceecd7a --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/mdo/App.mdo @@ -0,0 +1,12 @@ +groupId=${groupId} + artifactId=${artifactId} + version=${version} + package=${package} + property-without-default-1=${property-without-default-1} + property-without-default-2=${property-without-default-2} + property-without-default-3=${property-without-default-3} + property-without-default-4=${property-without-default-4} + property-with-default-1=${property-with-default-1} + property-with-default-2=${property-with-default-2} + property-with-default-3=${property-with-default-3} + property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/App.properties ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/App.properties b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/App.properties new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/App.properties @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/inner/dir/App2.properties ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/inner/dir/App2.properties b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/inner/dir/App2.properties new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/main/resources/inner/dir/App2.properties @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/c/AppTest.c ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/c/AppTest.c b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/c/AppTest.c new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/c/AppTest.c @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/java/AppTest.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/java/AppTest.java b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/java/AppTest.java new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/java/AppTest.java @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/mdo/AppTest.mdo ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/mdo/AppTest.mdo b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/mdo/AppTest.mdo new file mode 100644 index 0000000..ceecd7a --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/mdo/AppTest.mdo @@ -0,0 +1,12 @@ +groupId=${groupId} + artifactId=${artifactId} + version=${version} + package=${package} + property-without-default-1=${property-without-default-1} + property-without-default-2=${property-without-default-2} + property-without-default-3=${property-without-default-3} + property-without-default-4=${property-without-default-4} + property-with-default-1=${property-with-default-1} + property-with-default-2=${property-with-default-2} + property-with-default-3=${property-with-default-3} + property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/resources/AppTest.properties ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/resources/AppTest.properties b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/resources/AppTest.properties new file mode 100644 index 0000000..2176fc9 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/basic-1.0/archetype-resources/src/test/resources/AppTest.properties @@ -0,0 +1,12 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetype-metadata.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetype-metadata.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000..6b2523a --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<archetype-descriptor name="fileset" partial="false"> + + <requiredProperties> + <requiredProperty key="property-with-default-1"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-2"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-3"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-4"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-without-default-1"/> + <requiredProperty key="property-without-default-2"/> + <requiredProperty key="property-without-default-3"/> + <requiredProperty key="property-without-default-4"/> + </requiredProperties> + + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + <fileSet filtered="false" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.ogg</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/main/resources</directory> + <includes> + <include>**/*.properties</include> + <include>**/*.txt</include> + </includes> + </fileSet> + <fileSet filtered="false" packaged="false"> + <directory>src/main/resources</directory> + <includes> + <include>**/*.png</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/site</directory> + <includes> + <include>**/*.xml</include> + <include>**/*.apt</include> + </includes> + </fileSet> + <fileSet filtered="true"> + <directory></directory> + <includes> + <include>.classpath</include> + <include>*.xml</include> + </includes> + </fileSet> + <fileSet filtered="false" packaged="false"> + <directory>src/main/toto</directory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + </fileSets> + + <modules> + <module name="subproject" id="subproject" dir="subproject"> + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/main/toto</directory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + </fileSets> + + <modules> + <module name="subsubproject" id="subsubproject" dir="subsubproject"> + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + </fileSets> + </module> + </modules> + </module> + </modules> + +</archetype-descriptor> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetypes/fileset/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetypes/fileset/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetypes/fileset/pom.xml new file mode 100644 index 0000000..b7422de --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/META-INF/maven/archetypes/fileset/pom.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>archetypes</groupId> + <artifactId>fileset</artifactId> + <version>1.0</version> +</project> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/pom.xml new file mode 100644 index 0000000..33d6dcf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/pom.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + + <name>Maven archetype Test</name> + <packaging>pom</packaging> + + <modules> + <module>subproject</module> + </modules> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/profiles.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/profiles.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/profiles.xml new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/profiles.xml @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.java @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/App.ogg @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/java/inner/package/App2.java @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/App.properties @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__artifactId__/touch.txt ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__artifactId__/touch.txt b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__artifactId__/touch.txt new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__artifactId__/touch.txt @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__rootArtifactId__/touch_root.txt ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__rootArtifactId__/touch_root.txt b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__rootArtifactId__/touch_root.txt new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/__rootArtifactId__/touch_root.txt @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png new file mode 100644 index 0000000..d34de6e --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/main/resources/some-dir/App.png @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/apt/usage.apt @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/src/site/site.xml @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml new file mode 100644 index 0000000..3ae5c9a --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/pom.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>${groupId}</groupId> + <artifactId>${parentArtifactId}</artifactId> + <version>${version}</version> + </parent> + + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + + <name>Maven archetype Test Subfolder</name> + <packaging>pom</packaging> + + <modules> + <module>subsubproject</module> + </modules> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/src/main/java/App.java @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml new file mode 100644 index 0000000..4c2bc23 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>${groupId}</groupId> + <artifactId>${parentArtifactId}</artifactId> + <version>${version}</version> + </parent> + + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + + <name>Maven archetype Test Subsubfolder</name> + <packaging>jar</packaging> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java new file mode 100644 index 0000000..8fedfdf --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java @@ -0,0 +1,13 @@ +groupId=${groupId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/ArbitraryProperty-__property-with-default-1__.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/ArbitraryProperty-__property-with-default-1__.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/ArbitraryProperty-__property-with-default-1__.java new file mode 100644 index 0000000..e6a5a6e --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/ArbitraryProperty-__property-with-default-1__.java @@ -0,0 +1,14 @@ +groupId=${groupId} +rootArtifactId=${rootArtifactId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/SkipsUndefinedProperty-__undefined-property__-__property-with-default-2__.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/SkipsUndefinedProperty-__undefined-property__-__property-with-default-2__.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/SkipsUndefinedProperty-__undefined-property__-__property-with-default-2__.java new file mode 100644 index 0000000..e6a5a6e --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/SkipsUndefinedProperty-__undefined-property__-__property-with-default-2__.java @@ -0,0 +1,14 @@ +groupId=${groupId} +rootArtifactId=${rootArtifactId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/__rootArtifactId__/inner/__artifactId__/innest/Some__rootArtifactId__Class__artifactId__.java ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/__rootArtifactId__/inner/__artifactId__/innest/Some__rootArtifactId__Class__artifactId__.java b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/__rootArtifactId__/inner/__artifactId__/innest/Some__rootArtifactId__Class__artifactId__.java new file mode 100644 index 0000000..e6a5a6e --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/__rootArtifactId__/inner/__artifactId__/innest/Some__rootArtifactId__Class__artifactId__.java @@ -0,0 +1,14 @@ +groupId=${groupId} +rootArtifactId=${rootArtifactId} +artifactId=${artifactId} +version=${version} +package=${package} +packageInPathFormat=${packageInPathFormat} +property-without-default-1=${property-without-default-1} +property-without-default-2=${property-without-default-2} +property-without-default-3=${property-without-default-3} +property-without-default-4=${property-without-default-4} +property-with-default-1=${property-with-default-1} +property-with-default-2=${property-with-default-2} +property-with-default-3=${property-with-default-3} +property-with-default-4=${property-with-default-4} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy new file mode 100644 index 0000000..3ac5757 --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy @@ -0,0 +1,10 @@ +println "Executing the archetype-post-generate.groovy script..."; + +def outputDirectory = new File( request.getOutputDirectory() ); + +def packageFolder = request.getPackage().replace( '.', '/' ); + +def toDelete = new File( outputDirectory, request.getArtifactId() + "/src/main/java/${packageFolder}/ToDelete.java" ); + +println "Removing file: " + toDelete; +assert toDelete.delete(); http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetype-metadata.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetype-metadata.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000..6b2523a --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<archetype-descriptor name="fileset" partial="false"> + + <requiredProperties> + <requiredProperty key="property-with-default-1"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-2"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-3"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-with-default-4"> + <defaultValue>default-value</defaultValue> + </requiredProperty> + <requiredProperty key="property-without-default-1"/> + <requiredProperty key="property-without-default-2"/> + <requiredProperty key="property-without-default-3"/> + <requiredProperty key="property-without-default-4"/> + </requiredProperties> + + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + <fileSet filtered="false" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.ogg</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/main/resources</directory> + <includes> + <include>**/*.properties</include> + <include>**/*.txt</include> + </includes> + </fileSet> + <fileSet filtered="false" packaged="false"> + <directory>src/main/resources</directory> + <includes> + <include>**/*.png</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/site</directory> + <includes> + <include>**/*.xml</include> + <include>**/*.apt</include> + </includes> + </fileSet> + <fileSet filtered="true"> + <directory></directory> + <includes> + <include>.classpath</include> + <include>*.xml</include> + </includes> + </fileSet> + <fileSet filtered="false" packaged="false"> + <directory>src/main/toto</directory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + </fileSets> + + <modules> + <module name="subproject" id="subproject" dir="subproject"> + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + <fileSet filtered="true" packaged="false"> + <directory>src/main/toto</directory> + <includes> + <include>**/*</include> + </includes> + </fileSet> + </fileSets> + + <modules> + <module name="subsubproject" id="subsubproject" dir="subsubproject"> + <fileSets> + <fileSet filtered="true" packaged="true"> + <directory>src/main/java</directory> + <includes> + <include>**/*.java</include> + </includes> + </fileSet> + </fileSets> + </module> + </modules> + </module> + </modules> + +</archetype-descriptor> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetypes/fileset_with_postscript/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetypes/fileset_with_postscript/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetypes/fileset_with_postscript/pom.xml new file mode 100644 index 0000000..b7422de --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/META-INF/maven/archetypes/fileset_with_postscript/pom.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>archetypes</groupId> + <artifactId>fileset</artifactId> + <version>1.0</version> +</project> http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/8e0fe06a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/archetype-resources/pom.xml b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/archetype-resources/pom.xml new file mode 100644 index 0000000..6c34c7b --- /dev/null +++ b/archetype-testing/archetype-final/src/test/archetypes/fileset_with_postscript-1.0/archetype-resources/pom.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>${groupId}</groupId> + <artifactId>${artifactId}</artifactId> + <version>${version}</version> + + <name>Maven archetype Test</name> + <packaging>pom</packaging> + + <modules> + <module>subproject</module> + </modules> + +</project>
