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]

Reply via email to