You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2010/09/12 01:25:47 UTC
svn commit: r996220 - in /maven/archetype/trunk/archetype-plugin: ./ src/it/
src/it/create-from-project/ src/it/create-from-project/src/
src/it/create-from-project/src/main/
src/it/create-from-project/src/main/java/
src/it/create-from-project/src/main/...
Author: hboutemy
Date: Sat Sep 11 23:25:47 2010
New Revision: 996220
URL: http://svn.apache.org/viewvc?rev=996220&view=rev
Log:
added IT for create-from-project
Added:
maven/archetype/trunk/archetype-plugin/src/it/
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt (with props)
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml (with props)
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java (with props)
maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh (with props)
maven/archetype/trunk/archetype-plugin/src/it/settings.xml (with props)
Modified:
maven/archetype/trunk/archetype-plugin/pom.xml
Modified: maven/archetype/trunk/archetype-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/pom.xml?rev=996220&r1=996219&r2=996220&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-plugin/pom.xml (original)
+++ maven/archetype/trunk/archetype-plugin/pom.xml Sat Sep 11 23:25:47 2010
@@ -116,6 +116,38 @@ under the License.
<profiles>
<profile>
+ <id>run-its</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <version>1.5</version>
+ <configuration>
+ <debug>true</debug>
+ <projectsDirectory>src/it</projectsDirectory>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <pomIncludes>
+ <pomInclude>*/pom.xml</pomInclude>
+ </pomIncludes>
+ <preBuildHookScript>setup</preBuildHookScript>
+ <postBuildHookScript>validate</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>
+ <profile>
<id>ciProfile</id>
<activation>
<property>
Added: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt?rev=996220&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt (added)
+++ maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt Sat Sep 11 23:25:47 2010
@@ -0,0 +1 @@
+clean archetype:create-from-project
\ No newline at end of file
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/goals.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml?rev=996220&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml (added)
+++ maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml Sat Sep 11 23:25:47 2010
@@ -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>
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java?rev=996220&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java (added)
+++ maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java Sat Sep 11 23:25:47 2010
@@ -0,0 +1,32 @@
+package foo;
+
+/*
+ * 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!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/src/main/java/foo/App.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh?rev=996220&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh (added)
+++ maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh Sat Sep 11 23:25:47 2010
@@ -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.*;
+
+try
+{
+ File target = new File( basedir, "target/generated-sources/archetype/pom.xml" );
+ if ( !target.exists() || !target.isFile() )
+ {
+ System.err.println( target + " file is missing or not a file." );
+ return false;
+ }
+}
+catch( IOException e )
+{
+ e.printStackTrace();
+ return false;
+}
+
+return true;
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/archetype-plugin/src/it/create-from-project/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/archetype/trunk/archetype-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-plugin/src/it/settings.xml?rev=996220&view=auto
==============================================================================
--- maven/archetype/trunk/archetype-plugin/src/it/settings.xml (added)
+++ maven/archetype/trunk/archetype-plugin/src/it/settings.xml Sat Sep 11 23:25:47 2010
@@ -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>
Propchange: maven/archetype/trunk/archetype-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/archetype-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/archetype/trunk/archetype-plugin/src/it/settings.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain