You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/12/08 16:06:07 UTC
git commit: added @since info
Updated Branches:
refs/heads/master f95ab2e7c -> 23bd8d98a
added @since info
Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/23bd8d98
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/23bd8d98
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/23bd8d98
Branch: refs/heads/master
Commit: 23bd8d98a66ea7bc078a96447ee7ed8555ceaaf0
Parents: f95ab2e
Author: Hervé Boutemy <hb...@apache.org>
Authored: Sat Dec 8 16:05:37 2012 +0100
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Sat Dec 8 16:05:37 2012 +0100
----------------------------------------------------------------------
.../maven/classrealm/DefaultClassRealmManager.java | 7 ++++-
.../maven/plugin/descriptor/MojoDescriptor.java | 16 +++++++++++++-
2 files changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/23bd8d98/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java b/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java
index 0db5b4b..e6e15d2 100644
--- a/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java
+++ b/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java
@@ -127,7 +127,7 @@ public class DefaultClassRealmManager
return mavenRealm;
}
- private void importMavenApi( Map<String, ClassLoader> imports )
+ private void importMavenApi( Map<String, ClassLoader> imports, boolean importSlf4japi )
{
ClassRealm coreRealm = getCoreRealm();
@@ -219,7 +219,10 @@ public class DefaultClassRealmManager
// imports.put( "com.google.inject.util.*", coreRealm );
// SLF4J
- imports.put( "org.slf4j.*", coreRealm );
+ if ( importSlf4japi )
+ {
+ imports.put( "org.slf4j.*", coreRealm );
+ }
}
/**
http://git-wip-us.apache.org/repos/asf/maven/blob/23bd8d98/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java
----------------------------------------------------------------------
diff --git a/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java b/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java
index d73f66d..8c3d9da 100644
--- a/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java
+++ b/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java
@@ -108,7 +108,10 @@ public class MojoDescriptor
/** Specify the required dependencies in a specified scope */
private String dependencyResolutionRequired = null;
- /** The scope of (transitive) dependencies that should be collected but not resolved. */
+ /**
+ * The scope of (transitive) dependencies that should be collected but not resolved.
+ * @since 3.0-alpha-3
+ */
private String dependencyCollectionRequired;
/** By default, the Mojo needs a Maven project to be executed */
@@ -132,7 +135,10 @@ public class MojoDescriptor
/** By default, the Mojo don't need reports to run */
private boolean requiresReports = false;
- /** By default, mojos are not threadsafe */
+ /**
+ * By default, mojos are not threadsafe
+ * @since 3.0-beta-2
+ */
private boolean threadSafe = false;
/**
@@ -271,6 +277,9 @@ public class MojoDescriptor
return dependencyResolutionRequired;
}
+ /**
+ * @since 3.0-alpha-3
+ */
public void setDependencyCollectionRequired( String requiresDependencyCollection )
{
this.dependencyCollectionRequired = requiresDependencyCollection;
@@ -284,6 +293,7 @@ public class MojoDescriptor
* full dependency resolution might fail due to projects which haven't been built yet.
*
* @return The scope of (transitive) dependencies that should be collected or {@code null} if none.
+ * @since 3.0-alpha-3
*/
public String getDependencyCollectionRequired()
{
@@ -664,6 +674,7 @@ public class MojoDescriptor
/**
* @return True if the <code>Mojo</code> is thread-safe and can be run safely in parallel
+ * @since 3.0-beta-2
*/
public boolean isThreadSafe()
{
@@ -672,6 +683,7 @@ public class MojoDescriptor
/**
* @param threadSafe indicates that the mojo is thread-safe and can be run safely in parallel
+ * @since 3.0-beta-2
*/
public void setThreadSafe( boolean threadSafe )
{