mirror of https://github.com/apache/maven.git
parent
e6c897efb6
commit
96e11e1c84
|
@ -123,8 +123,7 @@ public abstract class AbstractRepositoryMetadata
|
|||
|
||||
// beware meta-versions!
|
||||
String version = metadata.getVersion();
|
||||
if ( version != null && ( Artifact.LATEST_VERSION.equals( version ) || Artifact.RELEASE_VERSION.equals(
|
||||
version ) ) )
|
||||
if ( Artifact.LATEST_VERSION.equals( version ) || Artifact.RELEASE_VERSION.equals( version ) )
|
||||
{
|
||||
// meta-versions are not valid <version/> values...don't write them.
|
||||
metadata.setVersion( null );
|
||||
|
|
|
@ -243,12 +243,11 @@ public class DefaultClassRealmManager
|
|||
{
|
||||
Objects.requireNonNull( plugin, "plugin cannot be null" );
|
||||
|
||||
ClassLoader parent = PARENT_CLASSLOADER;
|
||||
|
||||
Map<String, ClassLoader> foreignImports =
|
||||
Collections.<String, ClassLoader>singletonMap( "", getMavenApiRealm() );
|
||||
|
||||
return createRealm( getKey( plugin, true ), RealmType.Extension, parent, null, foreignImports, artifacts );
|
||||
return createRealm( getKey( plugin, true ), RealmType.Extension, PARENT_CLASSLOADER, null,
|
||||
foreignImports, artifacts );
|
||||
}
|
||||
|
||||
private boolean isProvidedArtifact( Artifact artifact )
|
||||
|
|
|
@ -190,7 +190,7 @@ public class MojoDescriptorCreator
|
|||
plugin.setArtifactId( tok.nextToken() );
|
||||
goal = tok.nextToken();
|
||||
}
|
||||
else if ( numTokens <= 2 )
|
||||
else
|
||||
{
|
||||
// We have a prefix and goal
|
||||
//
|
||||
|
|
|
@ -337,7 +337,7 @@ public class MavenCli
|
|||
"-D%s system property is not set.", MULTIMODULE_PROJECT_DIRECTORY );
|
||||
throw new ExitException( 1 );
|
||||
}
|
||||
File basedir = basedirProperty != null ? new File( basedirProperty ) : new File( "" );
|
||||
File basedir = new File( basedirProperty );
|
||||
try
|
||||
{
|
||||
cliRequest.multiModuleProjectDirectory = basedir.getCanonicalFile();
|
||||
|
@ -764,7 +764,7 @@ public class MavenCli
|
|||
|
||||
MavenExecutionRequest request = DefaultMavenExecutionRequest.copy( cliRequest.request );
|
||||
|
||||
request = populateRequest( cliRequest, request );
|
||||
populateRequest( cliRequest, request );
|
||||
|
||||
request = executionRequestPopulator.populateDefaults( request );
|
||||
|
||||
|
|
Loading…
Reference in New Issue