It depends on how you are going to use it. For a JAR being included in
an EAR plugin, there is configuration for what to call the JAR inside
the EAR plugin. For your case, you are probably writing some script in
a plugin or maven.xml so you could do:
<ant:copy todir="${my.out.dir}/some-filename.dll"
file="${pom.getDependencyPath('groupId:artifactId')}" />
Cheers,
Brett
On 7/22/05, Ron Yust <[EMAIL PROTECTED]> wrote:
> Can anyone explain how Maven can rename an artifact once it is downloaded to
> the local repository?
>
> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 21, 2005 9:35 AM
> To: Maven Users List
> Subject: Re: [m2] Download DLL
>
> In the repository, the name will include the version. When you copy it
> from the repository to somewhere you use it, then you can rename it.
>
> - Brett
>
> On 7/22/05, Ron Yust <[EMAIL PROTECTED]> wrote:
> > How do you download a DLL as a dependency and still retain its
> non-versioned
> > name? I am trying to do something like this:
> >
> >
> >
> > <project>
> >
> > <modelVersion>4.0.0</modelVersion>
> >
> > <groupId>JTwain</groupId>
> >
> > <artifactId>JTwain</artifactId>
> >
> > <version>8.2</version>
> >
> > <dependencies>
> >
> > <dependency>
> >
> > <groupId>JTwain</groupId>
> >
> > <artifactId>JTwain</artifactId>
> >
> > <version>8.2</version>
> >
> > <type>dll</type>
> >
> > <jar>AspriseJTwain.dll</jar>
> >
> > </dependency>
> >
> > </dependencies>
> >
> > </project>
> >
> >
> >
> > The above can download a DLL named JTwain-8.2.dll, but I need the original
> > name of AspriseJTwain.dll.
> >
> > Ron Yust
> > VP of Technology
> > Conversant, Inc.
> > Cell: (417) 540-5003
> > Office: (417) 781-7994 ext. 201
> >
> > <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> > <http://www.conversantinc.com> www.conversantinc.com
> >
> > _____
> >
> > This e-mail and any files transmitted with it are the property of
> > Conversant, Inc., are confidential, and are intended solely for the use of
> > the individual or entity to whom this email is addressed. If you are not
> one
> > of the named recipients or otherwise have reason to believe that you have
> > received this message in error, please delete this message immediately
> from
> > your computer and contact the sender by telephone at (417) 781-7994. Any
> > other use, retention, dissemination, forwarding, printing or copying of
> this
> > email is strictly prohibited.
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]