mirror of https://github.com/apache/archiva.git
generate plexus descriptor
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@360035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d159b3a26
commit
31515d5b96
|
@ -31,11 +31,14 @@ import java.util.StringTokenizer;
|
|||
*
|
||||
* @author John Casey
|
||||
* @author Brett Porter
|
||||
*
|
||||
* @plexus.component role="org.apache.maven.repository.discovery.ArtifactDiscoverer" role-hint="default" instantiation-strategy="per-lookup"
|
||||
*/
|
||||
public class DefaultArtifactDiscoverer
|
||||
extends AbstractArtifactDiscoverer
|
||||
implements ArtifactDiscoverer
|
||||
{
|
||||
/** @plexus.requirement */
|
||||
private ArtifactFactory artifactFactory;
|
||||
|
||||
public List discoverArtifacts( File repositoryBase, String blacklistedPatterns, boolean includeSnapshots )
|
||||
|
|
|
@ -44,6 +44,8 @@ import java.util.StringTokenizer;
|
|||
|
||||
/**
|
||||
* This class gets all the paths that contain the metadata files.
|
||||
*
|
||||
* @plexus.component role="org.apache.maven.repository.discovery.MetadataDiscoverer" role-hint="default" instantiation-strategy="per-lookup"
|
||||
*/
|
||||
public class DefaultMetadataDiscoverer
|
||||
extends AbstractArtifactDiscoverer
|
||||
|
|
|
@ -32,11 +32,14 @@ import java.util.StringTokenizer;
|
|||
*
|
||||
* @author John Casey
|
||||
* @author Brett Porter
|
||||
*
|
||||
* @plexus.component role="org.apache.maven.repository.discovery.ArtifactDiscoverer" role-hint="legacy" instantiation-strategy="per-lookup"
|
||||
*/
|
||||
public class LegacyArtifactDiscoverer
|
||||
extends AbstractArtifactDiscoverer
|
||||
implements ArtifactDiscoverer
|
||||
{
|
||||
/** @plexus.requirement */
|
||||
private ArtifactFactory artifactFactory;
|
||||
|
||||
public List discoverArtifacts( File repositoryBase, String blacklistedPatterns, boolean includeSnapshots )
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
<!--
|
||||
~ 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.
|
||||
-->
|
||||
|
||||
<component-set>
|
||||
<components>
|
||||
<component>
|
||||
<role>org.apache.maven.repository.discovery.MetadataDiscoverer</role>
|
||||
<role-hint>default</role-hint>
|
||||
<implementation>org.apache.maven.repository.discovery.DefaultMetadataDiscoverer</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
<component>
|
||||
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
|
||||
<role-hint>legacy</role-hint>
|
||||
<implementation>org.apache.maven.repository.discovery.LegacyArtifactDiscoverer</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.apache.maven.artifact.factory.ArtifactFactory</role>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
<component>
|
||||
<role>org.apache.maven.repository.discovery.ArtifactDiscoverer</role>
|
||||
<role-hint>default</role-hint>
|
||||
<implementation>org.apache.maven.repository.discovery.DefaultArtifactDiscoverer</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.apache.maven.artifact.factory.ArtifactFactory</role>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
</components>
|
||||
</component-set>
|
13
pom.xml
13
pom.xml
|
@ -104,6 +104,19 @@
|
|||
<url>http://www.apache.org/</url>
|
||||
</organization>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>descriptor</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
Loading…
Reference in New Issue