It's intentional. It's meant to be the location of the project.

What should go in JIRA is the ability to change the output location.

- Brett

On 1/6/06, Henry Isidro <[EMAIL PROTECTED]> 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]

Reply via email to