Skip to content

Commit

Permalink
[MPLUGIN-375] deprecate unsupported Mojo descriptor items (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski authored Oct 18, 2021
1 parent f71d87c commit f2c4bef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
/**
* execution strategy: <code>once-per-session</code> or <code>always</code>.
* @return <code>once-per-session</code> or <code>always</code>
*
* @deprecated unused
*/
@Deprecated
String executionStrategy() default "once-per-session";

/**
Expand All @@ -98,7 +101,10 @@
/**
* can this Mojo be invoked directly only?
* @return invoked directly only
*
* @deprecated unused
*/
@Deprecated
boolean requiresDirectInvocation() default false;

/**
Expand All @@ -107,6 +113,10 @@
*/
boolean requiresOnline() default false;

/**
* @deprecated unused
*/
@Deprecated
boolean inheritByDefault() default true;

/**
Expand Down
6 changes: 3 additions & 3 deletions maven-plugin-tools-annotations/src/site/apt/index.apt
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ import org.apache.maven.settings.Settings;
@Mojo( name = "<goal-name>",
aggregator = <false|true>,
configurator = "<role hint>",
executionStrategy = "<once-per-session|always>",
inheritByDefault = <true|false>,
executionStrategy = "<once-per-session|always>", // (unsupported since Maven 3.0)
inheritByDefault = <true|false>, // (unsupported since Maven 3.0)
instantiationStrategy = InstantiationStrategy.<strategy>,
defaultPhase = LifecyclePhase.<phase>,
requiresDependencyResolution = ResolutionScope.<scope>,
requiresDependencyCollection = ResolutionScope.<scope>, // (since Maven 3.0)
requiresDirectInvocation = <false|true>,
requiresDirectInvocation = <false|true>, // (unsupported since Maven 3.0)
requiresOnline = <false|true>,
requiresProject = <true|false>,
requiresReports = <false|true>, // (unsupported since Maven 3.0)
Expand Down
6 changes: 3 additions & 3 deletions maven-plugin-tools-java/src/site/apt/index.apt
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ import org.apache.maven.settings.Settings;
* @aggregator
* @configurator <roleHint>
* @execute phase="<phaseName>" lifecycle="<lifecycleId>" goal="<goalName>"
* @executionStrategy <once-per-session|always>
* @inheritByDefault <true|false>
* @executionStrategy <once-per-session|always> (unsupported since Maven 3.0)
* @inheritByDefault <true|false> (unsupported since Maven 3.0)
* @instantiationStrategy <per-lookup|singleton|keep-alive|poolable>
* @phase <phaseName>
* @requiresDependencyResolution <compile|runtime|compile+runtime|test>
* @requiresDependencyCollection <compile|runtime|compile+runtime|test> (since Maven 3.0)
* @requiresDirectInvocation <false|true>
* @requiresDirectInvocation <false|true> (unsupported since Maven 3.0)
* @requiresOnline <false|true>
* @requiresProject <true|false>
* @requiresReports <false|true> (unsupported since Maven 3.0)
Expand Down

0 comments on commit f2c4bef

Please sign in to comment.