Hi there,
currently i'm working on a new maven plugin
http://khmarbaise.github.com/itexin-maven-plugin/usage.html
which will make it possible to execute a plugin several times based on
values (iteration).
But my question is related how to get the information about a plugins
version of a defined pluginManagement section...for example:
If i define:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
</build>
So the question is how does Maven know of the version of the above
plugin which has been defined in the pluginManagement section before.
Is there solution to get this kind of information during the run of
plugin itself ?
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
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]