maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r751419 - in /maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo: ./ pom.xml setup.bsh test.properties verify.bsh
Date Sun, 08 Mar 2009 13:27:28 GMT
Author: bentmann
Date: Sun Mar  8 13:27:28 2009
New Revision: 751419

URL: http://svn.apache.org/viewvc?rev=751419&view=rev
Log:
o Added IT for deployment alternative repo

Added:
    maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/
    maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml   (with props)
    maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh   (with props)
    maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties   (with
props)
    maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh   (with props)

Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml?rev=751419&view=auto
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml (added)
+++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml Sun Mar  8 13:27:28
2009
@@ -0,0 +1,80 @@
+<?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>org.apache.maven.its.deploy.adr</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <description>
+    Tests the deployment to an alternative repository specified on the CLI.
+  </description>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <distributionManagement>
+    <repository>
+      <id>it</id>
+      <url>file:///${basedir}/target/void</url>
+    </repository>
+  </distributionManagement>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <version>@project.version@</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-install-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.3.1</version>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh?rev=751419&view=auto
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh (added)
+++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh Sun Mar  8 13:27:28
2009
@@ -0,0 +1,14 @@
+import java.io.*;
+import java.util.*;
+
+import org.codehaus.plexus.util.*;
+
+File file = new File( localRepositoryPath, "org/apache/maven/its/deploy/adr" );
+System.out.println( "Deleting " + file );
+FileUtils.deleteDirectory( file );
+
+file = new File( basedir, "target/repo" );
+System.out.println( "Deleting " + file );
+FileUtils.deleteDirectory( file );
+
+return true;

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties?rev=751419&view=auto
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties (added)
+++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties Sun Mar
 8 13:27:28 2009
@@ -0,0 +1 @@
+altDeploymentRepository = alt-id::default::file:target/repo

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh?rev=751419&view=auto
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh (added)
+++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh Sun Mar  8 13:27:28
2009
@@ -0,0 +1,21 @@
+import java.io.*;
+import java.util.*;
+
+String[] paths =
+{
+    "org/apache/maven/its/deploy/adr/test/maven-metadata.xml",
+    "org/apache/maven/its/deploy/adr/test/1.0/test-1.0.pom",
+    "org/apache/maven/its/deploy/adr/test/1.0/test-1.0.jar",
+};
+
+for ( String path : paths )
+{
+    File file = new File( new File( basedir, "target/repo" ), path );
+    System.out.println( "Checking for existence of " + file );
+    if ( !file.isFile() )
+    {
+        throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
+    }
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



Mime
View raw message