Author: olamy
Date: Wed Aug  1 15:52:51 2012
New Revision: 1368070

URL: http://svn.apache.org/viewvc?rev=1368070&view=rev
Log:
really test something here

Added:
    
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy
   (with props)
    maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml   (with 
props)
Modified:
    maven/archetypes/trunk/maven-archetype-site/pom.xml
    
maven/archetypes/trunk/maven-archetype-site/src/main/resources/archetype-resources/pom.xml
    
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/goal.txt

Modified: maven/archetypes/trunk/maven-archetype-site/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site/pom.xml?rev=1368070&r1=1368069&r2=1368070&view=diff
==============================================================================
--- maven/archetypes/trunk/maven-archetype-site/pom.xml (original)
+++ maven/archetypes/trunk/maven-archetype-site/pom.xml Wed Aug  1 15:52:51 2012
@@ -38,4 +38,18 @@ under the License.
     APT, XDoc, and FML and demonstrates how to i18n your site. This archetype 
can be layered
     upon an existing Maven project.
   </description>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-archetype-plugin</artifactId>
+        <configuration>
+          <settingsFile>${basedir}/src/test/settings.xml</settingsFile>
+          
<localRepositoryPath>${basedir}/target/local-repo</localRepositoryPath>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>

Modified: 
maven/archetypes/trunk/maven-archetype-site/src/main/resources/archetype-resources/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site/src/main/resources/archetype-resources/pom.xml?rev=1368070&r1=1368069&r2=1368070&view=diff
==============================================================================
--- 
maven/archetypes/trunk/maven-archetype-site/src/main/resources/archetype-resources/pom.xml
 (original)
+++ 
maven/archetypes/trunk/maven-archetype-site/src/main/resources/archetype-resources/pom.xml
 Wed Aug  1 15:52:51 2012
@@ -24,7 +24,9 @@
   <build>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
+        <version>3.1</version>
         <configuration>
           <locales>en,fr</locales>
         </configuration>

Modified: 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/goal.txt
URL: 
http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/goal.txt?rev=1368070&r1=1368069&r2=1368070&view=diff
==============================================================================
--- 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/goal.txt
 (original)
+++ 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/goal.txt
 Wed Aug  1 15:52:51 2012
@@ -0,0 +1 @@
+clean site
\ No newline at end of file

Added: 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy
URL: 
http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy?rev=1368070&view=auto
==============================================================================
--- 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy
 (added)
+++ 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy
 Wed Aug  1 15:52:51 2012
@@ -0,0 +1,4 @@
+assert new File(context.projectDir, 'target/site').exists();
+assert new File(context.projectDir, 'target/site').isDirectory();
+assert new File(context.projectDir, 'target/site/index.html').exists();
+assert new File(context.projectDir, 'target/site/index.html').isFile();
\ No newline at end of file

Propchange: 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/archetypes/trunk/maven-archetype-site/src/test/resources/projects/basic/verify.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml
URL: 
http://svn.apache.org/viewvc/maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml?rev=1368070&view=auto
==============================================================================
--- maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml (added)
+++ maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml Wed Aug  
1 15:52:51 2012
@@ -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>
\ No newline at end of file

Propchange: maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetypes/trunk/maven-archetype-site/src/test/settings.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision


Reply via email to