logo MAVEN PROCESSOR PLUGIN (JDK8)

A maven plugin to process annotation for jdk6 at compile time This plugin helps to use from maven the new annotation processing provided by JDK6 integrated in java compiler This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.codehaus.org/apt-maven-plugin/

homepage: github.com/bsorrentino/maven-annotation-plugin
fresh index:
last release: 6 months ago, first release: 1 decade ago
packaging: maven-plugin
get this artifact from: central nuxeo
see this artifact on: search.maven.org


Display vulnerabilities (snyk): Vulnerability check

This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
processor:help

Display help information on maven-processor-plugin. Call mvn processor:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.

processor:process (phase: generate-sources)
processor:process-test (phase: generate-test-sources)

Often used code snippets:

<plugin>
  <groupId>org.bsc.maven</groupId>
  <artifactId>maven-processor-plugin</artifactId>
  <version>2.2.4</version>
  <configuration>
    <defaultOutputDirectory>
                        ${project.build.directory}/generated-sources
                    </defaultOutputDirectory>
    <processors>
      <processor>org.mapstruct.ap.MappingProcessor</processor>
    </processors>
    <options>
      <mapstruct.suppressGeneratorTimestamp>true</mapstruct.suppressGeneratorTimestamp>
      <mapstruct.defaultComponentModel>spring</mapstruct.defaultComponentModel>
    </options>
  </configuration>
  <executions>
    <execution>
      <id>process</id>
      <phase>generate-sources</phase>
      <goals>
        <goal>process</goal>
      </goals>
    </execution>
  </executions>
  <dependencies>
    <dependency>
      <groupId>org.mapstruct</groupId>
      <artifactId>mapstruct-processor</artifactId>
      <version>${mapstruct.version}</version>
    </dependency>
  </dependencies>
</plugin>
<plugin>
  <groupId>org.bsc.maven</groupId>
  <artifactId>maven-processor-plugin</artifactId>
  <version>2.2.4</version>
  <executions>
    <execution>
      <id>process</id>
      <phase>generate-sources</phase>
      <goals>
        <goal>process</goal>
      </goals>
    </execution>
  </executions>
  <dependencies>
    <dependency>
      <groupId>org.mapstruct</groupId>
      <artifactId>mapstruct-processor</artifactId>
      <version>${mapstruct.version}</version>
    </dependency>
  </dependencies>
  <configuration>
    <defaultOutputDirectory>${project.build.directory}/generated-sources</defaultOutputDirectory>
    <processors>
      <processor>org.mapstruct.ap.MappingProcessor</processor>
    </processors>
    <options>
      <mapstruct.suppressGeneratorTimestamp>true</mapstruct.suppressGeneratorTimestamp>
      <mapstruct.defaultComponentModel>spring</mapstruct.defaultComponentModel>
    </options>
  </configuration>
</plugin>
<plugin>
  <groupId>org.bsc.maven</groupId>
  <artifactId>maven-processor-plugin</artifactId>
  <version>${mvn.processor.plugin.version}</version>
  <configuration>
    <processors>
      <processor>
                            org.ballerinalang.natives.annotation.processor.BallerinaAnnotationProcessor
                        </processor>
    </processors>
    <options>
      <packageName>${native.constructs.provider.package}</packageName>
      <className>${native.constructs.provider.class}</className>
      <srcDir>${connectors.source.directory}</srcDir>
      <targetDir>${generated.connectors.source.directory}</targetDir>
      <pkgRepositoryClass>${package.repository.provider.class}</pkgRepositoryClass>
    </options>
  </configuration>
  <executions>
    <execution>
      <id>process</id>
      <goals>
        <goal>process</goal>
      </goals>
      <phase>generate-sources</phase>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>org.bsc.maven</groupId>
  <artifactId>maven-processor-plugin</artifactId>
  <version>2.2.4</version>
  <executions>
    <execution>
      <id>process</id>
      <phase>process-classes</phase>
      <goals>
        <goal>process</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <outputDirectory>src/main/generated</outputDirectory>
    <processors>
      <processor>com.laytonsmith.core.extensions.ExtensionAnnotationProcessor</processor>
    </processors>
  </configuration>
</plugin>
<plugin>
  <groupId>org.bsc.maven</groupId>
  <artifactId>maven-processor-plugin</artifactId>
  <executions>
    <execution>
      <id>process</id>
      <goals>
        <goal>process</goal>
      </goals>
      <phase>generate-sources</phase>
    </execution>
  </executions>
</plugin>

© Jiri Pinkas 2015 - 2022. All rights reserved! Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.