Class ResolveDependencySourcesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="sources",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=TEST,
          threadSafe=true)
    public class ResolveDependencySourcesMojo
    extends ResolveDependenciesMojo
    Goal that resolves the project source dependencies from the repository.
    Since:
    2.0-alpha2
    • Field Detail

      • SOURCE_CLASSIFIER

        private static final java.lang.String SOURCE_CLASSIFIER
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResolveDependencySourcesMojo

        public ResolveDependencySourcesMojo()
    • Method Detail

      • doExecute

        protected void doExecute()
                          throws org.apache.maven.plugin.MojoExecutionException
        Main entry into mojo. Gets the list of dependencies and iterates through resolving the source jars.
        Overrides:
        doExecute in class ResolveDependenciesMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.