You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Waluk <mw...@gmail.com> on 2009/05/01 21:46:27 UTC
How to deploy a module with multiple classifiers?
I have an Maven module that I have to build out for different environments.
There are only a few different files for each, so I use profiles and have
used build-helper to create the artifacts for each environment, like:
- ABC-1.0-SNAPSHOT.jar
- ABC-1.0-SNAPSHOT-tomcat.jar
- ABC-1.0-SNAPSHOT-jetty.jar
The problem I have is how to deploy them into the same directory in my Maven
Repo. Each time I deploy one of them with deploy:deploy-file using the
-Dclassifier=tomcat (for example), it creates a .pom file WITHOUT the
classifier. This makes it so the non-tomcat users of the artifact can't
build.
Shouldn't it name the .pom file the same as the .jar file? Or is there a
different way to deploy ALL of them at the same time somehow. What are the
best practices (besides creating a completely different artifact - which is
my only option right now).
Thanks,
Michael
Re: How to deploy a module with multiple classifiers?
Posted by Michael Waluk <mw...@gmail.com>.
Thanks for the quick response Wayne,
It does sound similar although there the .pom wasn't even produced for some
reason. I'm using Maven 2.1.0 which comes with 2.2 of the install plugin.
I am really hopeful that this will fix it, but had 2 questions:
1. I am using deploy:deploy-file to deploy it. Does that use the install
plugin underneath?
2. If so, how do I specify a particular plugin version? Do I have to
configure that in the pom.xml of the project deployed or can I specify it on
the command line?
Thanks again for your help,
Michael
On Fri, May 1, 2009 at 4:45 PM, Wayne Fay <wa...@gmail.com> wrote:
> > Shouldn't it name the .pom file the same as the .jar file? Or is there a
> > different way to deploy ALL of them at the same time somehow. What are
> the
>
> This sounds like a bug that was reported and fixed in version 2.3 of
> the install plugin. What version are you using? Depending on what
> version is set in the super pom inside Maven, you may need to specify
> a later version to pick up the fix.
>
> http://jira.codehaus.org/browse/MINSTALL-41
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How to deploy a module with multiple classifiers?
Posted by Wayne Fay <wa...@gmail.com>.
> Shouldn't it name the .pom file the same as the .jar file? Or is there a
> different way to deploy ALL of them at the same time somehow. What are the
This sounds like a bug that was reported and fixed in version 2.3 of
the install plugin. What version are you using? Depending on what
version is set in the super pom inside Maven, you may need to specify
a later version to pick up the fix.
http://jira.codehaus.org/browse/MINSTALL-41
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org