[jboss-svn-commits] JBL Code SVN: r17322 - in labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src: it and 28 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Dec 19 12:32:46 EST 2007


Author: pgier
Date: 2007-12-19 12:32:46 -0500 (Wed, 19 Dec 2007)
New Revision: 17322

Added:
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/pom.xml
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/foo/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/foo/project003/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/foo/project003/App.java
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/default-configuration.properties
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/excluded-file.txt
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/verify.bsh
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/pom.xml
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/foo/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/foo/project003/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/foo/project003/App.java
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/default-configuration.properties
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/excluded-file.txt
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/verify.bsh
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/pom.xml
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/foo/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/foo/project003/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/foo/project003/App.java
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/default-configuration.properties
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/excluded-file.txt
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/verify.bsh
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/pom.xml
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/foo/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/foo/project003/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/foo/project003/App.java
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/default-configuration.properties
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/excluded-file.txt
   labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/verify.bsh
Log:
Adding integration tests for various features.


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename
___________________________________________________________________
Name: svn:ignore
   + target


Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/pom.xml	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/pom.xml	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,66 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.maven.plugins</groupId>
+  <artifactId>maven-jboss-deploy-plugin-artifact-rename</artifactId>
+  <version>99.0</version>
+  <name>Maven</name>
+  <packaging>jar</packaging>
+  <description>Change the default artifactId</description>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-deploy-plugin</artifactId>
+        <version>@pom.version@</version>
+        <executions>
+          <execution>
+            <id>test-execution</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jboss-deploy</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <jbossDeployRoot>${project.build.directory}/jboss-ant-repo</jbossDeployRoot>
+          <artifactId>new-artifact-id</artifactId>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/foo/project003/App.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/foo/project003/App.java	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/java/foo/project003/App.java	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,32 @@
+package foo.project003;
+
+/*
+ * 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!" );
+    }
+}

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/default-configuration.properties
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/default-configuration.properties	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/default-configuration.properties	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,16 @@
+# 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.

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/excluded-file.txt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/excluded-file.txt	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/src/main/resources/excluded-file.txt	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1 @@
+This file is excluded by the custom configuration, so shouldn't end up in the end product
\ No newline at end of file

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/verify.bsh
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/verify.bsh	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/verify.bsh	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,58 @@
+
+/*
+ * 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.*;
+import java.util.*;
+import java.util.jar.*;
+import org.codehaus.plexus.util.*;
+
+boolean result = true;
+
+try
+{
+    File repo = new File( basedir, "target/jboss-ant-repo" );
+    if ( !repo.exists() || !repo.isDirectory() )
+    {
+        System.err.println( "jboss ant repo file is missing or not a directory." );
+        return false;
+    }
+    
+    File componentInfo = new File ( repo, "org/jboss/maven/plugins/new-artifact-id/99.0/component-info.xml" );
+    if ( !componentInfo.exists() )
+    {
+        System.err.println( "component-info.xml file is missing or a directory." );
+        return false;
+    } 
+    
+    File outputJar = new File ( repo, "org/jboss/maven/plugins/new-artifact-id/99.0/lib/new-artifact-id-99.0.jar" );
+    if ( !outputJar.exists() )
+    {
+        System.err.println( outputJar + " file is missing." );
+        return false;
+    } 
+    
+}
+catch( Throwable e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/artifact-rename/verify.bsh
___________________________________________________________________
Name: svn:executable
   + *


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy
___________________________________________________________________
Name: svn:ignore
   + target


Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/pom.xml	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/pom.xml	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,65 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.maven.plugins</groupId>
+  <artifactId>maven-jboss-deploy-plugin-basic-deploy</artifactId>
+  <version>99.0</version>
+  <name>Maven</name>
+  <packaging>jar</packaging>
+  <description>Change the default artifactId</description>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-deploy-plugin</artifactId>
+        <version>@pom.version@</version>
+        <executions>
+          <execution>
+            <id>test-execution</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jboss-deploy</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <jbossDeployRoot>${project.build.directory}/jboss-ant-repo</jbossDeployRoot>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/foo/project003/App.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/foo/project003/App.java	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/java/foo/project003/App.java	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,32 @@
+package foo.project003;
+
+/*
+ * 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!" );
+    }
+}

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/default-configuration.properties
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/default-configuration.properties	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/default-configuration.properties	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,16 @@
+# 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.

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/excluded-file.txt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/excluded-file.txt	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/src/main/resources/excluded-file.txt	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1 @@
+This file is excluded by the custom configuration, so shouldn't end up in the end product
\ No newline at end of file

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/verify.bsh
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/verify.bsh	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/verify.bsh	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,58 @@
+
+/*
+ * 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.*;
+import java.util.*;
+import java.util.jar.*;
+import org.codehaus.plexus.util.*;
+
+boolean result = true;
+
+try
+{
+    File repo = new File( basedir, "target/jboss-ant-repo" );
+    if ( !repo.exists() || !repo.isDirectory() )
+    {
+        System.err.println( "jboss ant repo file is missing or not a directory." );
+        return false;
+    }
+    
+    File componentInfo = new File ( repo, "org/jboss/maven/plugins/maven-jboss-deploy-plugin-basic-deploy/99.0/component-info.xml" );
+    if ( !componentInfo.exists() )
+    {
+        System.err.println( "component-info.xml file is missing or a directory." );
+        return false;
+    } 
+    
+    File outputJar = new File ( repo, "org/jboss/maven/plugins/maven-jboss-deploy-plugin-basic-deploy/99.0/lib/maven-jboss-deploy-plugin-basic-deploy-99.0.jar" );
+    if ( !outputJar.exists() )
+    {
+        System.err.println( "Output jar file is missing. \n" + outputJar);
+        return false;
+    } 
+    
+}
+catch( Throwable e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/basic-deploy/verify.bsh
___________________________________________________________________
Name: svn:executable
   + *


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename
___________________________________________________________________
Name: svn:ignore
   + target


Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/pom.xml	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/pom.xml	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,66 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.maven.plugins</groupId>
+  <artifactId>maven-jboss-deploy-plugin-group-rename</artifactId>
+  <version>99.0</version>
+  <name>Maven</name>
+  <packaging>jar</packaging>
+  <description>Change the default artifactId</description>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-deploy-plugin</artifactId>
+        <version>@pom.version@</version>
+        <executions>
+          <execution>
+            <id>test-execution</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jboss-deploy</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <jbossDeployRoot>${project.build.directory}/jboss-ant-repo</jbossDeployRoot>
+          <groupId>new.group.id</groupId>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/foo/project003/App.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/foo/project003/App.java	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/java/foo/project003/App.java	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,32 @@
+package foo.project003;
+
+/*
+ * 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!" );
+    }
+}

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/default-configuration.properties
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/default-configuration.properties	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/default-configuration.properties	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,16 @@
+# 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.

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/excluded-file.txt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/excluded-file.txt	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/src/main/resources/excluded-file.txt	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1 @@
+This file is excluded by the custom configuration, so shouldn't end up in the end product
\ No newline at end of file

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/verify.bsh
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/verify.bsh	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/verify.bsh	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,58 @@
+
+/*
+ * 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.*;
+import java.util.*;
+import java.util.jar.*;
+import org.codehaus.plexus.util.*;
+
+boolean result = true;
+
+try
+{
+    File repo = new File( basedir, "target/jboss-ant-repo" );
+    if ( !repo.exists() || !repo.isDirectory() )
+    {
+        System.err.println( "jboss ant repo file is missing or not a directory." );
+        return false;
+    }
+    
+    File componentInfo = new File ( repo, "new/group/id/maven-jboss-deploy-plugin-group-rename/99.0/component-info.xml" );
+    if ( !componentInfo.exists() )
+    {
+        System.err.println( "component-info.xml file is missing or a directory." );
+        return false;
+    } 
+    
+    File outputJar = new File ( repo, "new/group/id/maven-jboss-deploy-plugin-group-rename/99.0/lib/maven-jboss-deploy-plugin-group-rename-99.0.jar" );
+    if ( !outputJar.exists() )
+    {
+        System.err.println( outputJar + " file is missing." );
+        return false;
+    } 
+    
+}
+catch( Throwable e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/group-rename/verify.bsh
___________________________________________________________________
Name: svn:executable
   + *


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version
___________________________________________________________________
Name: svn:ignore
   + target


Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/pom.xml
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/pom.xml	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/pom.xml	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,66 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.maven.plugins</groupId>
+  <artifactId>maven-jboss-deploy-plugin-remove-version</artifactId>
+  <version>99.0</version>
+  <name>Maven</name>
+  <packaging>jar</packaging>
+  <description>Change the default artifactId</description>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.jboss.maven.plugins</groupId>
+        <artifactId>maven-jboss-deploy-plugin</artifactId>
+        <version>@pom.version@</version>
+        <executions>
+          <execution>
+            <id>test-execution</id>
+            <phase>package</phase>
+            <goals>
+              <goal>jboss-deploy</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <jbossDeployRoot>${project.build.directory}/jboss-ant-repo</jbossDeployRoot>
+          <removeArtifactVersion>true</removeArtifactVersion>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/foo/project003/App.java
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/foo/project003/App.java	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/java/foo/project003/App.java	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,32 @@
+package foo.project003;
+
+/*
+ * 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!" );
+    }
+}

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/default-configuration.properties
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/default-configuration.properties	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/default-configuration.properties	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,16 @@
+# 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.

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/excluded-file.txt
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/excluded-file.txt	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/src/main/resources/excluded-file.txt	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1 @@
+This file is excluded by the custom configuration, so shouldn't end up in the end product
\ No newline at end of file

Added: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/verify.bsh
===================================================================
--- labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/verify.bsh	                        (rev 0)
+++ labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/verify.bsh	2007-12-19 17:32:46 UTC (rev 17322)
@@ -0,0 +1,58 @@
+
+/*
+ * 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.*;
+import java.util.*;
+import java.util.jar.*;
+import org.codehaus.plexus.util.*;
+
+boolean result = true;
+
+try
+{
+    File repo = new File( basedir, "target/jboss-ant-repo" );
+    if ( !repo.exists() || !repo.isDirectory() )
+    {
+        System.err.println( "jboss ant repo file is missing or not a directory." );
+        return false;
+    }
+    
+    File componentInfo = new File ( repo, "org/jboss/maven/plugins/maven-jboss-deploy-plugin-remove-version/99.0/component-info.xml" );
+    if ( !componentInfo.exists() )
+    {
+        System.err.println( "component-info.xml file is missing or a directory." );
+        return false;
+    } 
+    
+    File outputJar = new File ( repo, "org/jboss/maven/plugins/maven-jboss-deploy-plugin-remove-version/99.0/lib/maven-jboss-deploy-plugin-remove-version.jar" );
+    if ( !outputJar.exists() )
+    {
+        System.err.println( "Output jar file is missing. \n" + outputJar);
+        return false;
+    } 
+    
+}
+catch( Throwable e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;


Property changes on: labs/jbossbuild/maven-plugins/trunk/maven-jboss-deploy-plugin/src/it/remove-version/verify.bsh
___________________________________________________________________
Name: svn:executable
   + *




More information about the jboss-svn-commits mailing list