Le lundi 28 janvier 2013 23:22:15 Karl Heinz Marbaise a écrit : > So the question is how does Maven know of the version of the above > plugin which has been defined in the pluginManagement section before. see maven-model-builder, phase 2, "plugin management injection" step [1], done in code [2] by DefaultPluginManagementInjector [3]
> > Is there solution to get this kind of information during the run of > plugin itself ? previous code should give you hints > > I have the given configuration in my plugin like this: > > @Parameter(required = true) > private Plugin plugin; > > But if i like to omit the version it will fail. > So the question is how can i get a version of a plugin which has been > defined by a pluginManagement block before... > > Someone an hint/idea ? > > Many thanks in advance. > > Kind regard. > Karl-Heinz Marbaise [1] http://maven.apache.org/ref/3.1-SNAPSHOT/maven-model-builder/ [2] http://maven.apache.org/ref/3.1-SNAPSHOT/maven-model- builder/xref/org/apache/maven/model/building/DefaultModelBuilder.html#381 [3] http://maven.apache.org/ref/3.1-SNAPSHOT/maven-model- builder/xref/org/apache/maven/model/management/DefaultPluginManagementInjector.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
