mirror of https://github.com/apache/maven.git
added @since info
This commit is contained in:
parent
f95ab2e7cd
commit
23bd8d98a6
|
@ -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,8 +219,11 @@ public class DefaultClassRealmManager
|
|||
// imports.put( "com.google.inject.util.*", coreRealm );
|
||||
|
||||
// SLF4J
|
||||
if ( importSlf4japi )
|
||||
{
|
||||
imports.put( "org.slf4j.*", coreRealm );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new class realm with the specified parent and imports.
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue