Class FilterSourcesMojo

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

    @Mojo(name="filter-sources",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true)
    public class FilterSourcesMojo
    extends AbstractFilterSourcesMojo
    This mojo helps adding a filtered source folder in one go. This is typically useful if you want to use properties coming from the POM inside parts of your source code that requires real constants, like annotations for example.
    • Field Detail

      • sourceDirectory

        @Parameter(defaultValue="${basedir}/src/main/java-templates")
        java.io.File sourceDirectory
        Source directory that will be first filtered and then added as a classical source folder.
      • outputDirectory

        @Parameter(defaultValue="${project.build.directory}/generated-sources/java-templates")
        private java.io.File outputDirectory
        Output folder where filtered sources will land.
    • Constructor Detail

      • FilterSourcesMojo

        public FilterSourcesMojo()