On Mon, Jun 05, 2006 at 08:30:50AM -0400, Charlie Groves wrote:
> Jars are created with maven-jar-plugin, so you'd change the output
> directory by setting its basedir in your plugin configuration in
> build.  You can see the jar plugin docs at
> http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html and
> about configuring plugins from pom.xml at
> http://maven.apache.org/guides/mini/guide-configuring-plugins.html

You mean I can alter configuration for jar:jar somehow in a POM file for
project, so when jar:jar target will be executed in a lifecycle for 'package'
- JAR file will be placed in a directory I specify in plugin configuration?

<plugin>
    <groupId>org.codehaus.mojo</groupId>

    <artifactId>maven-jar-plugin</artifactId>

    <executions>
        <execution>
            <id>jar</id>

            <phase>package</phase>

            <goals>
                <goal>jar</goal>
            </goals>

            <configuration>
                <outputDirectory>WEB-INF/lib</outputDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>

Something like this? And what about valid group ID for the plugin?


-- 
Eugene N Dzhurinsky

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to