if I want to remove the readonly restriction. do I need to rebuild
from the maven svn source trunk ? so I will use 2.1-SNAPSHOT instead
of 2.0.1?
can u guide me on which file and perhaps which line to do this change?
thanks for help
~manchi
On Jan 6, 2006, at 9:43 AM, Henry Isidro wrote:
Henry Isidro wrote:
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]
I tried removing the readonly setting from the basedir property
from the jar plugin source and I was able to change the basedir
property using your configuration. I don't know why the basedir
property is readonly. Maybe you should file a JIRA issue regarding
this.
Regards,
henry
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]