You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by oc...@apache.org on 2006/04/17 10:57:40 UTC
svn commit: r394644 - in
/maven/plugins/trunk/maven-repository-plugin/src/test: ./ java/ java/org/
java/org/apache/ java/org/apache/maven/ java/org/apache/maven/plugins/
java/org/apache/maven/plugins/repository/
java/org/apache/maven/plugins/repository...
Author: oching
Date: Mon Apr 17 01:57:36 2006
New Revision: 394644
URL: http://svn.apache.org/viewcvs?rev=394644&view=rev
Log:
PR: MREPOSITORY-1
Created test using testing harness plugin.
Added:
maven/plugins/trunk/maven-repository-plugin/src/test/
maven/plugins/trunk/maven-repository-plugin/src/test/java/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/BundleCreateMojoTest.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/DefaultConfigurationMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/InvalidPackagingMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocJarMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocSourcesMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoLicenseFileMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoProjectNameMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoScmMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoSourcesJarMavenProjectStub.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/configuration/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/configuration/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/packaging/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/packaging/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/sources/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/sources/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/javadocjar/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/javadocjar/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/file/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/file/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/name/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/name/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/scm/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/scm/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/pom.xml
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/LICENSE.txt
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/sourcesjar/
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/sourcesjar/App.java
maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/pom.xml
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/BundleCreateMojoTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/BundleCreateMojoTest.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/BundleCreateMojoTest.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/BundleCreateMojoTest.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,466 @@
+package org.apache.maven.plugins.repository;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.codehaus.plexus.archiver.zip.ZipEntry;
+import org.codehaus.plexus.archiver.zip.ZipFile;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Enumeration;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class BundleCreateMojoTest
+ extends AbstractMojoTestCase
+{
+ protected void setUp()
+ throws Exception
+ {
+ // required for mojo lookups to work
+ super.setUp();
+
+ }
+
+ /**
+ * Test for repository plugin default configuration
+ *
+ * @throws Exception
+ */
+ public void testDefaultconfiguration()
+ throws Exception
+ {
+
+ try
+ {
+ createTestJars( "default-configuration", true, true,
+ getBasedir() + "/target/test/unit/default-configuration/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/default-configuration/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ }
+ catch ( Exception e )
+ {
+ e.printStackTrace();
+ }
+
+ File bundleSource =
+ new File( getBasedir(), "target/test/unit/default-configuration/target/default-configuration-bundle.jar" );
+ assertTrue( FileUtils.fileExists( bundleSource.getAbsolutePath() ) );
+
+ ZipFile jar = new ZipFile( bundleSource );
+ Enumeration entries = jar.getEntries();
+ assertTrue( entries.hasMoreElements() );
+
+ if ( entries.hasMoreElements() )
+ {
+ ZipEntry entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "default-configuration-javadoc.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "default-configuration-sources.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "default-configuration.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "LICENSE.txt" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "pom.xml" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/MANIFEST.MF" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/" );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when there is no javadoc jar to be included in the bundle
+ *
+ * @throws Exception
+ */
+ public void testNoJavadocJar()
+ throws Exception
+ {
+
+ try
+ {
+ createTestJars( "no-javadocjar", false, true, getBasedir() + "/target/test/unit/no-javadocjar/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/no-javadocjar/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ }
+ catch ( Exception e )
+ {
+ e.printStackTrace();
+ }
+
+ File bundleSource = new File( getBasedir(), "target/test/unit/no-javadocjar/target/no-javadocjar-bundle.jar" );
+ assertTrue( FileUtils.fileExists( bundleSource.getAbsolutePath() ) );
+
+ ZipFile jar = new ZipFile( bundleSource );
+ Enumeration entries = jar.getEntries();
+ assertTrue( entries.hasMoreElements() );
+
+ if ( entries.hasMoreElements() )
+ {
+ ZipEntry entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "no-javadocjar-sources.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "no-javadocjar.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "LICENSE.txt" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "pom.xml" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/MANIFEST.MF" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/" );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when there is no sources jar to be included in the bundle
+ *
+ * @throws Exception
+ */
+ public void testNoSourcesJar()
+ throws Exception
+ {
+
+ try
+ {
+ createTestJars( "no-sourcesjar", true, false, getBasedir() + "/target/test/unit/no-sourcesjar/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/no-sourcesjar/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ }
+ catch ( Exception e )
+ {
+ e.printStackTrace();
+ }
+
+ File bundleSource = new File( getBasedir(), "target/test/unit/no-sourcesjar/target/no-sourcesjar-bundle.jar" );
+ assertTrue( FileUtils.fileExists( bundleSource.getAbsolutePath() ) );
+
+ ZipFile jar = new ZipFile( bundleSource );
+ Enumeration entries = jar.getEntries();
+ assertTrue( entries.hasMoreElements() );
+
+ if ( entries.hasMoreElements() )
+ {
+ ZipEntry entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "no-sourcesjar-javadoc.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "no-sourcesjar.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "LICENSE.txt" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "pom.xml" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/MANIFEST.MF" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/" );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when there are no javadoc and sources jar files to be included in the bundle
+ *
+ * @throws Exception
+ */
+ public void testNoJavadocSourcesJars()
+ throws Exception
+ {
+
+ try
+ {
+ createTestJars( "no-javadoc-sources", false, false,
+ getBasedir() + "/target/test/unit/no-javadoc-sources/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/no-javadoc-sources/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ }
+ catch ( Exception e )
+ {
+ e.printStackTrace();
+ }
+
+ File bundleSource =
+ new File( getBasedir(), "target/test/unit/no-javadoc-sources/target/no-javadoc-sources-bundle.jar" );
+ assertTrue( FileUtils.fileExists( bundleSource.getAbsolutePath() ) );
+
+ ZipFile jar = new ZipFile( bundleSource );
+ Enumeration entries = jar.getEntries();
+ assertTrue( entries.hasMoreElements() );
+
+ if ( entries.hasMoreElements() )
+ {
+ ZipEntry entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "no-javadoc-sources.jar" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "LICENSE.txt" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "pom.xml" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/MANIFEST.MF" );
+
+ entry = (ZipEntry) entries.nextElement();
+ assertEquals( entry.getName(), "META-INF/" );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when the packaging specified in the pom is invalid
+ *
+ * @throws Exception
+ */
+ public void testInvalidPackaging()
+ throws Exception
+ {
+
+ try
+ {
+ createTestJars( "invalid-packaging", false, false,
+ getBasedir() + "/target/test/unit/invalid-packaging/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/invalid-packaging/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ fail( "Must throw an exception on an invalid packaging" );
+ }
+ catch ( Exception e )
+ {
+ assertTrue( true );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when the scm element is null
+ *
+ * @throws Exception
+ */
+ public void testNullScm()
+ throws Exception
+ {
+ try
+ {
+ createTestJars( "no-scm", false, false, getBasedir() + "/target/test/unit/no-scm/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/no-scm/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ fail( "Must throw an exception on a project element scm is null" );
+ }
+ catch ( Exception e )
+ {
+ assertTrue( true );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when license file does not exist
+ *
+ * @throws Exception
+ */
+ public void testNoLicenseFile()
+ throws Exception
+ {
+
+ try
+ {
+ createTestJars( "no-license-file", false, false,
+ getBasedir() + "/target/test/unit/no-license-file/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/no-license-file/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ fail( "Must throw an exception on missing license file" );
+ }
+ catch ( Exception e )
+ {
+ assertTrue( true );
+ }
+
+ }
+
+ /**
+ * Test repository plugin when there is no project name specified in the pom
+ *
+ * @throws Exception
+ */
+ public void testNoProjectName()
+ throws Exception
+ {
+ try
+ {
+ createTestJars( "no-project-name", false, false,
+ getBasedir() + "/target/test/unit/no-project-name/target" );
+ }
+ catch ( IOException ie )
+ {
+ ie.printStackTrace();
+ }
+
+ File testPom = new File( getBasedir(), "src/test/resources/unit/no-project-name/pom.xml" );
+
+ try
+ {
+ BundleCreateMojo mojo = (BundleCreateMojo) lookupMojo( "bundle-create", testPom );
+ mojo.execute();
+ fail( "Must throw an exception on empty expression" );
+ }
+ catch ( Exception e )
+ {
+ assertTrue( true );
+ }
+
+ }
+
+ /**
+ * Method for creating the jar files that will be used in testing
+ *
+ * @param fileName the file name of the jar file(s) to be created
+ * @param createJavadocJar specifies whether a javadoc jar file will be created or not
+ * @param createSourcesJar specifies whether a sources jar file will be created or not
+ * @param destDir the destination directory where the jar file(s) are to be created
+ * @throws IOException
+ */
+ private void createTestJars( String fileName, boolean createJavadocJar, boolean createSourcesJar, String destDir )
+ throws IOException
+ {
+ File targetDir = new File( destDir );
+ boolean success = targetDir.mkdirs();
+
+ if ( success )
+ {
+ File outputFile = new File( destDir, fileName + ".jar" );
+ success = outputFile.createNewFile();
+
+ if ( createJavadocJar )
+ {
+ File javadocJar = new File( destDir, fileName + "-javadoc.jar" );
+ success = javadocJar.createNewFile();
+ }
+
+ if ( createSourcesJar )
+ {
+ File sourcesJar = new File( destDir, fileName + "-sources.jar" );
+ success = sourcesJar.createNewFile();
+ }
+ }
+ else
+ {
+ System.out.println( "Target directory not created." );
+
+ return;
+ }
+
+ }
+
+ protected void tearDown()
+ throws Exception
+ {
+
+ }
+
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/DefaultConfigurationMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/DefaultConfigurationMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/DefaultConfigurationMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/DefaultConfigurationMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,75 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class DefaultConfigurationMavenProjectStub
+ extends MavenProjectStub
+{
+
+ private Scm scm;
+
+ private Build build;
+
+ public DefaultConfigurationMavenProjectStub()
+ {
+ setGroupId( "def.configuration" );
+ setArtifactId( "default-configuration" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "Default Configuration Project" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has default repository plugin configuration." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "default-configuration" );
+ build.setDirectory( getBasedir() + "/target/test/unit/default-configuration/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/InvalidPackagingMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/InvalidPackagingMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/InvalidPackagingMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/InvalidPackagingMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,74 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class InvalidPackagingMavenProjectStub
+ extends MavenProjectStub
+{
+
+ private Scm scm;
+
+ private Build build;
+
+ public InvalidPackagingMavenProjectStub()
+ {
+ setGroupId( "invalid.packaging" );
+ setArtifactId( "invalid-packaging" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "Invalid Packaging Maven Project" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "pom" );
+ setDescription( "Sample Maven Project that has invalid packaging." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "invalid-packaging" );
+ build.setDirectory( getBasedir() + "/target/test/unit/invalid-packaging/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocJarMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocJarMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocJarMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocJarMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,75 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class NoJavadocJarMavenProjectStub
+ extends MavenProjectStub
+{
+
+ private Scm scm;
+
+ private Build build;
+
+ public NoJavadocJarMavenProjectStub()
+ {
+ setGroupId( "no.javadocjar" );
+ setArtifactId( "no-javadocjar" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "Maven Project No Javadoc Jar" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has no javadoc jar file." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "no-javadocjar" );
+ build.setDirectory( getBasedir() + "/target/test/unit/no-javadocjar/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocSourcesMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocSourcesMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocSourcesMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoJavadocSourcesMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,74 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class NoJavadocSourcesMavenProjectStub
+ extends MavenProjectStub
+{
+
+ private Scm scm;
+
+ private Build build;
+
+ public NoJavadocSourcesMavenProjectStub()
+ {
+ setGroupId( "no.javadoc.sources" );
+ setArtifactId( "no-javadoc-sources" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "Maven Project No Javadoc and Source Jars" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has no javadoc and source jar files." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "no-javadoc-sources" );
+ build.setDirectory( getBasedir() + "/target/test/unit/no-javadoc-sources/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoLicenseFileMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoLicenseFileMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoLicenseFileMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoLicenseFileMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,73 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class NoLicenseFileMavenProjectStub
+ extends MavenProjectStub
+{
+ private Scm scm;
+
+ private Build build;
+
+ public NoLicenseFileMavenProjectStub()
+ {
+ setGroupId( "no.license.file" );
+ setArtifactId( "no-license-file" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "No License File Project" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has no license file." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "no-license-file" );
+ build.setDirectory( getBasedir() + "/target/test/unit/no-license-file/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoProjectNameMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoProjectNameMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoProjectNameMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoProjectNameMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,73 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class NoProjectNameMavenProjectStub
+ extends MavenProjectStub
+{
+ private Scm scm;
+
+ private Build build;
+
+ public NoProjectNameMavenProjectStub()
+ {
+ setGroupId( "no.project.name" );
+ setArtifactId( "no-project-name" );
+ setVersion( "1.0-SNAPSHOT" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has no project name specified in the pom." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "no-project-name" );
+ build.setDirectory( getBasedir() + "/target/test/unit/no-project-name/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoScmMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoScmMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoScmMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoScmMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,70 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class NoScmMavenProjectStub
+ extends MavenProjectStub
+{
+
+ private Scm scm;
+
+ private Build build;
+
+ public NoScmMavenProjectStub()
+ {
+ setGroupId( "no.scm" );
+ setArtifactId( "no-scm" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "No Scm Project" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has no scm specified in the pom." );
+
+ Build build = new Build();
+ build.setFinalName( "no-scm" );
+ build.setDirectory( getBasedir() + "/target/test/unit/no-scm/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoSourcesJarMavenProjectStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoSourcesJarMavenProjectStub.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoSourcesJarMavenProjectStub.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/java/org/apache/maven/plugins/repository/stubs/NoSourcesJarMavenProjectStub.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,74 @@
+package org.apache.maven.plugins.repository.stubs;
+
+/*
+ * Copyright 2005-2006 The Apache Software Foundation.
+ *
+ * Licensed 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 org.apache.maven.model.Build;
+import org.apache.maven.model.Scm;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * @author <a href="mailto:oching@exist.com">Maria Odea Ching</a>
+ */
+public class NoSourcesJarMavenProjectStub
+ extends MavenProjectStub
+{
+
+ private Scm scm;
+
+ private Build build;
+
+ public NoSourcesJarMavenProjectStub()
+ {
+ setGroupId( "no.sourcesjar" );
+ setArtifactId( "no-sourcesjar" );
+ setVersion( "1.0-SNAPSHOT" );
+ setName( "Maven Project No Sources Jar" );
+ setUrl( "http://maven.apache.org" );
+ setPackaging( "jar" );
+ setDescription( "Sample Maven Project that has no sources jar file." );
+
+ Scm scm = new Scm();
+ scm.setConnection( "scm:svn:http://svn.apache.org/maven/sample/trunk" );
+ setScm( scm );
+
+ Build build = new Build();
+ build.setFinalName( "no-sourcesjar" );
+ build.setDirectory( getBasedir() + "/target/test/unit/no-sourcesjar/target" );
+ setBuild( build );
+
+ }
+
+ public Scm getScm()
+ {
+ return scm;
+ }
+
+ public void setScm( Scm scm )
+ {
+ this.scm = scm;
+ }
+
+ public Build getBuild()
+ {
+ return build;
+ }
+
+ public void setBuild( Build build )
+ {
+ this.build = build;
+ }
+}
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/configuration/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/configuration/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/configuration/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/def/configuration/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package def.configuration;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/default-configuration/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>def.configuration</groupId>
+ <artifactId>default-configuration</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.DefaultConfigurationMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/default-configuration</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/packaging/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/packaging/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/packaging/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/invalid/packaging/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package invalid.packaging;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/invalid-packaging/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>invalid.packaging</groupId>
+ <artifactId>invalid-packaging</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.InvalidPackagingMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/invalid-packaging</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/sources/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/sources/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/sources/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/no/javadoc/sources/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package no.javadoc.sources;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadoc-sources/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>no.javadoc.sources</groupId>
+ <artifactId>no-javadoc-sources</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.NoJavadocSourcesMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/no-javadoc-sources</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/javadocjar/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/javadocjar/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/javadocjar/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/no/javadocjar/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package no.javadocjar;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-javadocjar/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>no.javadocjar</groupId>
+ <artifactId>no-javadocjar</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.NoJavadocJarMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/no-javadocjar</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/file/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/file/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/file/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/no/license/file/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package no.license.file;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-license-file/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>no.license.file</groupId>
+ <artifactId>no-license-file</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.NoLicenseFileMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/no-license-file</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/name/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/name/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/name/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/no/project/name/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package no.project.name;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-project-name/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>no.project.name</groupId>
+ <artifactId>no-project-name</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.NoProjectNameMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/no-project-name</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/scm/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/scm/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/scm/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/no/scm/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package no.scm;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-scm/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>no.scm</groupId>
+ <artifactId>no-scm</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.NoScmMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/no-scm</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/LICENSE.txt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/LICENSE.txt?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/LICENSE.txt (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/LICENSE.txt Mon Apr 17 01:57:36 2006
@@ -0,0 +1 @@
+License.txt
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/sourcesjar/App.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/sourcesjar/App.java?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/sourcesjar/App.java (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/no/sourcesjar/App.java Mon Apr 17 01:57:36 2006
@@ -0,0 +1,9 @@
+package no.sourcesjar;
+
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Sample Application." );
+ }
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/pom.xml?rev=394644&view=auto
==============================================================================
--- maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/pom.xml (added)
+++ maven/plugins/trunk/maven-repository-plugin/src/test/resources/unit/no-sourcesjar/pom.xml Mon Apr 17 01:57:36 2006
@@ -0,0 +1,18 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>no.sourcesjar</groupId>
+ <artifactId>no-sourcesjar</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-repository-plugin</artifactId>
+ <configuration>
+ <project implementation="org.apache.maven.plugins.repository.stubs.NoSourcesJarMavenProjectStub"/>
+ <basedir>${basedir}/src/test/resources/unit/no-sourcesjar</basedir>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>