Permalink
Browse files

removed Maven3 dependency

  • Loading branch information...
kohsuke committed Apr 20, 2011
1 parent c362388 commit 1b30c6facbac1331d0b69660ecf596011b9ba8a9
Showing with 3 additions and 7 deletions.
  1. +1 −6 pom.xml
  2. +2 −1 src/main/java/com/cloudbees/maven/license/ProcessMojo.java
View
@@ -40,12 +40,7 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
- <version>3.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-compat</artifactId>
- <version>3.0</version>
+ <version>2.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
@@ -38,6 +38,7 @@
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
+import java.util.Set;
/**
* Process license information.
@@ -155,7 +156,7 @@ public void execute() throws MojoExecutionException {
try {
Map<Artifact,MavenProject> models = new HashMap<Artifact, MavenProject>();
- for (Artifact a : project.getArtifacts()) {
+ for (Artifact a : (Set<Artifact>)project.getArtifacts()) {
Artifact pom = artifactFactory.createProjectArtifact(a.getGroupId(), a.getArtifactId(), a.getVersion());
MavenProject model = projectBuilder.buildFromRepository(pom, project.getRemoteArtifactRepositories(), localRepository);
models.put(a,model);

0 comments on commit 1b30c6f

Please sign in to comment.