You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jesfre <je...@gmail.com> on 2009/06/11 00:17:42 UTC
How to skip install of war in multi-module project?
Hi everybody...
I have a multi-module project wich contains modules wich generates jar files
and war files, but when I run >mvn install on the parent pom.xml, this
installs the war files in the local repository. So, how can I skip the
installation of the war files in the parent pom.xml?
Thanks in advance...
--
View this message in context: http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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: How to skip install of war in multi-module project?
Posted by Wayne Fay <wa...@gmail.com>.
> Yes, you are right, but I need to install several jars form other modules to
> the local repository, skipping the installation of the war modules. All this
> form the parent pom.xml.
Others have asked this question, and when pressed on the matter, they
realized that they simply did not WANT the Wars installed to the local
repo cache, and did not truly have an absolute business requirement
that they not be installed. As a result, no one has bothered to change
the functionality to enable this.
If you truly want this to happen, you will probably have to hack the
source code or something. You might be able to set <skip>true in the
m-install-p for the War modules but I'm not sure if that would work,
and even if it did, there may be other things that simply don't work
right because Maven expects that all modules are always available in
the repo cache. So you might "fix" this but then inadvertantly break
something else down the road because your Wars are not available as
Maven expects.
For me at least, there's really no good reason for NOT installing Wars.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to skip install of war in multi-module project?
Posted by Mick Knutson <mi...@gmail.com>.
I just run *mvn clean verify -e*
---
Thank You…
Mick Knutson, President
BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233
Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---
On Wed, Jun 10, 2009 at 3:32 PM, Jesfre <je...@gmail.com> wrote:
>
> Yes, you are right, but I need to install several jars form other modules
> to
> the local repository, skipping the installation of the war modules.
>
>
>
> RobertGloverJr wrote:
> >
> > I'm a new to maven which may be why I think I know the answer. For a
> while
> > in the beginning of my maven usage in the same situation as yours I was
> > doing "mvn install" like you are. Then I discovered that "mvn package"
> > was sufficient since all I wanted was for the war file to be in the
> target
> > directory, not copied to the local repository.
> >
> >
> > ________________________________
> > From: Jesfre <je...@gmail.com>
> > To: users@maven.apache.org
> > Sent: Wednesday, June 10, 2009 6:17:42 PM
> > Subject: How to skip install of war in multi-module project?
> >
> >
> > Hi everybody...
> > I have a multi-module project wich contains modules wich generates jar
> > files
> > and war files, but when I run >mvn install on the parent pom.xml, this
> > installs the war files in the local repository. So, how can I skip the
> > installation of the war files in the parent pom.xml?
> >
> > Thanks in advance...
> > --
> > View this message in context:
> >
> http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972386.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: How to skip install of war in multi-module project?
Posted by Jesfre <je...@gmail.com>.
Yes, you are right, but I need to install several jars form other modules to
the local repository, skipping the installation of the war modules.
RobertGloverJr wrote:
>
> I'm a new to maven which may be why I think I know the answer. For a while
> in the beginning of my maven usage in the same situation as yours I was
> doing "mvn install" like you are. Then I discovered that "mvn package"
> was sufficient since all I wanted was for the war file to be in the target
> directory, not copied to the local repository.
>
>
> ________________________________
> From: Jesfre <je...@gmail.com>
> To: users@maven.apache.org
> Sent: Wednesday, June 10, 2009 6:17:42 PM
> Subject: How to skip install of war in multi-module project?
>
>
> Hi everybody...
> I have a multi-module project wich contains modules wich generates jar
> files
> and war files, but when I run >mvn install on the parent pom.xml, this
> installs the war files in the local repository. So, how can I skip the
> installation of the war files in the parent pom.xml?
>
> Thanks in advance...
> --
> View this message in context:
> http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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
>
--
View this message in context: http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972386.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: How to skip install of war in multi-module project?
Posted by Robert Glover <ro...@yahoo.com>.
I'm a new to maven which may be why I think I know the answer. For a while in the beginning of my maven usage in the same situation as yours I was doing "mvn install" like you are. Then I discovered that "mvn package" was sufficient since all I wanted was for the war file to be in the target directory, not copied to the local repository.
________________________________
From: Jesfre <je...@gmail.com>
To: users@maven.apache.org
Sent: Wednesday, June 10, 2009 6:17:42 PM
Subject: How to skip install of war in multi-module project?
Hi everybody...
I have a multi-module project wich contains modules wich generates jar files
and war files, but when I run >mvn install on the parent pom.xml, this
installs the war files in the local repository. So, how can I skip the
installation of the war files in the parent pom.xml?
Thanks in advance...
--
View this message in context: http://www.nabble.com/How-to-skip-install-of-war-in-multi-module-project--tp23972182p23972182.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