Hi everbody, I'm trying without success to change in my maven profile, during the compile phase, the default target/calsses folder where .class are located. In fact I just would like to change the default output location to target/server. I've tried many solutions (<directory>...,<outputDirectory>...) without success.
Does anybody know if it is possible to change the default ouput
location, and if yes how ?
Thanks,
Here the sample maven code used :
<profile>
<id>run.server</id>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<executable>
${JAVA_HOME}/bin/java
</executable>
<arguments>
<argument>-cp</argument>
<classpath />
<argument>${server.main.class}</argument>
</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<includes>
<include>helloworld/ServerLauncher.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Yann
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
