You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "maxime.lem" <ma...@gmail.com> on 2011/03/30 11:18:12 UTC
Choose file to install / deploy
Hello all,
I'm using Maven with flexmojos plugin to compile flex projects, and package
the deliveries in a tar.gz with Assembly plugin.
At the end of package phase, target folder contains several swf (equivalent
of jar), a linker xml file, and the tar.gz.
If i run install or deploy phase, all these files are installed / deployed
and tied to this artifact.
I would like to install / deploy only the tar.gz.
How can i do this?
I looked into install and deploy goals configuration, but they don't allow
to include / exclude files.
What is the rule? Every files at the root of target folder are installed?
How this can be changed?
Thx
--
View this message in context: http://maven.40175.n5.nabble.com/Choose-file-to-install-deploy-tp4271077p4271077.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Choose file to install / deploy
Posted by "maxime.lem" <ma...@gmail.com>.
Yes, I have only one project / no module.
I used to have a root project with 2 modules: one for compiling swf, one for
making the assembly, and in this case, this release artifact only contains
the tar.gz.
I changed this with a unique project with a profile for activating assembly
/ tar.gz. It's more simple for flex developers who are used to get their swf
next to their sources in Flashbuilder.
It's working fine in both case, but what's annoying me is duplication in
deliveries. In both case I have swf tied directly in the artifact, and the
same swf into the tar.gz. It's not a big disk loss at each snapshot or
release, but as these swf are useless, if i can remove them from my Nexus,
it's not bad (this project is meant to be deployed to web server, not used
as dependency in other one).
Another problem is the flex application is loading dynamically swf modules,
and it expects unversionned filenames for these swf. I'm using version
stripping before building the tar.gz so swf filename into are fine, but not
those tied directly to the artifact (i get the artifact version in filename
plus classifier as there are several deliveries).
--
View this message in context: http://maven.40175.n5.nabble.com/Choose-file-to-install-deploy-tp4271077p4271155.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Choose file to install / deploy
Posted by Anders Hammar <an...@hammar.net>.
You only have one Maven project? Normally you would have a multi-module
project where one module produces one artifact (a jar, a war, etc.). The you
have one module where the assemlby (the tar) is created. All artifacts are
deployed to the repo, but don't worry about that - that's how Maven works.
/Anders
On Wed, Mar 30, 2011 at 11:18, maxime.lem <ma...@gmail.com> wrote:
> Hello all,
>
> I'm using Maven with flexmojos plugin to compile flex projects, and package
> the deliveries in a tar.gz with Assembly plugin.
> At the end of package phase, target folder contains several swf (equivalent
> of jar), a linker xml file, and the tar.gz.
> If i run install or deploy phase, all these files are installed / deployed
> and tied to this artifact.
> I would like to install / deploy only the tar.gz.
> How can i do this?
> I looked into install and deploy goals configuration, but they don't allow
> to include / exclude files.
> What is the rule? Every files at the root of target folder are installed?
> How this can be changed?
>
> Thx
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Choose-file-to-install-deploy-tp4271077p4271077.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>