Skip to content

Commit

Permalink
Fix mojohaus#5: align phase and dep resolution to test class check
Browse files Browse the repository at this point in the history
  • Loading branch information
famod committed Mar 20, 2020
1 parent bfd0da5 commit efaf43d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Checking a project against API signatures
....
<execution>
<id>check-signatures</id>
<phase>test</phase>
<phase>process-test-classes</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down Expand Up @@ -158,7 +158,7 @@ public final class MapFactory {
....
<execution>
<id>check-signatures</id>
<phase>test</phase>
<phase>process-test-classes</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down Expand Up @@ -217,7 +217,7 @@ public final class MapFactory {
....
<execution>
<id>check-signatures</id>
<phase>test</phase>
<phase>process-test-classes</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down Expand Up @@ -359,7 +359,7 @@ public final class Someclass {
....
<execution>
<id>check-signatures</id>
<phase>test</phase>
<phase>process-test-classes</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
2 changes: 1 addition & 1 deletion animal-sniffer-enforcer-rule/src/site/apt/usage.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Usage
....
<execution>
<id>check-signatures</id>
<phase>test</phase>
<phase>process-test-classes</phase>
<goals>
<goal>enforce</goal>
</goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
*
* @author Kohsuke Kawaguchi
*/
@Mojo( name = "check", defaultPhase = LifecyclePhase.PROCESS_CLASSES, requiresDependencyResolution = ResolutionScope.COMPILE, threadSafe = true )
@Mojo( name = "check", defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES, requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true )
public class CheckSignatureMojo
extends AbstractMojo
{
Expand Down

0 comments on commit efaf43d

Please sign in to comment.