You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2012/05/13 14:40:50 UTC
svn commit: r1337857 - in
/maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin:
CompilerMojo.java TestCompilerMojo.java
Author: olamy
Date: Sun May 13 12:40:49 2012
New Revision: 1337857
URL: http://svn.apache.org/viewvc?rev=1337857&view=rev
Log:
requiresDependencyResolution is now an enum
Modified:
maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/CompilerMojo.java
maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java
Modified: maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/CompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/CompilerMojo.java?rev=1337857&r1=1337856&r2=1337857&view=diff
==============================================================================
--- maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/CompilerMojo.java (original)
+++ maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/CompilerMojo.java Sun May 13 12:40:49 2012
@@ -20,6 +20,7 @@ package org.apache.maven.plugin;
*/
import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugins.annotations.DependencyScope;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner;
@@ -41,7 +42,7 @@ import java.util.Set;
* @since 2.0
*/
@org.apache.maven.plugins.annotations.Mojo( name = "compile", defaultPhase = LifecyclePhase.COMPILE, threadSafe = true,
- requiresDependencyResolution = "compile" )
+ requiresDependencyResolution = DependencyScope.COMPILE )
public class CompilerMojo
extends AbstractCompilerMojo
{
Modified: maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java?rev=1337857&r1=1337856&r2=1337857&view=diff
==============================================================================
--- maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java (original)
+++ maven/plugins/branches/maven-compiler-plugin-annotations/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java Sun May 13 12:40:49 2012
@@ -19,6 +19,7 @@ package org.apache.maven.plugin;
* under the License.
*/
+import org.apache.maven.plugins.annotations.DependencyScope;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Parameter;
import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner;
@@ -40,7 +41,7 @@ import java.util.Set;
* @since 2.0
*/
@org.apache.maven.plugins.annotations.Mojo( name = "testCompile", defaultPhase = LifecyclePhase.TEST_COMPILE,
- threadSafe = true, requiresDependencyResolution = "test" )
+ threadSafe = true, requiresDependencyResolution = DependencyScope.TEST )
public class TestCompilerMojo
extends AbstractCompilerMojo
{