You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ed Hillmann <ed...@gmail.com> on 2009/10/09 03:38:04 UTC

Can I manually deploy a sources jar using deploy-file?

Hi.  To date, I've been manually deploying an artifact using
mvn:deploy-file, as the artifact is built using an alternative build tool
(ant).  This has been working fine to date.

Now, I'd like to be able to deploy the artifact's sources as well, so I can
see the source from NetBeans.  We have other maven-based projects that, when
a release is deployed, it deploys the source jar as well.

I had thought that I could use the mvn deploy:deploy-file to do this as
well, but I'm not so sure?  I can easily create the source jar files, but
how would I deploy them into the same directory as the artifact file I have
previously deployed using deploy-file?

Thanks for any help,
Ed

Re: Can I manually deploy a sources jar using deploy-file?

Posted by Ed Hillmann <ed...@gmail.com>.
On Fri, Oct 9, 2009 at 12:34 PM, Kalle Korhonen
<ka...@gmail.com>wrote:

> Use a classifier
>
> http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html
> (and read the documentation)
>
> Kalle
>
>
> Perfect!

Thanks,
Ed

Re: Can I manually deploy a sources jar using deploy-file?

Posted by Kalle Korhonen <ka...@gmail.com>.
Use a classifier
http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html
(and read the documentation)

Kalle


On Thu, Oct 8, 2009 at 6:38 PM, Ed Hillmann <ed...@gmail.com> wrote:
> Hi.  To date, I've been manually deploying an artifact using
> mvn:deploy-file, as the artifact is built using an alternative build tool
> (ant).  This has been working fine to date.
>
> Now, I'd like to be able to deploy the artifact's sources as well, so I can
> see the source from NetBeans.  We have other maven-based projects that, when
> a release is deployed, it deploys the source jar as well.
>
> I had thought that I could use the mvn deploy:deploy-file to do this as
> well, but I'm not so sure?  I can easily create the source jar files, but
> how would I deploy them into the same directory as the artifact file I have
> previously deployed using deploy-file?
>
> Thanks for any help,
> Ed
>

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