Skip to content

Commit

Permalink
Merge branch 'master' into MNG-6957
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Nov 29, 2020
2 parents 2737305 + b24c34b commit 337d180
Show file tree
Hide file tree
Showing 36 changed files with 41 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -68,7 +68,7 @@ public Model get( String groupId, String artifactId, String version )
*
* @param path
* @return the matching model or {@code null}
* @since 3.7.0
* @since 4.0.0
*/
public Model get( Path path )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Centralized class for feature information
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public final class Features
{
Expand All @@ -42,7 +42,7 @@ public static Feature buildConsumer()
* Represents some feature
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public static class Feature
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* ModelSourceTransformer for the build pom
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
@Named
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* A BuildPomXMLFilterFactory which is context aware
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class DefaultBuildPomXMLFilterFactory extends BuildPomXMLFilterFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ protected boolean hasFatalErrors( ModelProblemCollectorExt problems )
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,16 @@ public interface ModelBuildingRequest
* If not set, model source will be used to load file model.
*
* @return The file model to build or {@code null} if not set.
* @since 4.0.0
*/
Model getFileModel();

/**
* Set the file model with profile activation
*
* @param fileModel
* @return This request, never {@code null}.
* @since 4.0.0
*/
ModelBuildingRequest setFileModel( Model fileModel );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand All @@ -52,7 +52,7 @@ default void put( Source path, String tag, Object data )
* @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 )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* local pom is the the original source.
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public interface ModelSourceTransformer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public interface TransformerContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class TransformerException extends Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* Creates XML related factories with OWASP advices applied
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public final class Factories
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* Factory for SAXEvents
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public final class SAXEventFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Utility class for SAXEvents
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public final class SAXEventUtils
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class BuildPomXMLFilter extends AbstractSAXFilter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Base implementation for providing the BuildPomXML.
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class BuildPomXMLFilterFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* Resolves all ci-friendly properties occurrences between version-tags
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
class CiFriendlyXMLFilter
extends AbstractSAXFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* - {@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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class ConsumerPomXMLFilterFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class DependencyKey
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Remove all modules, this is just buildtime information
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
class ModulesXMLFilter
extends AbstractEventXMLFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* </p>
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
class ParentXMLFilter
extends AbstractEventXMLFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Remove relativePath element, has no value for consumer pom
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
class RelativePathXMLFilter
extends AbstractEventXMLFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
*
* @author Robert Scholte
* @since 3.7.0
* @since 4.0.0
*/
public class RelativeProject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* 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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void licenseHeader() throws Exception {
" <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" +
Expand Down

0 comments on commit 337d180

Please sign in to comment.