Skip to content

Commit

Permalink
Update Maven docs about new lifecycle phase.
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Sep 10, 2015
1 parent 9c71e78 commit a02bb88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/thetaphi/forbiddenapis/maven/CheckMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
* <p>
* This Mojo exists since version 1.2, replacing the old <code>forbiddenapis:forbiddenapis</code> goal.
* <em>In most cases its enough to rename the goal on update, the older v1.0 properties are still available.</em>
* <p>
* Since version 2.0 this Mojo defaults to run in the {@code 'verify'} lifecycle phase, before it was done in
* {@code 'process-classes'} phase, which caused problems for some users (especially debugging tests).
* @since 1.2
*/
@Mojo(name = "check", threadSafe = true, requiresProject = true, requiresDependencyResolution = ResolutionScope.COMPILE, defaultPhase = LifecyclePhase.VERIFY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
* Mojo to check if no project generated class files (test scope) contain calls to forbidden APIs
* from the project classpath and a list of API signatures (either inline or as pointer to files or bundled signatures).
* At least one signature must be given, using any of the corresponding optional parameters.
* <p>
* Since version 2.0 this Mojo defaults to run in the {@code 'verify'} lifecycle phase, before it was done in
* {@code 'process-test-classes'} phase, which caused problems for some users (especially debugging tests).
* @since 1.2
*/
@Mojo(name = "testCheck", threadSafe = true, requiresProject = true, requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.VERIFY)
Expand Down

0 comments on commit a02bb88

Please sign in to comment.