You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Keisuke Matsubara <k-...@bx.jp.nec.com> on 2005/04/09 12:50:05 UTC

How to less "-" in jar:install

Hi,
I'm using Mave 1.0.2.
I want to change the archive name created by jar:jar and jar:install.
I can change the archive name that jar:jar created  by setting
maven.final.name=${pom.artifactId} to property file and setting null to
version tag.
But when I execute jar:install ,it is added "-" to file name.

If you know how to change, please tell me.

---------------------
>maven jar:install
  :
jar:jar:
    [jar] Building jar: /beatroot/build/CommonClasses.jar
Copying: from '/beatroot/build/CommonClasses.jar' to:
'/home/wls/.maven/repository/CommonLib/jars/Co
mmonClasses-.jar'
  :
----------------------

Thanks and regards,
Keisuke




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to less "-" in jar:install

Posted by Brett Porter <br...@gmail.com>.
On Apr 10, 2005 2:19 PM, Keisuke Matsubara <k-...@bx.jp.nec.com> wrote:
> Dear Brett,
> Thank you for your information. I understand this semantics is the rule
> of Maven.
> 
> I can package a jar in war from local repository by changing
> project.xml. (I had defined jar tag in dependency tag.)

Yes this is the intention (though I generally don't change them in
WAR, because the names are nothing special and it is nice to know what
versions are in there).

- Brett

> 
> Thanks,
> Keisuke
> 
> 
> Brett Porter wrote:
> > The local repository is a Maven data cache, stored in a specific
> > format. You must retain the filename. This should affect you in any
> > way.
> >
> > If this causes you any problems in your build (eg, JARs being included
> > in an EAR with the wrong name, please report it as a bug).
> >
> > - Brett
> >
> > On Apr 9, 2005 8:50 PM, Keisuke Matsubara <k-...@bx.jp.nec.com> wrote:
> >
> >>Hi,
> >>I'm using Mave 1.0.2.
> >>I want to change the archive name created by jar:jar and jar:install.
> >>I can change the archive name that jar:jar created  by setting
> >>maven.final.name=${pom.artifactId} to property file and setting null to
> >>version tag.
> >>But when I execute jar:install ,it is added "-" to file name.
> >>
> >>If you know how to change, please tell me.
> >>
> >>---------------------
> >>
> >>>maven jar:install
> >>
> >>  :
> >>jar:jar:
> >>    [jar] Building jar: /beatroot/build/CommonClasses.jar
> >>Copying: from '/beatroot/build/CommonClasses.jar' to:
> >>'/home/wls/.maven/repository/CommonLib/jars/Co
> >>mmonClasses-.jar'
> >>  :
> >>----------------------
> >>
> >>Thanks and regards,
> >>Keisuke
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to less "-" in jar:install

Posted by Keisuke Matsubara <k-...@bx.jp.nec.com>.
Dear Brett,
Thank you for your information. I understand this semantics is the rule 
of Maven.

I can package a jar in war from local repository by changing 
project.xml. (I had defined jar tag in dependency tag.)

Thanks,
Keisuke


Brett Porter wrote:
> The local repository is a Maven data cache, stored in a specific
> format. You must retain the filename. This should affect you in any
> way.
> 
> If this causes you any problems in your build (eg, JARs being included
> in an EAR with the wrong name, please report it as a bug).
> 
> - Brett
> 
> On Apr 9, 2005 8:50 PM, Keisuke Matsubara <k-...@bx.jp.nec.com> wrote:
> 
>>Hi,
>>I'm using Mave 1.0.2.
>>I want to change the archive name created by jar:jar and jar:install.
>>I can change the archive name that jar:jar created  by setting
>>maven.final.name=${pom.artifactId} to property file and setting null to
>>version tag.
>>But when I execute jar:install ,it is added "-" to file name.
>>
>>If you know how to change, please tell me.
>>
>>---------------------
>>
>>>maven jar:install
>>
>>  :
>>jar:jar:
>>    [jar] Building jar: /beatroot/build/CommonClasses.jar
>>Copying: from '/beatroot/build/CommonClasses.jar' to:
>>'/home/wls/.maven/repository/CommonLib/jars/Co
>>mmonClasses-.jar'
>>  :
>>----------------------
>>
>>Thanks and regards,
>>Keisuke
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to less "-" in jar:install

Posted by Brett Porter <br...@gmail.com>.
The local repository is a Maven data cache, stored in a specific
format. You must retain the filename. This should affect you in any
way.

If this causes you any problems in your build (eg, JARs being included
in an EAR with the wrong name, please report it as a bug).

- Brett

On Apr 9, 2005 8:50 PM, Keisuke Matsubara <k-...@bx.jp.nec.com> wrote:
> Hi,
> I'm using Mave 1.0.2.
> I want to change the archive name created by jar:jar and jar:install.
> I can change the archive name that jar:jar created  by setting
> maven.final.name=${pom.artifactId} to property file and setting null to
> version tag.
> But when I execute jar:install ,it is added "-" to file name.
> 
> If you know how to change, please tell me.
> 
> ---------------------
> >maven jar:install
>   :
> jar:jar:
>     [jar] Building jar: /beatroot/build/CommonClasses.jar
> Copying: from '/beatroot/build/CommonClasses.jar' to:
> '/home/wls/.maven/repository/CommonLib/jars/Co
> mmonClasses-.jar'
>   :
> ----------------------
> 
> Thanks and regards,
> Keisuke
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org