Create a property set
<properties>
<source>1.3</source>
<target>1.3</target>
</properties>
Look up the Pom descriptor to where to place it.
Then you can use ${source} and ${target} both plugin configurations
-D
On 2/13/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> I'm trying to reference a plugin configuration attribute in another
> plugin's configuration in maven2. Can anyone point me in the right
> direction?
>
> Specifically I want to output two config attributes (source & target
> JVM) from the "compile" in the jar's manifest file, so I have the
> following:
>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.3</source>
> <target>1.3</target>
> </configuration>
> </plugin>
>
> <plugin>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <manifestEntries>
> <Source-JDK>${maven.compile.source}</Source-JDK>
> <Target-JDK>${maven.compile.target}</Target-JDK>
> </manifestEntries>
> </archive>
> </configuration>
> </plugin>
>
> I have used property values ${maven.compile.target} in maven1 - is
> there anyway I can reference the source/target configuration values
> for "maven-compiler-plugin" in the "maven-jar-plugin" confiuration
> items?
>
> Niall
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>