Class AbstractUserConfiguration

  • Direct Known Subclasses:
    Initialization, Transformation

    public class AbstractUserConfiguration
    extends Object
    An abstract base class for a user configuration implying a Maven coordinate.
    • Field Detail

      • groupId

        protected String groupId
        The group id of the project containing the plugin type or null if the current project's group id should be used.
      • artifactId

        protected String artifactId
        The artifact id of the project containing the plugin type or null if the current project's artifact id should be used.
      • version

        protected String version
        The version of the project containing the plugin type or null if the current project's version should be used.
      • packaging

        protected String packaging
        The version of the project containing the plugin type or null if the current project's packaging should be used.
    • Constructor Detail

      • AbstractUserConfiguration

        public AbstractUserConfiguration()
    • Method Detail

      • getGroupId

        protected String getGroupId​(String groupId)
        Returns the group id to use.
        Parameters:
        groupId - The current project's group id.
        Returns:
        The group id to use.
      • getArtifactId

        protected String getArtifactId​(String artifactId)
        Returns the artifact id to use.
        Parameters:
        artifactId - The current project's artifact id.
        Returns:
        The artifact id to use.
      • getVersion

        protected String getVersion​(String version)
        Returns the version to use.
        Parameters:
        version - The current project's version.
        Returns:
        The version to use.
      • getPackaging

        protected String getPackaging​(String packaging)
        Returns the version to use.
        Parameters:
        packaging - The current project's packaging.
        Returns:
        The packaging to use.
      • asCoordinate

        public MavenCoordinate asCoordinate​(String groupId,
                                            String artifactId,
                                            String version,
                                            String packaging)
        Resolves this transformation to a Maven coordinate.
        Parameters:
        groupId - The current project's build id.
        artifactId - The current project's artifact id.
        version - The current project's version.
        packaging - The current project's packaging
        Returns:
        The resolved Maven coordinate.