Class SourceJarNoForkMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    SourceJarMojo

    @Mojo(name="jar-no-fork",
          defaultPhase=PACKAGE,
          threadSafe=true)
    public class SourceJarNoForkMojo
    extends AbstractSourceJarMojo
    This goal bundles all the sources into a jar archive. This goal functions the same as the jar goal but does not fork the build and is suitable for attaching to the build lifecycle.
    Since:
    2.1
    Author:
    pgier
    • Field Detail

      • classifier

        @Parameter(property="maven.source.classifier",
                   defaultValue="sources")
        protected String classifier
        Since:
        2.2
    • Constructor Detail

      • SourceJarNoForkMojo

        public SourceJarNoForkMojo()
    • Method Detail

      • getSources

        protected List<String> getSources​(org.apache.maven.project.MavenProject p)
        Specified by:
        getSources in class AbstractSourceJarMojo
        Parameters:
        p - MavenProject not null
        Returns:
        the compile or test sources
      • getResources

        protected List<org.apache.maven.model.Resource> getResources​(org.apache.maven.project.MavenProject p)
        Specified by:
        getResources in class AbstractSourceJarMojo
        Parameters:
        p - MavenProject not null
        Returns:
        the compile or test resources