Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.java URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.java?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.java (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.java Tue Dec 1 16:01:31 2009 @@ -0,0 +1,268 @@ +package org.apache.archiva.dependency.tree.maven2; + +/* + * 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.util.Collections; + +import org.apache.maven.archiva.configuration.ArchivaConfiguration; +import org.apache.maven.archiva.configuration.Configuration; +import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; +import org.apache.maven.artifact.Artifact; +import org.apache.maven.artifact.factory.ArtifactFactory; +import org.apache.maven.artifact.versioning.VersionRange; +import org.apache.maven.shared.dependency.tree.DependencyNode; +import org.apache.maven.shared.dependency.tree.DependencyTreeBuilderException; +import org.apache.maven.shared.dependency.tree.traversal.DependencyNodeVisitor; +import org.codehaus.plexus.spring.PlexusInSpringTestCase; +import org.easymock.MockControl; + +public class DependencyTreeBuilderTest + extends PlexusInSpringTestCase +{ + private DependencyTreeBuilder builder; + + private static final String TEST_REPO_ID = "test"; + + private static final String TEST_VERSION = "1.2.1"; + + private static final String TEST_ARTIFACT_ID = "archiva-common"; + + private static final String TEST_GROUP_ID = "org.apache.archiva"; + + private ArtifactFactory artifactFactory; + + @Override + protected void setUp() + throws Exception + { + super.setUp(); + + ArchivaConfiguration config = (ArchivaConfiguration) lookup( ArchivaConfiguration.class ); + + Configuration configuration = new Configuration(); + ManagedRepositoryConfiguration repoConfig = new ManagedRepositoryConfiguration(); + repoConfig.setId( TEST_REPO_ID ); + repoConfig.setLocation( getTestPath( "src/test/repositories/test" ) ); + configuration.addManagedRepository( repoConfig ); + config.save( configuration ); + + builder = (DependencyTreeBuilder) lookup( DependencyTreeBuilder.class, "maven2" ); + artifactFactory = (ArtifactFactory) lookup( ArtifactFactory.class ); + } + + public void testBuilder() + throws DependencyTreeBuilderException + { + MockControl control = MockControl.createStrictControl( DependencyNodeVisitor.class ); + DependencyNodeVisitor visitor = (DependencyNodeVisitor) control.getMock(); + + DependencyNode springContext = + new DependencyNode( createArtifact( "org.springframework", "spring-context", "2.5.6" ) ); + springContext.setPremanagedVersion( "2.5.5" ); + DependencyNode springTest = + new DependencyNode( createArtifact( "org.springframework", "spring-test", "2.5.5", "test" ) ); + DependencyNode plexusUtils = + new DependencyNode( createArtifact( "org.codehaus.plexus", "plexus-utils", "1.4.5" ) ); + plexusUtils.setPremanagedVersion( "1.5.1" ); + DependencyNode slf4jLog4j12 = + new DependencyNode( createArtifact( "org.slf4j", "slf4j-log4j12", "1.5.0", "runtime" ) ); + slf4jLog4j12.setPremanagedScope( "test" ); + DependencyNode plexusLog4j = new DependencyNode( + createArtifact( "org.codehaus.plexus", "plexus-log4j-logging", "1.1-alpha-3", "test" ) ); + DependencyNode log4j = new DependencyNode( createArtifact( "log4j", "log4j", "1.2.14", "test" ) ); + DependencyNode mavenArtifact = + new DependencyNode( createArtifact( "org.apache.maven", "maven-artifact", "2.0.8", "test" ) ); + DependencyNode mavenProject = + new DependencyNode( createArtifact( "org.apache.maven", "maven-project", "2.0.8", "test" ) ); + DependencyNode mavenCore = + new DependencyNode( createArtifact( "org.apache.maven", "maven-core", "2.0.8", "test" ) ); + DependencyNode mavenSettings = + new DependencyNode( createArtifact( "org.apache.maven", "maven-settings", "2.0.8", "test" ) ); + DependencyNode mavenModel = + new DependencyNode( createArtifact( "org.apache.maven", "maven-model", "2.0.8", "test" ) ); + DependencyNode plexusCommandLine = + new DependencyNode( createArtifact( "org.codehaus.plexus", "plexus-command-line", "1.0-alpha-2", "test" ) ); + DependencyNode plexusRegistryCommons = new DependencyNode( + createArtifact( "org.codehaus.plexus.registry", "plexus-registry-commons", "1.0-alpha-2", "test" ) ); + plexusRegistryCommons.setPremanagedVersion( "1.0-alpha-3" ); + DependencyNode plexusRegistryApi = new DependencyNode( + createArtifact( "org.codehaus.plexus.registry", "plexus-registry-api", "1.0-alpha-2", "test" ) ); + plexusRegistryApi.setPremanagedVersion( "1.0-alpha-3" ); + + DependencyNode plexusSpring = + new DependencyNode( createArtifact( "org.codehaus.plexus", "plexus-spring", "1.2", "test" ) ); + plexusSpring.addChild( springContext ); + plexusSpring.addChild( springTest ); + plexusSpring.addChild( plexusUtils ); + plexusSpring.addChild( slf4jLog4j12 ); + plexusSpring.addChild( plexusLog4j ); + plexusSpring.addChild( log4j ); + plexusSpring.addChild( mavenArtifact ); + plexusSpring.addChild( mavenProject ); + plexusSpring.addChild( mavenCore ); + plexusSpring.addChild( mavenSettings ); + plexusSpring.addChild( mavenModel ); + plexusSpring.addChild( plexusCommandLine ); + plexusSpring.addChild( plexusRegistryCommons ); + plexusSpring.addChild( plexusRegistryApi ); + + DependencyNode commonsLang = new DependencyNode( createArtifact( "commons-lang", "commons-lang", "2.2" ) ); + DependencyNode commonsIO = new DependencyNode( createArtifact( "commons-io", "commons-io", "1.4" ) ); + DependencyNode slf4j = new DependencyNode( createArtifact( "org.slf4j", "slf4j-api", "1.5.0" ) ); + DependencyNode plexusAPI = + new DependencyNode( createArtifact( "org.codehaus.plexus", "plexus-component-api", "1.0-alpha-22" ) ); + DependencyNode xalan = new DependencyNode( createArtifact( "xalan", "xalan", "2.7.0" ) ); + DependencyNode dom4j = new DependencyNode( createArtifact( "dom4j", "dom4j", "1.6.1", "test" ) ); + dom4j.setFailedUpdateScope( "compile" ); + DependencyNode junit = new DependencyNode( createArtifact( "junit", "junit", "3.8.1", "test" ) ); + DependencyNode easymock = new DependencyNode( createArtifact( "easymock", "easymock", "1.2_Java1.3", "test" ) ); + DependencyNode easymockExt = + new DependencyNode( createArtifact( "easymock", "easymockclassextension", "1.2", "test" ) ); + + DependencyNode mainNode = + new DependencyNode( createProjectArtifact( TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION ) ); + mainNode.addChild( commonsLang ); + mainNode.addChild( commonsIO ); + mainNode.addChild( slf4j ); + mainNode.addChild( plexusAPI ); + mainNode.addChild( plexusSpring ); + mainNode.addChild( xalan ); + mainNode.addChild( dom4j ); + mainNode.addChild( junit ); + mainNode.addChild( easymock ); + mainNode.addChild( easymockExt ); + + control.expectAndReturn( visitor.visit( mainNode ), true ); + + control.expectAndReturn( visitor.visit( commonsLang ), true ); + control.expectAndReturn( visitor.endVisit( commonsLang ), true ); + + control.expectAndReturn( visitor.visit( commonsIO ), true ); + control.expectAndReturn( visitor.endVisit( commonsIO ), true ); + + control.expectAndReturn( visitor.visit( slf4j ), true ); + control.expectAndReturn( visitor.endVisit( slf4j ), true ); + + control.expectAndReturn( visitor.visit( plexusAPI ), true ); + control.expectAndReturn( visitor.endVisit( plexusAPI ), true ); + + control.expectAndReturn( visitor.visit( plexusSpring ), true ); + + control.expectAndReturn( visitor.visit( springContext ), true ); + control.expectAndReturn( visitor.endVisit( springContext ), true ); + + control.expectAndReturn( visitor.visit( springTest ), true ); + control.expectAndReturn( visitor.endVisit( springTest ), true ); + + control.expectAndReturn( visitor.visit( plexusUtils ), true ); + control.expectAndReturn( visitor.endVisit( plexusUtils ), true ); + + control.expectAndReturn( visitor.visit( slf4jLog4j12 ), true ); + control.expectAndReturn( visitor.endVisit( slf4jLog4j12 ), true ); + + control.expectAndReturn( visitor.visit( plexusLog4j ), true ); + control.expectAndReturn( visitor.endVisit( plexusLog4j ), true ); + + control.expectAndReturn( visitor.visit( log4j ), true ); + control.expectAndReturn( visitor.endVisit( log4j ), true ); + + control.expectAndReturn( visitor.visit( mavenArtifact ), true ); + control.expectAndReturn( visitor.endVisit( mavenArtifact ), true ); + + control.expectAndReturn( visitor.visit( mavenProject ), true ); + control.expectAndReturn( visitor.endVisit( mavenProject ), true ); + + control.expectAndReturn( visitor.visit( mavenCore ), true ); + control.expectAndReturn( visitor.endVisit( mavenCore ), true ); + + control.expectAndReturn( visitor.visit( mavenSettings ), true ); + control.expectAndReturn( visitor.endVisit( mavenSettings ), true ); + + control.expectAndReturn( visitor.visit( mavenModel ), true ); + control.expectAndReturn( visitor.endVisit( mavenModel ), true ); + + control.expectAndReturn( visitor.visit( plexusCommandLine ), true ); + control.expectAndReturn( visitor.endVisit( plexusCommandLine ), true ); + + control.expectAndReturn( visitor.visit( plexusRegistryCommons ), true ); + control.expectAndReturn( visitor.endVisit( plexusRegistryCommons ), true ); + + control.expectAndReturn( visitor.visit( plexusRegistryApi ), true ); + control.expectAndReturn( visitor.endVisit( plexusRegistryApi ), true ); + + control.expectAndReturn( visitor.endVisit( plexusSpring ), true ); + + control.expectAndReturn( visitor.visit( xalan ), true ); + control.expectAndReturn( visitor.endVisit( xalan ), true ); + + control.expectAndReturn( visitor.visit( dom4j ), true ); + control.expectAndReturn( visitor.endVisit( dom4j ), true ); + + control.expectAndReturn( visitor.visit( junit ), true ); + control.expectAndReturn( visitor.endVisit( junit ), true ); + + control.expectAndReturn( visitor.visit( easymock ), true ); + control.expectAndReturn( visitor.endVisit( easymock ), true ); + + control.expectAndReturn( visitor.visit( easymockExt ), true ); + control.expectAndReturn( visitor.endVisit( easymockExt ), true ); + + control.expectAndReturn( visitor.endVisit( mainNode ), true ); + + control.replay(); + + builder.buildDependencyTree( Collections.singletonList( TEST_REPO_ID ), TEST_GROUP_ID, TEST_ARTIFACT_ID, + TEST_VERSION, visitor ); + + control.verify(); + } + + private Artifact createProjectArtifact( String groupId, String artifactId, String version ) + { + return artifactFactory.createProjectArtifact( groupId, artifactId, version ); + } + + private Artifact createArtifact( String groupId, String artifactId, String version, String scope ) + { + return artifactFactory.createDependencyArtifact( groupId, artifactId, VersionRange.createFromVersion( version ), + "jar", null, scope ); + } + + private Artifact createArtifact( String groupId, String artifactId, String version ) + { + return createArtifact( groupId, artifactId, version, Artifact.SCOPE_COMPILE ); + } + + public void testBuilderMissingDependency() + throws DependencyTreeBuilderException + { + MockControl control = MockControl.createStrictControl( DependencyNodeVisitor.class ); + DependencyNodeVisitor visitor = (DependencyNodeVisitor) control.getMock(); + + // not visited + + control.replay(); + + builder.buildDependencyTree( Collections.singletonList( TEST_REPO_ID ), TEST_GROUP_ID, TEST_ARTIFACT_ID, + "not-a-version", visitor ); + + control.verify(); + } +}
Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java Tue Dec 1 16:01:31 2009 @@ -0,0 +1,75 @@ +package org.apache.archiva.metadata.repository; + +import java.util.Collection; + +import org.apache.archiva.metadata.model.ProjectMetadata; +import org.apache.archiva.metadata.model.ProjectVersionMetadata; +import org.apache.archiva.metadata.model.ProjectVersionReference; + +/* + * 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. + */ + +public class TestMetadataResolver + implements MetadataResolver +{ + public ProjectMetadata getProject( String repoId, String namespace, String projectId ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public ProjectVersionMetadata getProjectVersion( String repoId, String namespace, String projectId, + String projectVersion ) + throws MetadataResolverException + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public Collection<String> getArtifactVersions( String repoId, String namespace, String projectId, + String projectVersion ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public Collection<ProjectVersionReference> getProjectReferences( String repoId, String namespace, String projectId, + String projectVersion ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public Collection<String> getRootNamespaces( String repoId ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public Collection<String> getNamespaces( String repoId, String namespace ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public Collection<String> getProjects( String repoId, String namespace ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } + + public Collection<String> getProjectVersions( String repoId, String namespace, String projectId ) + throws MetadataResolverException + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } +} Modified: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java?rev=885812&r1=885811&r2=885812&view=diff ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java (original) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java Tue Dec 1 16:01:31 2009 @@ -231,7 +231,7 @@ assertEquals( Arrays.asList( "test" ), resolver.getNamespaces( TEST_REPO_ID, "com.example" ) ); assertEquals( Collections.<String>emptyList(), resolver.getNamespaces( TEST_REPO_ID, "com.example.test" ) ); - assertEquals( Arrays.asList( "apache" ), resolver.getNamespaces( TEST_REPO_ID, "org" ) ); + assertEquals( Arrays.asList( "apache", "codehaus" ), resolver.getNamespaces( TEST_REPO_ID, "org" ) ); assertEquals( Arrays.asList( "archiva", "maven" ), resolver.getNamespaces( TEST_REPO_ID, "org.apache" ) ); assertEquals( Collections.<String>emptyList(), resolver.getNamespaces( TEST_REPO_ID, "org.apache.archiva" ) ); assertEquals( Arrays.asList( "plugins", "shared" ), @@ -240,6 +240,9 @@ resolver.getNamespaces( TEST_REPO_ID, "org.apache.maven.plugins" ) ); assertEquals( Collections.<String>emptyList(), resolver.getNamespaces( TEST_REPO_ID, "org.apache.maven.shared" ) ); + + assertEquals( Arrays.asList( "plexus" ), resolver.getNamespaces( TEST_REPO_ID, "org.codehaus" ) ); + assertEquals( Collections.<String>emptyList(), resolver.getNamespaces( TEST_REPO_ID, "org.codehaus.plexus" ) ); } public void testGetProjects() Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-components/1.1.12/plexus-components-1.1.12.pom URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-components/1.1.12/plexus-components-1.1.12.pom?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-components/1.1.12/plexus-components-1.1.12.pom (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-components/1.1.12/plexus-components-1.1.12.pom Tue Dec 1 16:01:31 2009 @@ -0,0 +1,88 @@ +<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> + <parent> + <artifactId>plexus</artifactId> + <groupId>org.codehaus.plexus</groupId> + <version>1.0.10</version> + <relativePath>../pom/pom.xml</relativePath> + </parent> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-components</artifactId> + <packaging>pom</packaging> + <version>1.1.12</version> + <name>Plexus Components Parent Project</name> + <url>http://plexus.codehaus.org/plexus-components</url> + <dependencies> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-component-api</artifactId> + <version>1.0-alpha-20</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + <version>1.0-alpha-20</version> + <scope>test</scope> + </dependency> + </dependencies> + <modules> + <module>plexus-action</module> + <module>plexus-archiver</module> + <module>plexus-bayesian</module> + <module>plexus-command</module> + <module>plexus-compiler</module> + <module>plexus-drools</module> + <module>plexus-formica</module> + <module>plexus-formica-web</module> + <module>plexus-hibernate</module> + <module>plexus-i18n</module> + <module>plexus-interactivity</module> + <module>plexus-ircbot</module> + <module>plexus-jdo</module> + <module>plexus-jetty-httpd</module> + <module>plexus-jetty</module> + <module>plexus-mimetyper</module> + <module>plexus-mail-sender</module> + <module>plexus-notification</module> + <module>plexus-resources</module> + <module>plexus-taskqueue</module> + <module>plexus-velocity</module> + <module>plexus-xmlrpc</module> + </modules> + <scm> + <connection>scm:svn:http://svn.codehaus.org/plexus/plexus-components/trunk/</connection> + <developerConnection>scm:svn:https://svn.codehaus.org/plexus/plexus-components/trunk</developerConnection> + <url>http://fisheye.codehaus.org/browse/plexus/plexus-components/trunk/</url> + </scm> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-maven-plugin</artifactId> + <version>1.3.4</version> + <executions> + <execution> + <goals> + <goal>descriptor</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <reporting> + <plugins> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-maven-plugin</artifactId> + <version>1.3.4</version> + </plugin> + </plugins> + </reporting> +</project> Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom Tue Dec 1 16:01:31 2009 @@ -0,0 +1,232 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ 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. +--> +<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"> + <parent> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-components</artifactId> + <version>1.1.12</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-spring</artifactId> + <version>1.2</version> + <name>Plexus to Spring Adapter</name> + + <description>Bridge utility to use plexus components in a SpringFramework context.</description> + <properties> + <springVersion>2.5.5</springVersion> + </properties> + <dependencies> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-context</artifactId> + <version>${springVersion}</version> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-web</artifactId> + <version>${springVersion}</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>org.springframework</groupId> + <artifactId>spring-test</artifactId> + <version>${springVersion}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-component-api</artifactId> + <version>1.0-alpha-22</version> + </dependency> + <dependency> + <groupId>dom4j</groupId> + <artifactId>dom4j</artifactId> + <version>1.6.1</version> + </dependency> + <dependency> + <groupId>com.opensymphony</groupId> + <artifactId>webwork</artifactId> + <version>2.2.6</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.3</version> + <optional>true</optional> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + <version>1.5.1</version> + </dependency> + + <!-- for struts2 integration --> + <dependency> + <groupId>org.apache.struts</groupId> + <artifactId>struts2-spring-plugin</artifactId> + <version>2.1.2</version> + <optional>true</optional> + </dependency> + + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.5.0</version> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>1.5.0</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <scope>compile</scope> + <optional>true</optional> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-log4j-logging</artifactId> + <version>1.1-alpha-3</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.14</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + <scope>test</scope> + <version>2.0.8</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-project</artifactId> + <version>2.0.8</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-core</artifactId> + <version>2.0.8</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-settings</artifactId> + <version>2.0.8</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-model</artifactId> + <version>2.0.8</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-command-line</artifactId> + <version>1.0-alpha-2</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.codehaus.plexus.registry</groupId> + <artifactId>plexus-registry-commons</artifactId> + <version>1.0-alpha-3</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>ant</groupId> + <artifactId>ant-optional</artifactId> + </exclusion> + <exclusion> + <groupId>jdom</groupId> + <artifactId>jdom</artifactId> + </exclusion> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging-api</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.codehaus.plexus.registry</groupId> + <artifactId>plexus-registry-api</artifactId> + <version>1.0-alpha-3</version> + <scope>test</scope> + </dependency> + </dependencies> + + <developers> + <developer> + <email>[email protected]</email> + <name>Nicolas De Loof</name> + </developer> + </developers> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.0.2</version> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + <plugin> + <artifactId>maven-release-plugin</artifactId> + <version>2.0-beta-7</version> + <configuration> + <useReleaseProfile>true</useReleaseProfile> + <tagBase>https://svn.codehaus.org/plexus/plexus-components/tags/</tagBase> + <arguments>-Prelease</arguments> + </configuration> + </plugin> + </plugins> + </build> + + <scm> + <connection>scm:svn:http://svn.codehaus.org/plexus/plexus-components/tags/plexus-spring-1.2</connection> + <developerConnection>scm:svn:https://svn.codehaus.org/plexus/plexus-components/tags/plexus-spring-1.2</developerConnection> + <url>http://fisheye.codehaus.org/browse/plexus/plexus-components/tags/plexus-spring-1.2</url> + </scm> + +</project> Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus/1.0.10/plexus-1.0.10.pom Tue Dec 1 16:01:31 2009 @@ -0,0 +1,273 @@ +<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.codehaus.plexus</groupId> + <artifactId>plexus</artifactId> + <packaging>pom</packaging> + <name>Plexus</name> + <version>1.0.10</version> + <ciManagement> + <notifiers> + <notifier> + <type>mail</type> + <configuration> + <address>[email protected]</address> + </configuration> + </notifier> + <notifier> + <type>irc</type> + <configuration> + <host>irc.codehaus.org</host> + <port>6667</port> + <channel>#plexus</channel> + </configuration> + </notifier> + </notifiers> + </ciManagement> + <inceptionYear>2001</inceptionYear> + <mailingLists> + <mailingList> + <name>Plexus User List</name> + <subscribe>http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org</subscribe> + <unsubscribe>http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org</unsubscribe> + <archive>http://archive.plexus.codehaus.org/user</archive> + </mailingList> + <mailingList> + <name>Plexus Developer List</name> + <subscribe>http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org</subscribe> + <unsubscribe>http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org</unsubscribe> + <archive>http://archive.plexus.codehaus.org/dev</archive> + </mailingList> + <mailingList> + <name>Plexus Announce List</name> + <subscribe>http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org</subscribe> + <unsubscribe>http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org</unsubscribe> + <archive>http://archive.plexus.codehaus.org/announce</archive> + </mailingList> + <mailingList> + <name>Plexus Commit List</name> + <subscribe>http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org</subscribe> + <unsubscribe>http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org</unsubscribe> + <archive>http://archive.plexus.codehaus.org/scm</archive> + </mailingList> + </mailingLists> + <issueManagement> + <system>JIRA</system> + <url>http://jira.codehaus.org/browse/PLX</url> + </issueManagement> + + <distributionManagement> + <repository> + <id>codehaus.org</id> + <name>Plexus Central Repository</name> + <url>dav:https://dav.codehaus.org/repository/plexus</url> + </repository> + <snapshotRepository> + <id>codehaus.org</id> + <name>Plexus Central Development Repository</name> + <url>dav:https://dav.codehaus.org/snapshots.repository/plexus</url> + </snapshotRepository> + <site> + <id>codehaus.org</id> + <url>dav:https://dav.codehaus.org/plexus</url> + </site> + </distributionManagement> + <repositories> + <repository> + <id>codehaus.snapshots</id> + <name>Codehaus Snapshot Development Repository</name> + <url>http://snapshots.repository.codehaus.org</url> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> + + <developers> + <developer> + <id>jvanzyl</id> + <name>Jason van Zyl</name> + <email>[email protected]</email> + <roles> + <role>Developer</role> + <role>Release Manager</role> + </roles> + </developer> + <developer> + <id>kaz</id> + <name>Pete Kazmier</name> + <email /> + <organization /> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>jtaylor</id> + <name>James Taylor</name> + <email>[email protected]</email> + <organization /> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>dandiep</id> + <name>Dan Diephouse</name> + <email>[email protected]</email> + <organization>Envoi solutions</organization> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>kasper</id> + <name>Kasper Nielsen</name> + <email>[email protected]</email> + <organization /> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>bwalding</id> + <name>Ben Walding</name> + <email>[email protected]</email> + <organization>Walding Consulting Services</organization> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>mhw</id> + <name>Mark Wilkinson</name> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>michal</id> + <name>Michal Maczka</name> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <id>evenisse</id> + <name>Emmanuel Venisse</name> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Trygve Laugstol</name> + <id>trygvis</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Kenney Westerhof</name> + <id>kenney</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Carlos Sanchez</name> + <id>carlos</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Brett Porter</name> + <id>brett</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>John Casey</name> + <id>jdcasey</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Andrew Williams</name> + <id>handyande</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Rahul Thakur</name> + <id>rahul</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Joakim Erdfelt</name> + <id>joakime</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + <developer> + <name>Olivier Lamy</name> + <id>olamy</id> + <email>[email protected]</email> + <roles> + <role>Developer</role> + </roles> + </developer> + </developers> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> + <scm> + <connection>scm:svn:http://svn.codehaus.org/plexus/pom/tags/plexus-1.0.10</connection> + <developerConnection>scm:svn:https://svn.codehaus.org/plexus/pom/tags/plexus-1.0.10</developerConnection> + <url>http://fisheye.codehaus.org/browse/plexus/pom/tags/plexus-1.0.10</url> + </scm> + <organization> + <name>Codehaus</name> + <url>http://www.codehaus.org/</url> + </organization> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.4</source> + <target>1.4</target> + </configuration> + </plugin> + </plugins> + <extensions> + <extension> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-webdav</artifactId> + <version>1.0-beta-2</version> + </extension> + </extensions> + </build> +</project> Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/commons-io/commons-io/1.4/commons-io-1.4.pom URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/commons-io/commons-io/1.4/commons-io-1.4.pom?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/commons-io/commons-io/1.4/commons-io-1.4.pom (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/commons-io/commons-io/1.4/commons-io-1.4.pom Tue Dec 1 16:01:31 2009 @@ -0,0 +1,419 @@ +<?xml version="1.0"?> +<!-- + 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"> + <parent> + <groupId>org.apache.commons</groupId> + <artifactId>commons-parent</artifactId> + <version>7</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <groupId>commons-io</groupId> + <artifactId>commons-io</artifactId> + <version>1.4</version> + <name>Commons IO</name> + + <inceptionYear>2002</inceptionYear> + <description> + Commons-IO contains utility classes, stream implementations, file filters, file comparators and endian classes. + </description> + + <url>http://commons.apache.org/io/</url> + + <issueManagement> + <system>jira</system> + <url>http://issues.apache.org/jira/browse/IO</url> + </issueManagement> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/io/trunk</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/io/trunk</developerConnection> + <url>http://svn.apache.org/viewvc/commons/proper/io/trunk</url> + </scm> + + <developers> + <developer> + <name>Scott Sanders</name> + <id>sanders</id> + <email>[email protected]</email> + <organization></organization> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>dIon Gillard</name> + <id>dion</id> + <email>[email protected]</email> + <organization></organization> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Nicola Ken Barozzi</name> + <id>nicolaken</id> + <email>[email protected]</email> + <organization></organization> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Henri Yandell</name> + <id>bayard</id> + <email>[email protected]</email> + <organization></organization> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Stephen Colebourne</name> + <id>scolebourne</id> + <organization></organization> + <roles> + <role>Java Developer</role> + </roles> + <timezone>0</timezone> + </developer> + <developer> + <name>Jeremias Maerki</name> + <id>jeremias</id> + <email>[email protected]</email> + <organization/> + <roles> + <role>Java Developer</role> + </roles> + <timezone>+1</timezone> + </developer> + <developer> + <name>Matthew Hawthorne</name> + <id>matth</id> + <email>[email protected]</email> + <organization/> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Martin Cooper</name> + <id>martinc</id> + <email>[email protected]</email> + <organization/> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Rob Oxspring</name> + <id>roxspring</id> + <email>[email protected]</email> + <organization/> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Jochen Wiedmann</name> + <id>jochen</id> + <email>[email protected]</email> + </developer> + <developer> + <name>Niall Pemberton</name> + <id>niallp</id> + <roles> + <role>Java Developer</role> + </roles> + </developer> + <developer> + <name>Jukka Zitting</name> + <id>jukka</id> + <roles> + <role>Java Developer</role> + </roles> + </developer> + </developers> + + <contributors> + <contributor> + <name>Rahul Akolkar</name> + </contributor> + <contributor> + <name>Jason Anderson</name> + </contributor> + <contributor> + <name>Nathan Beyer</name> + </contributor> + <contributor> + <name>Emmanuel Bourg</name> + </contributor> + <contributor> + <name>Chris Eldredge</name> + </contributor> + <contributor> + <name>Magnus Grimsell</name> + </contributor> + <contributor> + <name>Jim Harrington</name> + </contributor> + <contributor> + <name>Thomas Ledoux</name> + </contributor> + <contributor> + <name>Andy Lehane</name> + </contributor> + <contributor> + <name>Marcelo Liberato</name> + </contributor> + <contributor> + <name>Alban Peignier</name> + <email>alban.peignier at free.fr</email> + </contributor> + <contributor> + <name>Ian Springer</name> + </contributor> + <contributor> + <name>Masato Tezuka</name> + </contributor> + <contributor> + <name>James Urie</name> + </contributor> + <contributor> + <name>Frank W. Zammetti</name> + </contributor> + </contributors> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <sourceDirectory>src/java</sourceDirectory> + <testSourceDirectory>src/test</testSourceDirectory> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <includes> + <include>**/*Test*</include> + </includes> + <excludes> + <exclude>**/*AbstractTestCase*</exclude> + <exclude>**/AllIOTestSuite*</exclude> + <exclude>**/PackageTestSuite*</exclude> + <exclude>**/testtools/**</exclude> + + <!-- http://jira.codehaus.org/browse/SUREFIRE-44 --> + <exclude>**/*$*</exclude> + </excludes> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + <descriptor>src/main/assembly/src.xml</descriptor> + </descriptors> + <tarLongFileMode>gnu</tarLongFileMode> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <!-- + Configure OSGi bundle information + (remove when maven bundle plugin is added to commons-parent pom) + --> + <manifestEntries> + <Bundle-SymbolicName>org.apache.commons.io</Bundle-SymbolicName> + <Bundle-License>http://www.apache.org/licenses/LICENSE-2.0.txt</Bundle-License> + <Bundle-ManifestVersion>2</Bundle-ManifestVersion> + <Bundle-Name>Apache Commons IO Bundle</Bundle-Name> + <Bundle-Vendor>${project.organization.name}</Bundle-Vendor> + <Bundle-Version>${project.version}</Bundle-Version> + <Export-Package> +org.apache.commons.io;version=${project.version}, +org.apache.commons.io.comparator;version=${project.version}, +org.apache.commons.io.filefilter;version=${project.version}, +org.apache.commons.io.input;version=${project.version}, +org.apache.commons.io.output;version=${project.version} + </Export-Package> + <Import-Package> +org.apache.commons.io;version=${project.version}, +org.apache.commons.io.comparator;version=${project.version}, +org.apache.commons.io.filefilter;version=${project.version}, +org.apache.commons.io.input;version=${project.version}, +org.apache.commons.io.output;version=${project.version} + </Import-Package> + </manifestEntries> + </archive> + </configuration> + </plugin> + </plugins> + </build> + + <reporting> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-changes-plugin</artifactId> + <version>2.0-beta-3</version> + <configuration> + <issueLinkTemplate>%URL%/../%ISSUE%</issueLinkTemplate> + <!-- + JIRA Search parameters: + - resolution=1 specifies "Fixed" + - fixfor=12312101 specifies "Commons IO version 1.4" + + If/when http://jira.codehaus.org/browse/MCHANGES-92 + is fixed this will be easier/less messy + --> + <filter>&&resolution=1&fixfor=12312101</filter> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>jira-report</report> + </reports> + </reportSet> + </reportSets> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>2.1</version> + <configuration> + <configLocation>checkstyle.xml</configLocation> + <enableRulesSummary>false</enableRulesSummary> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.3</version> + <configuration> + <source>1.4</source> + <links> + <link>http://java.sun.com/j2se/1.4.2/docs/api</link> + </links> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>clirr-maven-plugin</artifactId> + <version>2.1</version> + <configuration> + <comparisonVersion>1.3.2</comparisonVersion> + <minSeverity>info</minSeverity> + </configuration> + </plugin> + </plugins> + </reporting> + + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>site</goal> + </goals> + <phase>package</phase> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>run</goal> + </goals> + <phase>package</phase> + <configuration> + <tasks> + <copy todir="${project.build.directory}/site/api-release"> + <fileset dir="${project.build.directory}/site/apidocs"/> + </copy> + </tasks> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>attached</goal> + </goals> + <phase>package</phase> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>rc</id> + <build> + <plugins> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>site</goal> + </goals> + <phase>package</phase> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>attached</goal> + </goals> + <phase>package</phase> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> Added: archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.xml URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.xml?rev=885812&view=auto ============================================================================== --- archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.xml (added) +++ archiva/branches/MRM-1025/archiva-modules/plugins/maven2-repository/src/test/resources/org/apache/archiva/dependency/tree/maven2/DependencyTreeBuilderTest.xml Tue Dec 1 16:01:31 2009 @@ -0,0 +1,33 @@ +<!-- + ~ 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. + --> + +<component-set> + <components> + <component> + <role>org.apache.archiva.metadata.repository.MetadataResolver</role> + <implementation>org.apache.archiva.metadata.repository.TestMetadataResolver</implementation> + <role-hint>default</role-hint> + <instantiation-strategy>per-lookup</instantiation-strategy> + </component> + <component> + <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role> + <implementation>org.apache.archiva.configuration.TestConfiguration</implementation> + </component> + </components> +</component-set> \ No newline at end of file Modified: archiva/branches/MRM-1025/pom.xml URL: http://svn.apache.org/viewvc/archiva/branches/MRM-1025/pom.xml?rev=885812&r1=885811&r2=885812&view=diff ============================================================================== --- archiva/branches/MRM-1025/pom.xml (original) +++ archiva/branches/MRM-1025/pom.xml Tue Dec 1 16:01:31 2009 @@ -1097,6 +1097,17 @@ </exclusions> </dependency> <dependency> + <groupId>org.apache.maven.shared</groupId> + <artifactId>maven-dependency-tree</artifactId> + <version>1.2</version> + <exclusions> + <exclusion> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact-manager</artifactId> <version>${maven.version}</version> @@ -1109,6 +1120,11 @@ </dependency> <dependency> <groupId>org.apache.maven</groupId> + <artifactId>maven-artifact</artifactId> + <version>${maven.version}</version> + </dependency> + <dependency> + <groupId>org.apache.maven</groupId> <artifactId>maven-repository-metadata</artifactId> <version>${maven.version}</version> </dependency>
