querydsl / apt-maven-plugin

Maven APT plugin
Apache License 2.0
79 stars 41 forks source link

Skip apt-maven-plugin processing #20

Closed arvidj01 closed 11 years ago

arvidj01 commented 11 years ago

There are situations where one would like to skip apt-maven-plugin Maven processing ... or more specifically querydsl Maven processing.

As an example Ant processing in Maven can be disabled with a -Dmaven.antrun.skip=true on the command line.

Some Maven documentation suggests that -Dmaven.apt.skip=true might work but it does not.

Other plugins can be disabled by using:

<configuration>
  <skip>true</skip>
  ....
</configuration>

but the querydsl implementation of apt-maven-plugin seems to respond to neither the command line nor direct configuration.

timowest commented 11 years ago

Released in 1.1.1

arvidj01 commented 11 years ago

Thanks very much!!

In case you are wondering why one would use it ...

Assume you have a project and pom file that compiles and runs fine from within Eclipse but the apt-maven-plugin throws a null pointer exception when run from the command line when trying to generate the Javadoc.

The easiest way to complete the required deliverable on time ... the Javadoc ... is to simply skip the apt-maven-plugin. Addressing why the apt-maven-plugin throws the NPE would be the proper way to resolve the issue but the deliverable has a deadline and therefore a quick and dirty solution is required.