[MNG-6150] Javadoc improvements for 3.5.0

* Remove duplicate plugin configuration
* Add workaround for Javadoc locale
* Clean up errors reported by Javadoc 7

Note: Javadoc 8 fails immediately because Modello generates invalid
Javadoc
This commit is contained in:
Michael Osipov 2017-02-12 01:10:50 +01:00
parent f8ab2a650f
commit b66bdb9cbc
82 changed files with 189 additions and 210 deletions

View File

@ -48,7 +48,7 @@ public interface Artifact
Pattern VERSION_FILE_PATTERN = Pattern.compile( "^(.*)-([0-9]{8}.[0-9]{6})-([0-9]+)$" );
// TODO: into artifactScope handler
// TODO into artifactScope handler
String SCOPE_COMPILE = "compile";

View File

@ -79,7 +79,6 @@ public interface ArtifactRepository
/**
*
* @param artifact
* @return
* @since 3.0-alpha-3
*/
Artifact find( Artifact artifact );

View File

@ -295,7 +295,7 @@ public class VersionRange
// original recommended version
version = restriction.recommendedVersion;
}
/* TODO: should throw this immediately, but need artifact
/* TODO should throw this immediately, but need artifact
else
{
throw new OverConstrainedVersionException( "Restricting incompatible version ranges" );
@ -518,7 +518,7 @@ public class VersionRange
public ArtifactVersion matchVersion( List<ArtifactVersion> versions )
{
// TODO: could be more efficient by sorting the list and then moving along the restrictions in order?
// TODO could be more efficient by sorting the list and then moving along the restrictions in order?
ArtifactVersion matched = null;
for ( ArtifactVersion version : versions )

View File

@ -148,9 +148,9 @@ public class Proxy
}
/**
* Get the type of the proxy server.
* Get the protocol of the proxy server.
*
* @return the type of the proxy server
* @return the protocol of the proxy server
*/
public String getProtocol()
{
@ -158,7 +158,7 @@ public class Proxy
}
/**
* @param type the type of the proxy server like <i>SOCKSv4</i>
* @param protocol the protocol of the proxy server like <i>SOCKSv4</i>
*/
public void setProtocol( String protocol )
{

View File

@ -26,8 +26,8 @@ import org.apache.maven.artifact.repository.metadata.RepositoryMetadataStoreExce
* Contains metadata about an artifact, and methods to retrieve/store it from an artifact repository.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo merge with artifactmetadatasource
* @todo retrieval exception not appropriate for store
* TODO merge with artifactmetadatasource
* TODO retrieval exception not appropriate for store
*/
public interface ArtifactMetadata
{
@ -64,7 +64,7 @@ public interface ArtifactMetadata
* Merge a new metadata set into this piece of metadata.
*
* @param metadata the new metadata
* @todo this should only be needed on the repository metadata
* TODO this should only be needed on the repository metadata
*/
void merge( ArtifactMetadata metadata );
@ -73,7 +73,7 @@ public interface ArtifactMetadata
*
* @param localRepository the local repository
* @param remoteRepository the remote repository it came from
* @todo this should only be needed on the repository metadata
* TODO this should only be needed on the repository metadata
*/
void storeInLocalRepository( ArtifactRepository localRepository,
ArtifactRepository remoteRepository )

View File

@ -178,7 +178,7 @@ public class VersionRangeTest
VersionRange range1 = VersionRange.createFromVersionSpec( "1.0" );
VersionRange range2 = VersionRange.createFromVersionSpec( "1.1" );
VersionRange mergedRange = range1.restrict( range2 );
// TODO: current policy is to retain the original version - is this correct, do we need strategies or is that handled elsewhere?
// TODO current policy is to retain the original version - is this correct, do we need strategies or is that handled elsewhere?
// assertEquals( CHECK_VERSION_RECOMMENDATION, "1.1", mergedRange.getRecommendedVersion().toString() );
assertEquals( CHECK_VERSION_RECOMMENDATION, "1.0", mergedRange.getRecommendedVersion().toString() );
List<Restriction> restrictions = mergedRange.getRestrictions();
@ -199,7 +199,7 @@ public class VersionRangeTest
assertNull( CHECK_UPPER_BOUND, restriction.getUpperBound() );
assertFalse( CHECK_UPPER_BOUND_INCLUSIVE, restriction.isUpperBoundInclusive() );
// TODO: test reversed restrictions on all below
// TODO test reversed restrictions on all below
range1 = VersionRange.createFromVersionSpec( "[1.0,)" );
range2 = VersionRange.createFromVersionSpec( "1.1" );
mergedRange = range1.restrict( range2 );

View File

@ -49,8 +49,6 @@ public enum ArtifactScopeEnum
/**
* Helper method to simplify null processing
*
* @return
*/
public static final ArtifactScopeEnum checkScope( ArtifactScopeEnum scope )
{

View File

@ -166,7 +166,7 @@ public class DefaultWagonManager
String id = mirror.getId();
if ( id == null )
{
// TODO: this should be illegal in settings.xml
// TODO this should be illegal in settings.xml
id = repository.getId();
}

View File

@ -165,7 +165,7 @@ public class DefaultRepositoryMetadataManager
}
}
// TODO: should this be inside the above check?
// TODO should this be inside the above check?
// touch file so that this is not checked again until interval has passed
if ( file.exists() )
{
@ -196,9 +196,9 @@ public class DefaultRepositoryMetadataManager
ArtifactRepository localRepository )
throws RepositoryMetadataStoreException
{
// TODO: currently this is first wins, but really we should take the latest by comparing either the
// TODO currently this is first wins, but really we should take the latest by comparing either the
// snapshot timestamp, or some other timestamp later encoded into the metadata.
// TODO: this needs to be repeated here so the merging doesn't interfere with the written metadata
// TODO this needs to be repeated here so the merging doesn't interfere with the written metadata
// - we'd be much better having a pristine input, and an ongoing metadata for merging instead
Map<ArtifactRepository, Metadata> previousMetadata = new HashMap<>();
@ -227,7 +227,7 @@ public class DefaultRepositoryMetadataManager
ArtifactRepository selected, ArtifactRepository localRepository )
throws RepositoryMetadataStoreException
{
// TODO: this could be a lot nicer... should really be in the snapshot transformation?
// TODO this could be a lot nicer... should really be in the snapshot transformation?
if ( metadata.isSnapshot() )
{
Metadata prevMetadata = metadata.getMetadata();
@ -312,7 +312,7 @@ public class DefaultRepositoryMetadataManager
}
/**
* @todo share with DefaultPluginMappingManager.
* TODO share with DefaultPluginMappingManager.
*/
protected Metadata readMetadata( File mappingFile )
throws RepositoryMetadataReadException

View File

@ -26,7 +26,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
* Metadata for the artifact version directory of the repository.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo split instantiation (versioning, plugin mappings) from definition
* TODO split instantiation (versioning, plugin mappings) from definition
*/
public class SnapshotArtifactRepositoryMetadata
extends AbstractRepositoryMetadata

View File

@ -85,7 +85,7 @@ public class DebugResolutionListener
logger.debug( indent + artifact + " (not setting artifactScope to: " + ignoredScope + "; local artifactScope "
+ artifact.getScope() + " wins)" );
// TODO: better way than static? this might hide messages in a reactor
// TODO better way than static? this might hide messages in a reactor
if ( !ignoredArtifacts.contains( artifact ) )
{
logger.warn( "\n\tArtifact " + artifact + " retains local artifactScope '" + artifact.getScope()

View File

@ -376,7 +376,7 @@ public class DefaultArtifactResolver
ArtifactFilter resolutionFilter = request.getResolutionFilter();
RepositorySystemSession session = getSession( request.getLocalRepository() );
// TODO: hack because metadata isn't generated in m2e correctly and i want to run the maven i have in the
// TODO hack because metadata isn't generated in m2e correctly and i want to run the maven i have in the
// workspace
if ( source == null )
{

View File

@ -54,7 +54,7 @@ public interface MavenProjectBuilder
ArtifactRepository localRepository, boolean allowStubModel )
throws ProjectBuildingException;
// TODO: this is only to provide a project for plugins that don't need a project to execute but need some
// TODO this is only to provide a project for plugins that don't need a project to execute but need some
// of the values from a MavenProject. Ideally this should be something internal and nothing outside Maven
// would ever need this so it should not be exposed in a public API
MavenProject buildStandaloneSuperProject( ProjectBuilderConfiguration configuration )

View File

@ -51,7 +51,7 @@ import org.codehaus.plexus.util.xml.Xpp3Dom;
public class DefaultModelInheritanceAssembler
implements ModelInheritanceAssembler
{
// TODO: Remove this!
// TODO Remove this!
@SuppressWarnings( "unchecked" )
public void assembleBuildInheritance( Build childBuild, Build parentBuild, boolean handleAsInheritance )
{
@ -303,7 +303,7 @@ public class DefaultModelInheritanceAssembler
child.setProperties( props );
}
// TODO: Remove this!
// TODO Remove this!
@SuppressWarnings( "unchecked" )
private void assembleDependencyManagementInheritance( Model child, Model parent )
{
@ -523,7 +523,7 @@ public class DefaultModelInheritanceAssembler
}
// TODO: Remove this!
// TODO Remove this!
@SuppressWarnings( "unchecked" )
private void assembleDependencyInheritance( Model child, Model parent )
{
@ -653,7 +653,7 @@ public class DefaultModelInheritanceAssembler
return repository;
}
// TODO: This should eventually be migrated to DefaultPathTranslator.
// TODO This should eventually be migrated to DefaultPathTranslator.
protected String appendPath( String parentPath, String childPath, String pathAdjustment, boolean appendPaths )
{
String uncleanPath = parentPath;
@ -689,7 +689,7 @@ public class DefaultModelInheritanceAssembler
return cleanedPath + resolvePath( uncleanPath );
}
// TODO: Move this to plexus-utils' PathTool.
// TODO Move this to plexus-utils' PathTool.
private static String resolvePath( String uncleanPath )
{
LinkedList<String> pathElements = new LinkedList<>();

View File

@ -58,7 +58,7 @@ import java.util.Properties;
* Use a regular expression search to find and resolve expressions within the POM.
*
* @author jdcasey Created on Feb 3, 2005
* @todo Consolidate this logic with the PluginParameterExpressionEvaluator, minus deprecations/bans.
* TODO Consolidate this logic with the PluginParameterExpressionEvaluator, minus deprecations/bans.
*/
@Deprecated
public abstract class AbstractStringBasedModelInterpolator
@ -104,7 +104,7 @@ public abstract class AbstractStringBasedModelInterpolator
}
/**
* @todo: Remove the throws clause.
* TODO Remove the throws clause.
* @throws IOException This exception is not thrown any more, and needs to be removed.
*/
protected AbstractStringBasedModelInterpolator()
@ -190,8 +190,6 @@ public abstract class AbstractStringBasedModelInterpolator
* with the value, and continue to find other expressions.</li>
* <li>If the value is null, get it from the model properties.</li>
* <li>
* @param overrideContext
* @param outputDebugMessages
*/
public String interpolate( String src,
Model model,

View File

@ -30,7 +30,7 @@ import org.codehaus.plexus.interpolation.RegexBasedInterpolator;
* Use a regular expression search to find and resolve expressions within the POM.
*
* @author jdcasey Created on Feb 3, 2005
* @todo Consolidate this logic with the PluginParameterExpressionEvaluator, minus deprecations/bans.
* TODO Consolidate this logic with the PluginParameterExpressionEvaluator, minus deprecations/bans.
*/
@Deprecated
public class RegexBasedModelInterpolator

View File

@ -57,7 +57,6 @@ public class MetadataGraph
* find a node by the GAV (metadata)
*
* @param md
* @return
*/
public MetadataGraphNode findNode( MavenArtifactMetadata md )
{
@ -76,8 +75,6 @@ public class MetadataGraph
/**
* getter
*
* @return
*/
public MetadataGraphNode getEntry()
{
@ -86,8 +83,6 @@ public class MetadataGraph
/**
* getter
*
* @return
*/
public Collection<MetadataGraphNode> getNodes()
{

View File

@ -123,7 +123,7 @@ public class MetadataResolutionRequest
}
/**
* @deprecated instead use {@link #setRemoteRepositories()}
* @deprecated instead use {@link #setRemoteRepositories(List)}
*/
@Deprecated
public MetadataResolutionRequest setRemoteRepostories( List<ArtifactRepository> remoteRepostories )

View File

@ -161,7 +161,7 @@ public class MetadataResolutionResult
}
/**
* @TODO this needs to accept a {@link OverConstrainedVersionException} as returned by
* TODO this needs to accept a {@link OverConstrainedVersionException} as returned by
* {@link #getVersionRangeViolation(int)} but it's not used like that in
* {@link DefaultLegacyArtifactCollector}
*/

View File

@ -56,9 +56,9 @@ import org.codehaus.plexus.util.FileUtils;
import org.eclipse.aether.ConfigurationProperties;
import org.eclipse.aether.util.ConfigUtils;
//TODO: remove the update check manager
//TODO: separate into retriever and publisher
//TODO: remove hardcoding of checksum logic
//TODO remove the update check manager
//TODO separate into retriever and publisher
//TODO remove hardcoding of checksum logic
@Component( role = WagonManager.class )
public class DefaultWagonManager
implements WagonManager
@ -378,7 +378,7 @@ public class DefaultWagonManager
ChecksumObserver sha1ChecksumObserver = null;
try
{
// TODO: configure on repository
// TODO configure on repository
int i = 0;
md5ChecksumObserver = addChecksumObserver( wagon, CHECKSUM_ALGORITHMS[i++] );
@ -594,7 +594,7 @@ public class DefaultWagonManager
Map<String, String> sums = new HashMap<>( 2 );
// TODO: configure these on the repository
// TODO configure these on the repository
for ( int i = 0; i < CHECKSUM_IDS.length; i++ )
{
checksums.put( CHECKSUM_IDS[i], addChecksumObserver( wagon, CHECKSUM_ALGORITHMS[i] ) );
@ -628,7 +628,7 @@ public class DefaultWagonManager
// We do this in here so we can checksum the artifact metadata too, otherwise it could be metadata itself
for ( String extension : checksums.keySet() )
{
// TODO: shouldn't need a file intermediatary - improve wagon to take a stream
// TODO shouldn't need a file intermediatary - improve wagon to take a stream
File temp = File.createTempFile( "maven-artifact", null );
temp.deleteOnExit();
FileUtils.fileWrite( temp.getAbsolutePath(), "UTF-8", sums.get( extension ) );

View File

@ -37,7 +37,7 @@ import org.codehaus.plexus.component.annotations.Requirement;
public class DefaultArtifactRepositoryFactory
implements ArtifactRepositoryFactory
{
// TODO: use settings?
// TODO use settings?
private String globalUpdatePolicy;
private String globalChecksumPolicy;

View File

@ -249,7 +249,7 @@ public class DefaultLegacyArtifactCollector
Object key = node.getKey();
// TODO: Does this check need to happen here? Had to add the same call
// TODO Does this check need to happen here? Had to add the same call
// below when we iterate on child nodes -- will that suffice?
if ( managedVersions.containsKey( key ) )
{
@ -272,11 +272,11 @@ public class DefaultLegacyArtifactCollector
if ( ( previousRange != null ) && ( currentRange != null ) )
{
// TODO: shouldn't need to double up on this work, only done for simplicity of handling
// TODO shouldn't need to double up on this work, only done for simplicity of handling
// recommended
// version but the restriction is identical
VersionRange newRange = previousRange.restrict( currentRange );
// TODO: ick. this forces the OCE that should have come from the previous call. It is still
// TODO ick. this forces the OCE that should have come from the previous call. It is still
// correct
if ( newRange.isSelectedVersionKnown( previous.getArtifact() ) )
{
@ -363,7 +363,7 @@ public class DefaultLegacyArtifactCollector
if ( resolved == null )
{
// TODO: add better exception that can detail the two conflicting artifacts
// TODO add better exception that can detail the two conflicting artifacts
ArtifactResolutionException are =
new ArtifactResolutionException( "Cannot resolve artifact version conflict between "
+ previous.getArtifact().getVersion() + " and "
@ -375,14 +375,14 @@ public class DefaultLegacyArtifactCollector
if ( ( resolved != previous ) && ( resolved != node ) )
{
// TODO: add better exception
// TODO add better exception
result.addVersionRangeViolation( new ArtifactResolutionException(
"Conflict resolver returned unknown resolution node: ",
resolved.getArtifact() ) );
}
// TODO: should this be part of mediation?
// TODO should this be part of mediation?
// previous one is more dominant
ResolutionNode nearest;
ResolutionNode farthest;
@ -501,7 +501,7 @@ public class DefaultLegacyArtifactCollector
if ( artifact.getVersion() == null )
{
// set the recommended version
// TODO: maybe its better to just pass the range through to retrieval and use a
// TODO maybe its better to just pass the range through to retrieval and use a
// transformation?
ArtifactVersion version;
if ( !artifact.isSelectedVersionKnown() )

View File

@ -32,7 +32,7 @@ import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable;
* A conflict resolver factory that obtains instances from a plexus container.
*
* @author <a href="mailto:markhobson@gmail.com">Mark Hobson</a>
* @todo you don't need the container in here with the active maps (jvz).
* TODO you don't need the container in here with the active maps (jvz).
* @since 3.0
*/
@Component( role = ConflictResolverFactory.class )

View File

@ -54,7 +54,7 @@ public class NewestConflictResolver
}
catch ( OverConstrainedVersionException exception )
{
// TODO: log message or throw exception?
// TODO log message or throw exception?
return null;
}

View File

@ -54,7 +54,7 @@ public class OldestConflictResolver
}
catch ( OverConstrainedVersionException exception )
{
// TODO: log message or throw exception?
// TODO log message or throw exception?
return null;
}

View File

@ -42,7 +42,7 @@ import org.codehaus.plexus.logging.AbstractLogEnabled;
* Describes a version transformation during artifact resolution.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo try and refactor to remove abstract methods - not particular happy about current design
* TODO try and refactor to remove abstract methods - not particular happy about current design
*/
public abstract class AbstractVersionTransformation
extends AbstractLogEnabled
@ -105,8 +105,8 @@ public abstract class AbstractVersionTransformation
version = artifact.getBaseVersion();
}
// TODO: also do this logging for other metadata?
// TODO: figure out way to avoid duplicated message
// TODO also do this logging for other metadata?
// TODO figure out way to avoid duplicated message
if ( getLogger().isDebugEnabled() )
{
if ( !version.equals( artifact.getBaseVersion() ) )

View File

@ -166,7 +166,7 @@ public class DefaultArtifactCollectorTest
public void disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewest()
throws ArtifactResolutionException, InvalidVersionSpecificationException
{
// TODO: use newest conflict resolver
// TODO use newest conflict resolver
ArtifactSpec a = createArtifactSpec( "a", "1.0" );
ArtifactSpec b = a.addDependency( "b", "1.0" );
ArtifactSpec c2 = b.addDependency( "c", "2.0" );
@ -185,7 +185,7 @@ public class DefaultArtifactCollectorTest
public void disabledtestResolveCorrectDependenciesWhenDifferentDependenciesOnNewestVersionReplaced()
throws ArtifactResolutionException, InvalidVersionSpecificationException
{
// TODO: use newest conflict resolver
// TODO use newest conflict resolver
ArtifactSpec a = createArtifactSpec( "a", "1.0" );
ArtifactSpec b1 = a.addDependency( "b", "1.0" );
ArtifactSpec c = a.addDependency( "c", "1.0" );

View File

@ -53,7 +53,7 @@ public abstract class AbstractMavenLifecycleParticipant
* activate profiles and perform similar tasks that affect MavenProject
* instance construction.
*/
// TODO: This is too early for build extensions, so maybe just remove it?
// TODO This is too early for build extensions, so maybe just remove it?
public void afterSessionStart( MavenSession session )
throws MavenExecutionException
{

View File

@ -85,7 +85,7 @@ public class DefaultArtifactFilterManager
/**
* Returns the artifact filter for the standard core artifacts.
*
* @see org.apache.maven.ArtifactFilterManager#getExtensionDependencyFilter()
* @see org.apache.maven.ArtifactFilterManager#getCoreArtifactFilter()
*/
public ArtifactFilter getCoreArtifactFilter()
{

View File

@ -23,7 +23,7 @@ package org.apache.maven.artifact;
* Exception that occurs when an artifact file is used, but has not been resolved.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo it may be better for artifact.getFile() to throw it - perhaps it is a runtime exception?
* TODO it may be better for artifact.getFile() to throw it - perhaps it is a runtime exception?
*/
public class DependencyResolutionRequiredException
extends Exception

View File

@ -28,7 +28,7 @@ import org.apache.maven.artifact.metadata.ArtifactMetadata;
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
import org.apache.maven.repository.Proxy;
//TODO: completely separate local and remote artifact repositories
//TODO completely separate local and remote artifact repositories
public class MavenArtifactRepository
implements ArtifactRepository
{
@ -234,7 +234,7 @@ public class MavenArtifactRepository
*
* @param url the repository URL
* @return the basedir of the repository
* @todo need to URL decode for spaces?
* TODO need to URL decode for spaces?
*/
private String basedir( String url )
{

View File

@ -181,7 +181,7 @@ public abstract class AbstractRepositoryMetadata
public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata )
{
// TODO: not sure that it should assume this, maybe the calls to addMetadata should pre-merge, then artifact
// TODO not sure that it should assume this, maybe the calls to addMetadata should pre-merge, then artifact
// replaces?
AbstractRepositoryMetadata repoMetadata = (AbstractRepositoryMetadata) metadata;
this.metadata.merge( repoMetadata.getMetadata() );
@ -189,7 +189,7 @@ public abstract class AbstractRepositoryMetadata
public void merge( ArtifactMetadata metadata )
{
// TODO: not sure that it should assume this, maybe the calls to addMetadata should pre-merge, then artifact
// TODO not sure that it should assume this, maybe the calls to addMetadata should pre-merge, then artifact
// replaces?
AbstractRepositoryMetadata repoMetadata = (AbstractRepositoryMetadata) metadata;
this.metadata.merge( repoMetadata.getMetadata() );

View File

@ -26,7 +26,7 @@ import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
* Describes repository directory metadata.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo not happy about the store method - they use "this"
* TODO not happy about the store method - they use "this"
*/
public interface RepositoryMetadata
extends org.apache.maven.artifact.metadata.ArtifactMetadata

View File

@ -36,7 +36,7 @@ import org.apache.maven.artifact.versioning.OverConstrainedVersionException;
* - network/transfer errors - file system errors: permissions
*
* @author Jason van Zyl
* @TODO carlos: all these possible has*Exceptions and get*Exceptions methods make the clients too
* TODO carlos: all these possible has*Exceptions and get*Exceptions methods make the clients too
* complex requiring a long list of checks, need to create a parent/interface/encapsulation
* for the types of exceptions
*/
@ -173,7 +173,7 @@ public class ArtifactResolutionResult
}
/**
* @TODO this needs to accept a {@link OverConstrainedVersionException} as returned by
* TODO this needs to accept a {@link OverConstrainedVersionException} as returned by
* {@link #getVersionRangeViolation(int)} but it's not used like that in
* {@link DefaultLegacyArtifactCollector}
*/

View File

@ -198,7 +198,7 @@ public class ResolutionNode
{
active = true;
// TODO: if it was null, we really need to go find them now... or is this taken care of by the ordering?
// TODO if it was null, we really need to go find them now... or is this taken care of by the ordering?
if ( children != null )
{
for ( ResolutionNode node : children )

View File

@ -27,7 +27,7 @@ import org.apache.maven.artifact.Artifact;
* Filter to exclude from a list of artifact patterns.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo I think this is equiv. to exclusion set filter in maven-core
* TODO I think this is equiv. to exclusion set filter in maven-core
*/
public class ExcludesArtifactFilter
extends IncludesArtifactFilter

View File

@ -49,7 +49,7 @@ public class IncludesArtifactFilter
boolean matched = false;
for ( Iterator<String> i = patterns.iterator(); i.hasNext() & !matched; )
{
// TODO: what about wildcards? Just specifying groups? versions?
// TODO what about wildcards? Just specifying groups? versions?
if ( id.equals( i.next() ) )
{
matched = true;

View File

@ -1088,7 +1088,7 @@ public class DefaultMavenExecutionRequest
return pluginArtifactRepositories;
}
// TODO: this does not belong here.
// TODO this does not belong here.
@Override
public ProjectBuildingRequest getProjectBuildingRequest()
{

View File

@ -356,15 +356,15 @@ public interface MavenExecutionRequest
MavenExecutionRequest setUserToolchainsFile( File userToolchainsFile );
/**
*
*
*
*
* @return the global toolchains file
* @since 3.3.0
*/
File getGlobalToolchainsFile();
/**
*
*
* @param globalToolchainsFile the global toolchains file
* @return this request
* @since 3.3.0
@ -388,29 +388,31 @@ public interface MavenExecutionRequest
MavenExecutionRequest setUseLegacyLocalRepository( boolean useLegacyLocalRepository );
/**
* Controls the {@link Builder} used by Maven by specification of the builder's id.
* Controls the {@link org.apache.maven.lifecycle.internal.builder.Builder} used by Maven by specification
* of the builder's id.
*
* @since 3.2.0
*/
MavenExecutionRequest setBuilderId( String builderId );
/**
* Controls the {@link Builder} used by Maven by specification of the builders id.
* Controls the {@link org.apache.maven.lifecycle.internal.builder.Builder} used by Maven by specification
* of the builders id.
*
* @since 3.2.0
*/
String getBuilderId();
/**
*
* @param toolchains all toolchains grouped by type
* @return this request
*
* @param toolchains all toolchains grouped by type
* @return this request
* @since 3.3.0
*/
MavenExecutionRequest setToolchains( Map<String, List<ToolchainModel>> toolchains );
/**
*
*
* @return all toolchains grouped by type, never {@code null}
* @since 3.3.0
*/
@ -428,9 +430,9 @@ public interface MavenExecutionRequest
/**
* @since 3.3.0
*/
*/
MavenExecutionRequest setEventSpyDispatcher( EventSpyDispatcher eventSpyDispatcher );
/**
* @since 3.3.0
*/

View File

@ -25,8 +25,9 @@ import org.apache.maven.plugin.MojoExecutionException;
/**
* Extension point that allows build extensions observe and possibly veto mojo executions.
* <p>
* Unlike {@link MojoExecutionListener}, this extension point does not trigger instantiation of the component, hence
* "weak" class name prefix. Only applies to mojo execution scoped components.
* Unlike {@link org.apache.maven.execution.MojoExecutionListener}, this extension point does not
* trigger instantiation of the component, hence "weak" class name prefix. Only applies to mojo execution
* scoped components.
*
* @see org.apache.maven.execution.MojoExecutionListener
* @since 3.1.2

View File

@ -97,8 +97,8 @@ public class DefaultLifecycleExecutor
// fully populated Plugin objects, including executions with goals and default configuration taken
// from the plugin.xml inside a plugin.
//
// TODO: This whole method could probably removed by injecting lifeCyclePluginAnalyzer straight into client site.
// TODO: But for some reason the whole plexus appcontext refuses to start when I try this.
// TODO This whole method could probably removed by injecting lifeCyclePluginAnalyzer straight into client site.
// TODO But for some reason the whole plexus appcontext refuses to start when I try this.
public Set<Plugin> getPluginsBoundByDefaultToAllLifecycles( String packaging )
{

View File

@ -40,7 +40,7 @@ import java.util.Set;
* @author Jason van Zyl
* @author Kristian Rosenvold
*/
// TODO: The configuration for the lifecycle needs to be externalized so that I can use the annotations properly for the
// TODO The configuration for the lifecycle needs to be externalized so that I can use the annotations properly for the
// wiring and reference and external source for the lifecycle configuration.
@Component( role = DefaultLifecycles.class )
public class DefaultLifecycles

View File

@ -34,13 +34,13 @@ import org.apache.maven.model.Plugin;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.plugin.descriptor.MojoDescriptor;
//TODO: lifecycles being executed
//TODO: what runs in each phase
//TODO: plugins that need downloading
//TODO: project dependencies that need downloading
//TODO: unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this
//TODO lifecycles being executed
//TODO what runs in each phase
//TODO plugins that need downloading
//TODO project dependencies that need downloading
//TODO unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this
// from the plugin archive.
//TODO: this will be the class that people get in IDEs to modify
//TODO this will be the class that people get in IDEs to modify
public class MavenExecutionPlan
implements Iterable<ExecutionPlanItem>

View File

@ -525,8 +525,8 @@ public class DefaultLifecycleExecutionPlanCalculator
}
// org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process
// TODO: take repo mans into account as one may be aggregating prefixes of many
// TODO: collect at the root of the repository, read the one at the root, and fetch remote if something is missing
// TODO take repo mans into account as one may be aggregating prefixes of many
// TODO collect at the root of the repository, read the one at the root, and fetch remote if something is missing
// or the user forces the issue
private List<MojoExecution> calculateForkedGoal( MojoExecution mojoExecution, MavenSession session,

View File

@ -35,7 +35,7 @@ import java.util.TreeSet;
* <p/>
* NOTE: This class is not part of any public api and can be changed or deleted without prior notice.
*/
// TODO: From a concurrency perspective, this class is not good. The combination of mutable/immutable state is not nice
// TODO From a concurrency perspective, this class is not good. The combination of mutable/immutable state is not nice
public class DependencyContext
{

View File

@ -22,7 +22,7 @@ package org.apache.maven.lifecycle.internal;
/**
* A task that is a goal
* <p/>
* TODO: From a concurrency perspective, this class is not good. The combination of mutable/immutable state is not nice
* TODO From a concurrency perspective, this class is not good. The combination of mutable/immutable state is not nice
*
* @since 3.0
* @author Benjamin Bentmann

View File

@ -239,8 +239,8 @@ public class MojoDescriptorCreator
session.getRepositorySession() );
}
// TODO: take repo mans into account as one may be aggregating prefixes of many
// TODO: collect at the root of the repository, read the one at the root, and fetch remote if something is missing
// TODO take repo mans into account as one may be aggregating prefixes of many
// TODO collect at the root of the repository, read the one at the root, and fetch remote if something is missing
// or the user forces the issue
public Plugin findPluginForPrefix( String prefix, MavenSession session )

View File

@ -51,7 +51,7 @@ public class ProjectBuildList
this.items = Collections.unmodifiableList( items );
}
// TODO: Optimize; or maybe just rewrite the whole way aggregating mojos are being run.
// TODO Optimize; or maybe just rewrite the whole way aggregating mojos are being run.
/**
* Returns aProjectBuildList that contains only items for the specified taskSegment
* @param taskSegment the requested tasksegment

View File

@ -35,7 +35,7 @@ import java.util.Map;
* <p/>
* NOTE: This class is not part of any public api and can be changed or deleted without prior notice.
*/
// Todo: Kristian wonders if this class really is necessary and if it overlaps other concepts.
// TODO Kristian wonders if this class really is necessary and if it overlaps other concepts.
public final class ProjectIndex
{

View File

@ -69,5 +69,5 @@ public final class TaskSegment
return aggregating;
}
// TODO: Consider throwing UnsupportedSomething on hashCode/equals
// TODO Consider throwing UnsupportedSomething on hashCode/equals
}

View File

@ -188,7 +188,7 @@ public class BuilderCommon
}
}
// Todo: I'm really wondering where this method belongs; smells like it should be on MavenProject, but for some
// TODO I'm really wondering where this method belongs; smells like it should be on MavenProject, but for some
// reason it isn't ? This localization is kind-of a code smell.
public static String getKey( MavenProject project )

View File

@ -62,7 +62,7 @@ public class Lifecycle
{
return this.lifecyclePhases;
}
/**
* Method setId
*
@ -76,7 +76,7 @@ public class Lifecycle
/**
* Method setLifecyclePhases
*
* @param phases
* @param lifecyclePhases
*/
public void setLifecyclePhases( Map<String, LifecyclePhase> lifecyclePhases )
{
@ -91,12 +91,12 @@ public class Lifecycle
{
return null;
}
if ( lphases.isEmpty() )
{
return Collections.emptyMap();
}
Map<String, String> phases = new LinkedHashMap<>();
for ( Map.Entry<String, LifecyclePhase> e: lphases.entrySet() )
{

View File

@ -37,8 +37,8 @@ import org.codehaus.plexus.component.annotations.Requirement;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.repository.RemoteRepository;
// TODO: the antrun plugin has its own configurator, the only plugin that does. might need to think about how that works
// TODO: remove the coreArtifactFilterManager
// TODO the antrun plugin has its own configurator, the only plugin that does. might need to think about how that works
// TODO remove the coreArtifactFilterManager
@Component( role = BuildPluginManager.class )
public class DefaultBuildPluginManager

View File

@ -83,7 +83,7 @@ public class PluginParameterExpressionEvaluator
private Properties properties;
@Deprecated //TODO: used by the Enforcer plugin
@Deprecated //TODO used by the Enforcer plugin
public PluginParameterExpressionEvaluator( MavenSession session, MojoExecution mojoExecution,
PathTranslator pathTranslator, Logger logger, MavenProject project,
Properties properties )
@ -228,7 +228,7 @@ public class PluginParameterExpressionEvaluator
}
catch ( Exception e )
{
// TODO: don't catch exception
// TODO don't catch exception
throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression,
e );
}
@ -268,7 +268,7 @@ public class PluginParameterExpressionEvaluator
}
catch ( Exception e )
{
// TODO: don't catch exception
// TODO don't catch exception
throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression,
e );
}
@ -300,7 +300,7 @@ public class PluginParameterExpressionEvaluator
}
catch ( Exception e )
{
// TODO: don't catch exception
// TODO don't catch exception
throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression,
e );
}
@ -357,7 +357,7 @@ public class PluginParameterExpressionEvaluator
}
catch ( Exception e )
{
// TODO: don't catch exception
// TODO don't catch exception
throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression,
e );
}
@ -412,7 +412,7 @@ public class PluginParameterExpressionEvaluator
if ( value instanceof String )
{
// TODO: without #, this could just be an evaluate call...
// TODO without #, this could just be an evaluate call...
String val = (String) value;
@ -457,7 +457,7 @@ public class PluginParameterExpressionEvaluator
@Override
public File alignToBaseDirectory( File file )
{
// TODO: Copied from the DefaultInterpolator. We likely want to resurrect the PathTranslator or at least a
// TODO Copied from the DefaultInterpolator. We likely want to resurrect the PathTranslator or at least a
// similar component for re-usage
if ( file != null )
{

View File

@ -124,7 +124,7 @@ public class DefaultMavenPluginManager
* PluginId=>ExtensionRealmCache.CacheRecord map MavenProject context value key. The map is used to ensure the same
* class realm is used to load build extensions and load mojos for extensions=true plugins.
*
* @noreference this is part of internal implementation and may be changed or removed without notice
* @provisional This is part of internal implementation and may be changed or removed without notice
* @since 3.3.0
*/
public static final String KEY_EXTENSIONS_REALMS = DefaultMavenPluginManager.class.getName() + "/extensionsRealms";
@ -617,7 +617,7 @@ public class DefaultMavenPluginManager
try
{
// TODO: could the configuration be passed to lookup and the configurator known to plexus via the descriptor
// TODO could the configuration be passed to lookup and the configurator known to plexus via the descriptor
// so that this method could entirely be handled by a plexus lookup?
configurator = container.lookup( ComponentConfigurator.class, configuratorId );

View File

@ -27,7 +27,7 @@ import org.apache.maven.artifact.Artifact;
*
* @author pgier
* @author jdcasey
* @todo Make this a checked exception, and modify the API of MavenProjectHelper.
* TODO Make this a checked exception, and modify the API of MavenProjectHelper.
* Currently, this modification would create compatibility problems for existing plugins.
*/
public class DuplicateArtifactAttachmentException

View File

@ -221,7 +221,7 @@ public class MavenProject
this.artifact = artifact;
}
// @todo I would like to get rid of this. jvz.
// TODO I would like to get rid of this. jvz.
public Model getModel()
{
return model;
@ -352,7 +352,7 @@ public class MavenProject
{
if ( a.getArtifactHandler().isAddedToClasspath() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_PROVIDED.equals( a.getScope() )
|| Artifact.SCOPE_SYSTEM.equals( a.getScope() ) )
{
@ -364,7 +364,7 @@ public class MavenProject
return list;
}
// TODO: this checking for file == null happens because the resolver has been confused about the root
// TODO this checking for file == null happens because the resolver has been confused about the root
// artifact or not. things like the stupid dummy artifact coming from surefire.
public List<String> getTestClasspathElements()
throws DependencyResolutionRequiredException
@ -408,7 +408,7 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
if ( a.getArtifactHandler().isAddedToClasspath()
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
&& ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) ) )
{
addArtifactPath( a, list );
@ -470,7 +470,7 @@ public class MavenProject
public String getName()
{
// TODO: this should not be allowed to be null.
// TODO this should not be allowed to be null.
if ( getModel().getName() != null )
{
return getModel().getName();
@ -1575,10 +1575,10 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: classpath check doesn't belong here - that's the other method
// TODO classpath check doesn't belong here - that's the other method
if ( a.getArtifactHandler().isAddedToClasspath() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_PROVIDED.equals( a.getScope() )
|| Artifact.SCOPE_SYSTEM.equals( a.getScope() ) )
{
@ -1603,7 +1603,7 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_PROVIDED.equals( a.getScope() )
|| Artifact.SCOPE_SYSTEM.equals( a.getScope() ) )
{
@ -1629,7 +1629,7 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: classpath check doesn't belong here - that's the other method
// TODO classpath check doesn't belong here - that's the other method
if ( a.getArtifactHandler().isAddedToClasspath() )
{
list.add( a );
@ -1680,7 +1680,7 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) )
{
Dependency dependency = new Dependency();
@ -1705,9 +1705,9 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: classpath check doesn't belong here - that's the other method
// TODO classpath check doesn't belong here - that's the other method
if ( a.getArtifactHandler().isAddedToClasspath()
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
&& ( Artifact.SCOPE_COMPILE.equals( a.getScope() ) || Artifact.SCOPE_RUNTIME.equals( a.getScope() ) ) )
{
list.add( a );
@ -1732,7 +1732,7 @@ public class MavenProject
{
if ( a.getArtifactHandler().isAddedToClasspath() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_SYSTEM.equals( a.getScope() ) )
{
addArtifactPath( a, list );
@ -1749,10 +1749,10 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: classpath check doesn't belong here - that's the other method
// TODO classpath check doesn't belong here - that's the other method
if ( a.getArtifactHandler().isAddedToClasspath() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_SYSTEM.equals( a.getScope() ) )
{
list.add( a );
@ -1776,7 +1776,7 @@ public class MavenProject
for ( Artifact a : getArtifacts() )
{
// TODO: let the scope handler deal with this
// TODO let the scope handler deal with this
if ( Artifact.SCOPE_SYSTEM.equals( a.getScope() ) )
{
Dependency dependency = new Dependency();

View File

@ -233,7 +233,7 @@ public class ProjectSorter
return !( StringUtils.isEmpty( version ) || version.startsWith( "[" ) || version.startsWith( "(" ) );
}
// TODO: !![jc; 28-jul-2005] check this; if we're using '-r' and there are aggregator tasks, this will result in weirdness.
// TODO !![jc; 28-jul-2005] check this; if we're using '-r' and there are aggregator tasks, this will result in weirdness.
public MavenProject getTopLevelProject()
{
if ( topLevelProject == null )

View File

@ -38,7 +38,7 @@ import java.util.List;
* attributes of this artifact.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
* @todo I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and
* TODO I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and
* should be split. ie scope, file, etc depend on the context of use, whereas everything else is immutable.
*/
@Deprecated

View File

@ -93,7 +93,7 @@ public class MavenMetadataSource
@Requirement
private ArtifactFactory repositorySystem;
//TODO: This prevents a cycle in the composition which shows us another problem we need to deal with.
//TODO This prevents a cycle in the composition which shows us another problem we need to deal with.
//@Requirement
private ProjectBuilder projectBuilder;
@ -175,7 +175,7 @@ public class MavenMetadataSource
Artifact relocatedArtifact = null;
//TODO: Not even sure this is really required as the project will be cached in the builder, we'll see this
//TODO Not even sure this is really required as the project will be cached in the builder, we'll see this
// is currently the biggest hotspot
if ( artifact instanceof ArtifactWithDependencies )
{
@ -658,7 +658,7 @@ public class MavenMetadataSource
// MNG-2861: the artifact data has changed. If the available versions where previously
// retrieved, we need to update it.
// TODO: shouldn't the versions be merged across relocations?
// TODO shouldn't the versions be merged across relocations?
List<ArtifactVersion> available = artifact.getAvailableVersions();
if ( available != null && !available.isEmpty() )
{

View File

@ -28,8 +28,6 @@ public class SystemProperties
{
/**
* Thread-safe System.properties copy implementation.
*
* @see https://issues.apache.org/jira/browse/MNG-5670
*/
public static void addSystemProperties( Properties props )
{
@ -38,8 +36,8 @@ public class SystemProperties
/**
* Returns a copy of {@link System#getProperties()} in a thread-safe manner.
*
* @return {@link System#getProperties()} obtained in a thread-safe manner.
*
* @return {@link System#getProperties()} obtained in a thread-safe manner.
*/
public static Properties getSystemProperties()
{

View File

@ -127,7 +127,7 @@ public class DefaultMavenSettingsBuilder
if ( StringUtils.isEmpty( path ) )
{
// TODO: This replacing shouldn't be necessary as user.home should be in the
// TODO This replacing shouldn't be necessary as user.home should be in the
// context of the container and thus the value would be interpolated by Plexus
String basedir = System.getProperty( basedirSysProp );
if ( basedir == null )

View File

@ -124,7 +124,7 @@ public class DefaultToolchainManager
if ( current != null )
{
//TODO: why is this using the context
//TODO why is this using the context
context = session.getPluginContext( desc, current );
}
}

View File

@ -44,16 +44,16 @@ public interface ToolchainManager
* <code>maven-toolchains-plugin</code> contains the configuration to select the appropriate
* toolchain and is executed at the beginning of the build.
*
* @param session the Maven session, must not be {@code null}
* @param type the type, must not be {@code null}
* @param context the Maven session, must not be {@code null}
* @return the toolchain selected by <code>maven-toolchains-plugin</code>
*/
Toolchain getToolchainFromBuildContext( String type, MavenSession context );
/**
* Select all toolchains available in user settings matching the type and requirements,
* independently from <code>maven-toolchains-plugin</code>.
*
*
* @param session the Maven session, must not be {@code null}
* @param type the type, must not be {@code null}
* @param requirements the requirements, may be {@code null}

View File

@ -36,7 +36,7 @@ public class ProjectBuildListTest
final ProjectBuildList byTaskSegment = projectBuildList.getByTaskSegment( taskSegment );
assertEquals( projectBuildList.size(),
byTaskSegment.size() ); // Todo: Make multiple segments on projectBuildList
byTaskSegment.size() ); // TODO Make multiple segments on projectBuildList
}
}

View File

@ -103,7 +103,7 @@ public class PluginManagerTest
// Tests which exercise the lifecycle executor when it is dealing with individual goals.
// -----------------------------------------------------------------------------------------------
//TODO: These two tests display a lack of symmetry with respect to the input which is a free form string and the
//TODO These two tests display a lack of symmetry with respect to the input which is a free form string and the
// mojo descriptor which comes back. All the free form parsing needs to be done somewhere else, this is
// really the function of the CLI, and then the pre-processing of that output still needs to be fed into
// a hinting process which helps flesh out the full specification of the plugin. The plugin manager should
@ -113,7 +113,7 @@ public class PluginManagerTest
public void testRemoteResourcesPlugin()
throws Exception
{
//TODO: turn an equivalent back on when the RR plugin is released.
//TODO turn an equivalent back on when the RR plugin is released.
/*
@ -138,7 +138,7 @@ public class PluginManagerTest
*/
}
//TODO: this will be the basis of the customizable lifecycle execution so need to figure this out quickly.
//TODO this will be the basis of the customizable lifecycle execution so need to figure this out quickly.
public void testSurefirePlugin()
throws Exception
{

View File

@ -90,7 +90,7 @@ public class MavenMetadataSourceTest
*/
}
//TODO: restore these if it makes sense
//TODO restore these if it makes sense
/*
public void testShouldUseCompileScopeIfDependencyScopeEmpty()
throws Exception

View File

@ -64,7 +64,7 @@ public class CleanArgument
// otherwise, we trim the trailing " and append to the buffer.
else
{
// TODO: introducing a space here...not sure what else to do but collapse whitespace
// TODO introducing a space here...not sure what else to do but collapse whitespace
currentArg.append( ' ' ).append( cleanArgPart );
}

View File

@ -115,7 +115,7 @@ import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
// TODO: push all common bits back to plexus cli and prepare for transition to Guice. We don't need 50 ways to make CLIs
// TODO push all common bits back to plexus cli and prepare for transition to Guice. We don't need 50 ways to make CLIs
/**
* @author Jason van Zyl
@ -211,7 +211,7 @@ public class MavenCli
return result;
}
// TODO: need to externalize CliRequest
// TODO need to externalize CliRequest
public static int doMain( String[] args, ClassWorld classWorld )
{
MavenCli cli = new MavenCli();
@ -283,7 +283,7 @@ public class MavenCli
}
}
// TODO: need to externalize CliRequest
// TODO need to externalize CliRequest
public int doMain( CliRequest cliRequest )
{
PlexusContainer localContainer = null;
@ -1510,7 +1510,7 @@ public class MavenCli
final String threadConfiguration = commandLine.hasOption( CLIManager.THREADS )
? commandLine.getOptionValue( CLIManager.THREADS )
: request.getSystemProperties().getProperty(
MavenCli.THREADS_DEPRECATED ); // TODO: Remove this setting. Note that the int-tests use it
MavenCli.THREADS_DEPRECATED ); // TODO Remove this setting. Note that the int-tests use it
if ( threadConfiguration != null )
{

View File

@ -888,7 +888,7 @@ public class DefaultModelBuilder
}
//
// TODO:jvz Why isn't all this checking the job of the duty of the workspace resolver, we know that we
// TODO jvz Why isn't all this checking the job of the duty of the workspace resolver, we know that we
// have a model that is suitable, yet more checks are done here and the one for the version is problematic
// before because with parents as ranges it will never work in this scenario.
//

View File

@ -57,10 +57,6 @@ public interface ModelBuilder
/**
* Performs only the part of {@link ModelBuilder#build(ModelBuildingRequest)} that loads the raw model
*
* @param request
* @return
* @throws ModelBuildingException
*/
Result<? extends Model> buildRawModel( File pomFile, int validationLevel, boolean locationTracking );

View File

@ -66,7 +66,7 @@ public interface ModelBuildingRequest
/**
* Gets the raw model to build. If not set, model source will be used to load raw model.
*
*
* @return The raw model to build or {@code null} if not set.
*/
Model getRawModel();
@ -74,7 +74,7 @@ public interface ModelBuildingRequest
/**
* Set raw model.
*
* @param model
* @param rawModel
*/
ModelBuildingRequest setRawModel( Model rawModel );

View File

@ -46,7 +46,7 @@ import com.google.common.collect.Iterables;
* <li>error - (partial) model and diagnostics
* </ol>
* Could encode these variants as subclasses, but kept in one for now
*
*
* @author bbusjaeger
* @param <T>
*/
@ -55,9 +55,8 @@ public class Result<T>
/**
* Success without warnings
*
*
* @param model
* @return
*/
public static <T> Result<T> success( T model )
{
@ -66,10 +65,9 @@ public class Result<T>
/**
* Success with warnings
*
*
* @param model
* @param problems
* @return
*/
public static <T> Result<T> success( T model, Iterable<? extends ModelProblem> problems )
{
@ -79,10 +77,9 @@ public class Result<T>
/**
* Success with warnings
*
*
* @param model
* @param results
* @return
*/
public static <T> Result<T> success( T model, Result<?>... results )
{
@ -93,7 +90,6 @@ public class Result<T>
* Error with problems describing the cause
*
* @param problems
* @return
*/
public static <T> Result<T> error( Iterable<? extends ModelProblem> problems )
{
@ -120,7 +116,6 @@ public class Result<T>
*
* @param model
* @param problems
* @return
*/
public static <T> Result<T> error( T model, Iterable<? extends ModelProblem> problems )
{
@ -129,10 +124,9 @@ public class Result<T>
/**
* New result - determine whether error or success by checking problems for errors
*
*
* @param model
* @param problems
* @return
*/
public static <T> Result<T> newResult( T model, Iterable<? extends ModelProblem> problems )
{
@ -142,10 +136,9 @@ public class Result<T>
/**
* New result consisting of given result and new problem. Convenience for newResult(result.get(),
* concat(result.getProblems(),problems)).
*
*
* @param result
* @param problem
* @return
*/
public static <T> Result<T> addProblem( Result<T> result, ModelProblem problem )
{
@ -157,7 +150,6 @@ public class Result<T>
*
* @param result
* @param problems
* @return
*/
public static <T> Result<T> addProblems( Result<T> result, Iterable<? extends ModelProblem> problems )
{
@ -172,9 +164,8 @@ public class Result<T>
/**
* Turns the given results into a single result by combining problems and models into single collection.
*
*
* @param results
* @return
*/
public static <T> Result<Iterable<T>> newResultSet( Iterable<? extends Result<? extends T>> results )
{

View File

@ -306,7 +306,7 @@ public class StringSearchModelInterpolator
new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE ).setMessage(
"Failed to interpolate field3: " + field + " on class: "
+ field.getType().getName() ).setException(
e ) ); // todo: Not entirely the same message
e ) ); // TODO Not entirely the same message
}
catch ( IllegalAccessException e )
{

View File

@ -109,7 +109,7 @@ public class MavenModelMerger
}
/*
* TODO: Whether the merge continues recursively into an existing node or not could be an option for the generated
* TODO Whether the merge continues recursively into an existing node or not could be an option for the generated
* merger
*/
@Override
@ -266,7 +266,7 @@ public class MavenModelMerger
}
/*
* TODO: The order of the merged list could be controlled by an attribute in the model association: target-first,
* TODO The order of the merged list could be controlled by an attribute in the model association: target-first,
* source-first, dominant-first, recessive-first
*/
@Override
@ -352,7 +352,7 @@ public class MavenModelMerger
}
/*
* TODO: Whether duplicates should be removed looks like an option for the generated merger.
* TODO Whether duplicates should be removed looks like an option for the generated merger.
*/
@Override
protected void mergeBuildBase_Filters( BuildBase target, BuildBase source, boolean sourceDominant,

View File

@ -532,7 +532,7 @@ public class DefaultModelValidator
d.getManagementKey(), d );
/*
* TODO: Extensions like Flex Mojos use custom scopes like "merged", "internal", "external", etc. In
* TODO Extensions like Flex Mojos use custom scopes like "merged", "internal", "external", etc. In
* order to don't break backward-compat with those, only warn but don't error out.
*/
validateEnum( prefix + "scope", problems, Severity.WARNING, Version.V20, d.getScope(),

View File

@ -58,7 +58,7 @@ public interface Mojo
*
* @param log a new logger
*/
// TODO: not sure about this here, and may want a getLog on here as well/instead
// TODO not sure about this here, and may want a getLog on here as well/instead
void setLog( Log log );
/**

View File

@ -36,7 +36,7 @@ import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration;
* <a href="https://maven.apache.org/developers/mojo-api-specification.html">
* https://maven.apache.org/developers/mojo-api-specification.html</a>
*
* @todo is there a need for the delegation of MavenMojoDescriptor to this?
* TODO is there a need for the delegation of MavenMojoDescriptor to this?
* Why not just extend ComponentDescriptor here?
*/
public class MojoDescriptor
@ -269,7 +269,7 @@ public class MojoDescriptor
/**
* @return the required dependencies in a specified scope
* @TODO the name is not intelligible
* TODO the name is not intelligible
*/
@Deprecated
public String isDependencyResolutionRequired()

View File

@ -176,7 +176,7 @@ public class PluginDescriptor
/**
* Parse maven-...-plugin.
*
* @todo move to plugin-tools-api as a default only
* TODO move to plugin-tools-api as a default only
*/
public static String getGoalPrefixFromArtifactId( String artifactId )
{
@ -287,7 +287,7 @@ public class PluginDescriptor
return null; // no mojo in this POM
}
// TODO: could we use a map? Maybe if the parent did that for components too, as this is too vulnerable to
// TODO could we use a map? Maybe if the parent did that for components too, as this is too vulnerable to
// changes above not being propagated to the map
for ( MojoDescriptor desc : getMojos() )
{

View File

@ -313,7 +313,7 @@ public class PluginDescriptorBuilder
mojo.setParameters( parameters );
// TODO: this should not need to be handed off...
// TODO this should not need to be handed off...
// ----------------------------------------------------------------------
// Requirements

View File

@ -141,7 +141,7 @@ public class SystemStreamLog
*/
public boolean isDebugEnabled()
{
// TODO: Not sure how best to set these for this implementation...
// TODO Not sure how best to set these for this implementation...
return false;
}

17
pom.xml
View File

@ -640,14 +640,15 @@ under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<linksource>true</linksource>
<notimestamp>true</notimestamp>
<quiet>true</quiet>
<links combine.children="append">
<!-- TODO link to Maven Resolver Javadoc -->
<link>http://download.eclipse.org/aether/aether-core/${aetherVersion}/apidocs/</link>
<link>https://codehaus-plexus.github.io/plexus-containers/plexus-container-default/apidocs/</link>
</links>
<!-- TODO Remove when we upgrade to maven-parent 31 -->
<locale>en</locale>
<tags>
<tag>
<name>provisional</name>
<placement>tf</placement>
<head>Provisional:</head>
</tag>
</tags>
</configuration>
<reportSets>
<reportSet>