You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2009/04/08 23:35:19 UTC
svn commit: r763409 - in
/maven/plugins/trunk/maven-dependency-plugin/src/main:
java/org/apache/maven/plugin/dependency/GetMojo.java
resources/META-INF/plexus/components.xml
resources/analyze-report.properties resources/analyze-report_de.properties
Author: vsiveton
Date: Wed Apr 8 21:35:18 2009
New Revision: 763409
URL: http://svn.apache.org/viewvc?rev=763409&view=rev
Log:
o fixed license header
Modified:
maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/GetMojo.java
maven/plugins/trunk/maven-dependency-plugin/src/main/resources/META-INF/plexus/components.xml
maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report.properties
maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report_de.properties
Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/GetMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/GetMojo.java?rev=763409&r1=763408&r2=763409&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/GetMojo.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/GetMojo.java Wed Apr 8 21:35:18 2009
@@ -1,19 +1,22 @@
package org.apache.maven.plugin.dependency;
/*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * 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
*
- * 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
*
- * 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.
+ * 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.ArrayList;
@@ -41,38 +44,38 @@
*
* @goal get
* @requiresProject false
- *
+ *
*/
public class GetMojo
extends AbstractMojo
{
-
+
/**
* @component
* @readonly
*/
private ArtifactFactory artifactFactory;
-
+
/**
* @component
* @readonly
*/
private ArtifactResolver artifactResolver;
-
+
/**
* @component
* @readonly
*/
private ArtifactRepositoryFactory artifactRepositoryFactory;
-
+
/**
* @component
* @readonly
*/
private ArtifactMetadataSource source;
-
+
/**
- *
+ *
* @parameter expression="${localRepository}"
* @readonly
*/
@@ -120,30 +123,30 @@
* @readonly
*/
private String remoteRepositories;
-
+
/**
* A string of the form groupId:artifactId:version[:packaging].
* @parameter expression="${artifact}"
*/
private String artifact;
-
+
/**
- *
+ *
* @parameter expression="${project.remoteArtifactRepositories}"
* @required
* @readonly
*/
private List pomRemoteRepositories;
-
+
/**
* Download transitively, retrieving the specified artifact and all of its dependencies.
* @parameter expression="{$transitive}" default-value=true
*/
private boolean transitive = true;
-
+
public void execute()
throws MojoExecutionException, MojoFailureException
- {
+ {
if ( artifactId == null && artifact == null )
throw new MojoFailureException( "You must specify an artifact, "
@@ -196,7 +199,7 @@
{
artifactResolver.resolve ( toDownload, repoList, localRepository );
}
-
+
}
catch ( AbstractArtifactResolutionException e )
{
Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/resources/META-INF/plexus/components.xml?rev=763409&r1=763408&r2=763409&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/resources/META-INF/plexus/components.xml (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/resources/META-INF/plexus/components.xml Wed Apr 8 21:35:18 2009
@@ -1,6 +1,24 @@
<component-set>
- <components>
- <!-- UnArchiver -->
+<!--
+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.
+-->
+ <components>
+ <!-- UnArchiver -->
<component>
<role>org.codehaus.plexus.archiver.UnArchiver</role>
<role-hint>zip</role-hint>
@@ -34,21 +52,21 @@
<!-- there is no implementation of SWCUnArchiver, but ZipUnArchive will do the job -->
<implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
- </component>
+ </component>
<component>
<role>org.codehaus.plexus.archiver.UnArchiver</role>
<role-hint>nar</role-hint>
<!-- there is no implementation of NARUnArchiver, but ZipUnArchive will do the job -->
<implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
- </component>
+ </component>
<component>
<role>org.codehaus.plexus.archiver.UnArchiver</role>
<role-hint>esb</role-hint>
<!-- there is no implementation of ESBUnArchiver, but ZipUnArchive will do the job -->
<implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
- </component>
+ </component>
<component>
<role>org.codehaus.plexus.archiver.UnArchiver</role>
<role-hint>sar</role-hint>
@@ -62,14 +80,14 @@
<!-- there is no implementation of CARUnArchiver, but ZipUnArchive will do the job -->
<implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
- </component>
+ </component>
<component>
<role>org.codehaus.plexus.archiver.UnArchiver</role>
<role-hint>par</role-hint>
<!-- there is no implementation of PARUnArchiver, but ZipUnArchive will do the job -->
<implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
- </component>
+ </component>
<component>
<role>org.codehaus.plexus.archiver.UnArchiver</role>
<role-hint>rar</role-hint>
@@ -77,6 +95,6 @@
<implementation>org.codehaus.plexus.archiver.zip.ZipUnArchiver</implementation>
<instantiation-strategy>per-lookup</instantiation-strategy>
</component>
-
+
</components>
</component-set>
Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report.properties?rev=763409&r1=763408&r2=763409&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report.properties (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report.properties Wed Apr 8 21:35:18 2009
@@ -1,18 +1,19 @@
+# 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
#
-# Copyright 2001-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.
+# 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.
analyze.report.name=Dependency Analysis
analyze.report.description=Dependency analysis of the project (used declared, used undeclared, unused declared)
Modified: maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report_de.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report_de.properties?rev=763409&r1=763408&r2=763409&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report_de.properties (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/main/resources/analyze-report_de.properties Wed Apr 8 21:35:18 2009
@@ -1,18 +1,19 @@
+# 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
#
-# Copyright 2001-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.
+# 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.
analyze.report.name=Abhängigkeitsanalyse
analyze.report.description=Eine Analysebericht der Projektabhängigkeiten (verwendet und deklariert, verwendet aber nicht deklariert, unverwendet aber deklariert)