mirror of https://github.com/apache/maven.git
[MNG-7041] Update @since, version ranges and other version related strings
This closes #404
This commit is contained in:
parent
3736be9c15
commit
b24c34bb23
|
@ -44,7 +44,7 @@ class ReactorModelPool
|
|||
private final Map<Path, Model> modelsByPath = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Get the model by its GAV or (since 3.7.0) by its GA if there is only one.
|
||||
* Get the model by its GAV or (since 4.0.0) by its GA if there is only one.
|
||||
*
|
||||
* @param groupId, never {@code null}
|
||||
* @param artifactId, never {@code null}
|
||||
|
@ -68,7 +68,7 @@ class ReactorModelPool
|
|||
*
|
||||
* @param path
|
||||
* @return the matching model or {@code null}
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public Model get( Path path )
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.apache.maven.xml.sax.filter.ConsumerPomXMLFilterFactory;
|
|||
* It will provide several values for the consumer pom based on its context.
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class DefaultConsumerPomXMLFilterFactory extends ConsumerPomXMLFilterFactory
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ package org.apache.maven.feature;
|
|||
* Centralized class for feature information
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public final class Features
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ public final class Features
|
|||
* Represents some feature
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public static class Feature
|
||||
{
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
* Subclasses are responsible for providing the right SAXFilter.
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public abstract class AbstractModelSourceTransformer
|
||||
implements ModelSourceTransformer
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.apache.maven.building.FileSource;
|
|||
* Represents a model pulled from a repository
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class ArtifactModelSource extends FileSource implements ModelSource
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
* ModelSourceTransformer for the build pom
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
@Named
|
||||
@Singleton
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
/**
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class DefaultBuildPomXMLFilterFactory extends BuildPomXMLFilterFactory
|
||||
{
|
||||
|
|
|
@ -1561,7 +1561,7 @@ public class DefaultModelBuilder
|
|||
* All others can simply be copied from source to target to restore the locationTracker
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class FileToRawModelMerger extends ModelMerger
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ import java.nio.file.Path;
|
|||
* Default ModelSourceTransformer, provides pomFile as inputStream and ignores the context
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class DefaultModelSourceTransformer implements ModelSourceTransformer
|
||||
{
|
||||
|
|
|
@ -67,7 +67,7 @@ public interface ModelBuildingRequest
|
|||
/**
|
||||
*
|
||||
* @return the file model
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
Model getFileModel();
|
||||
|
||||
|
@ -75,7 +75,7 @@ public interface ModelBuildingRequest
|
|||
*
|
||||
* @param fileModel
|
||||
* @return This request, never {@code null}.
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
ModelBuildingRequest setFileModel( Model fileModel );
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ public interface ModelCache
|
|||
* @param path The path of the cache record, must not be {@code null}.
|
||||
* @param tag The tag of the cache record, must not be {@code null}.
|
||||
* @param data The data to store in the cache, must not be {@code null}.
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
default void put( Source path, String tag, Object data )
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ public interface ModelCache
|
|||
* @param path The path of the cache record, must not be {@code null}.
|
||||
* @param tag The tag of the cache record, must not be {@code null}.
|
||||
* @return The requested data or {@code null} if none was present in the cache.
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
default Object get( Source path, String tag )
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ import java.nio.file.Path;
|
|||
/**
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public interface ModelSourceTransformer
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.apache.maven.model.Model;
|
|||
*
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public interface TransformerContext
|
||||
{
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.apache.maven.model.building;
|
|||
/**
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class TransformerException extends Exception
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.xml.sax.helpers.XMLReaderFactory;
|
|||
* Creates XML related factories with OWASP advices applied
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public final class Factories
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.xml.sax.SAXException;
|
|||
* Command pattern to gather events which can be executed later on.
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SAXEvent
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
* Factory for SAXEvents
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public final class SAXEventFactory
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.regex.Pattern;
|
|||
* Utility class for SAXEvents
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public final class SAXEventUtils
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
* Hence use this class in the LexicalHandler chain to do so
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class CommentRenormalizer implements LexicalHandler
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.xml.sax.SAXException;
|
|||
* Builds up a list of SAXEvents, which will be executed with {@link #executeEvents()}
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
abstract class AbstractEventXMLFilter extends AbstractSAXFilter
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.xml.sax.helpers.XMLFilterImpl;
|
|||
* Otherwise the LexicalHandler events might end up before all collected XMLReader events.
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class AbstractSAXFilter extends XMLFilterImpl implements LexicalHandler
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.xml.sax.XMLReader;
|
|||
*
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class BuildPomXMLFilter extends AbstractSAXFilter
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
* Base implementation for providing the BuildPomXML.
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class BuildPomXMLFilterFactory
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.nio.file.Path;
|
|||
* Listener can be used to capture the result of the build pom
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface BuildPomXMLFilterListener
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.xml.sax.SAXException;
|
|||
* Resolves all ci-friendly properties occurrences between version-tags
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class CiFriendlyXMLFilter
|
||||
extends AbstractSAXFilter
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.xml.sax.ext.LexicalHandler;
|
|||
* - {@link org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory} when publishing pom files.
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class ConsumerPomXMLFilter extends AbstractSAXFilter
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.xml.sax.SAXException;
|
|||
/**
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class ConsumerPomXMLFilterFactory
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@ import java.util.Objects;
|
|||
/**
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class DependencyKey
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.xml.sax.XMLFilter;
|
|||
* Should be used in case of a DOM that should not be effected by other filters, even though the elements match
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class FastForwardFilter extends AbstractSAXFilter
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.xml.sax.SAXException;
|
|||
* Remove all modules, this is just buildtime information
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class ModulesXMLFilter
|
||||
extends AbstractEventXMLFilter
|
||||
|
|
|
@ -39,7 +39,7 @@ import org.xml.sax.SAXException;
|
|||
* </p>
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class ParentXMLFilter
|
||||
extends AbstractEventXMLFilter
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.xml.sax.SAXException;
|
|||
* Will apply the version if the dependency is part of the reactor
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class ReactorDependencyXMLFilter extends AbstractEventXMLFilter
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.xml.sax.SAXException;
|
|||
* Remove relativePath element, has no value for consumer pom
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class RelativePathXMLFilter
|
||||
extends AbstractEventXMLFilter
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.apache.maven.xml.sax.filter;
|
|||
/**
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class RelativeProject
|
||||
{
|
||||
|
|
|
@ -42,7 +42,7 @@ import org.xml.sax.SAXException;
|
|||
* A small example of a pipeline of 2 XML Filters, to understand how to get the expected result
|
||||
*
|
||||
* @author Robert Scholte
|
||||
* @since 3.7.0
|
||||
* @since 4.0.0
|
||||
*/
|
||||
public class ChainedFilterTest
|
||||
{
|
||||
|
|
|
@ -190,7 +190,7 @@ public class ConsumerPomXMLFilterTest extends AbstractXMLFilterTests
|
|||
" <parent>\n" +
|
||||
" <groupId>org.apache.maven</groupId>\n" +
|
||||
" <artifactId>maven</artifactId>\n" +
|
||||
" <version>3.7.0-SNAPSHOT</version>\n" +
|
||||
" <version>4.0.0-SNAPSHOT</version>\n" +
|
||||
" </parent>\n" +
|
||||
" <artifactId>maven-xml</artifactId>\n" +
|
||||
" <name>Maven XML</name>\n" +
|
||||
|
|
Loading…
Reference in New Issue