Man-Chi Leung wrote:
how can I change the generated jar location from default
<project_dir>/target/ to <project_dir>/target/lib?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<basedir>/target/lib</basedir> <-------- I want to
do something like this. but ERROR!
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.ever.beetles.SimpleJxtaApp</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] Error configuring: org.apache.maven.plugins:maven-jar-plugin.
Reason: ERROR: Cannot override read-only parameter: basedir in goal:
jar:jar
[INFO]
------------------------------------------------------------------------
----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I looked at the jar plugin source and as expected, basedir is readonly.
I don't think you can change it via this way unless you edit the jar
plugin source.
Regards,
Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]