Class JoinPathsMojo

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

    @Mojo(name="join-paths",
          defaultPhase=INITIALIZE,
          requiresProject=true,
          threadSafe=true)
    public class JoinPathsMojo
    extends org.apache.maven.plugin.AbstractMojo
    Join paths using the platform-specific path separator and provide the result as a Maven property.

    While paths for most of the standard Maven plugins can be defined in a way that is platform agnostic, sometimes it's necessary to add flags directly. For instance, when configuring Javadoc's --snippet-path flag, the value should use the platform-specific path separator.

    Author:
    Rob Spoor
    • Constructor Detail

      • JoinPathsMojo

        public JoinPathsMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException