You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sommers, Elizabeth" <So...@Pragmatics.com> on 2008/12/04 18:10:59 UTC

RE: [SPAM] RE: Attaching artifacts

I am trying to deploy an .exe file to our repository.  I am willing to
build a simple jar to go with it and use jar packaging but I will still
need to attach the .exe file. 

-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Thursday, December 04, 2008 11:45 AM
To: users@maven.apache.org
Subject: [SPAM] RE: Attaching artifacts
Importance: Low


If your Maven POJO is a representation of a goal then a qualified 'yes'
example located here
http://maven.apache.org/maven-1.x/plugins/artifact/examples.html
The bigger question is Why execute a build script with no associated
goal ?
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 




> Subject: Attaching artifacts
> Date: Thu, 4 Dec 2008 11:25:31 -0500
> From: SommersE@Pragmatics.com
> To: users@maven.apache.org
> 
> Is there anyway to attach an artifact without writing a mojo to do it?
> I would like to just do it with the pom if possible.
> 
> Liz Sommers
> sommerse@pragmatics.com
>  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

_________________________________________________________________
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_spe
ed_122008

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


Re: [SPAM] RE: Attaching artifacts

Posted by Stephen Connolly <st...@gmail.com>.
Use pom packaging so that you don't deploy a jar.

Use the buildhelper-maven-plugin bound to the package phase to attach the
exe to your build.

Use the exec-maven-plugin bound to the compile phase to (I'm guessing)
invoke your native code build system to generate the .exe.

That's an all-in-the-pom way that is in the Maven spirit

-Stephen

2008/12/4 Sommers, Elizabeth <So...@pragmatics.com>

> I am trying to deploy an .exe file to our repository.  I am willing to
> build a simple jar to go with it and use jar packaging but I will still
> need to attach the .exe file.
>
> -----Original Message-----
> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Sent: Thursday, December 04, 2008 11:45 AM
> To: users@maven.apache.org
> Subject: [SPAM] RE: Attaching artifacts
> Importance: Low
>
>
> If your Maven POJO is a representation of a goal then a qualified 'yes'
> example located here
> http://maven.apache.org/maven-1.x/plugins/artifact/examples.html
> The bigger question is Why execute a build script with no associated
> goal ?
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission.
>
>
>
>
> > Subject: Attaching artifacts
> > Date: Thu, 4 Dec 2008 11:25:31 -0500
> > From: SommersE@Pragmatics.com
> > To: users@maven.apache.org
> >
> > Is there anyway to attach an artifact without writing a mojo to do it?
> > I would like to just do it with the pom if possible.
> >
> > Liz Sommers
> > sommerse@pragmatics.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
> _________________________________________________________________
> Send e-mail faster without improving your typing skills.
> http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_spe
> ed_122008<http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>