You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by KurtG <ku...@serent.com> on 2009/05/12 23:15:41 UTC
Newbie - EAR plugin can't find my war file.
I did a 'mvn install' my web app module with no problems and my war file is
definitely in my ~/.m2 repository. However, when I build my ear, I get
this:
Missing:
----------
1) my.xxx.company:SideWinderWeb:jar:3.1-snapshot
But, it's not a 'jar'; it's a 'war' file.
However, my pom clearly lists it as a webModule:
<webModule>
<groupId>my.xxx.company</groupId>
<artifactId>SideWinderWeb</artifactId>
<classifier>none</classifier>
<contextRoot>SideWinderWeb</contextRoot>
</webModule>
and a dependency:
<dependency>
<groupId>my.xxx.company</groupId>
<artifactId>SideWinderWeb</artifactId>
<version>${project.version}</version>
</dependency>
The pom for 'SideWinderWeb' has packaging as a 'war' file. Ideas?
--Kurt
--
View this message in context: http://www.nabble.com/Newbie---EAR-plugin-can%27t-find-my-war-file.-tp23510712p23510712.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: Newbie - EAR plugin can't find my war file.
Posted by Wayne Fay <wa...@gmail.com>.
> <classifier>none</classifier>
Does it actually say that in your file? If so, that's probably your problem.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Newbie - EAR plugin can't find my war file.
Posted by KurtG <ku...@serent.com>.
Jeff Mutonho wrote:
>
> Just add <type>war</type> below the <version> tag in your dependency
>
Thanks! That did it.
--
View this message in context: http://www.nabble.com/Newbie---EAR-plugin-can%27t-find-my-war-file.-tp23510712p23522305.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: Newbie - EAR plugin can't find my war file.
Posted by Jeff Mutonho <ej...@gmail.com>.
Just add <type>war</type> below the <version> tag in your dependency
On Tue, May 12, 2009 at 11:15 PM, KurtG <ku...@serent.com> wrote:
>
> >
> >
> > I did a 'mvn install' my web app module with no problems and my war file
> is
> > definitely in my ~/.m2 repository. However, when I build my ear, I get
> > this:
> >
> > Missing:
> > ----------
> > 1) my.xxx.company:SideWinderWeb:jar:3.1-snapshot
> >
> > But, it's not a 'jar'; it's a 'war' file.
> >
> > However, my pom clearly lists it as a webModule:
> >
> > <webModule>
> > <groupId>my.xxx.company</groupId>
> > <artifactId>SideWinderWeb</artifactId>
> > <classifier>none</classifier>
> > <contextRoot>SideWinderWeb</contextRoot>
> > </webModule>
> >
> > and a dependency:
> >
> > <dependency>
> > <groupId>my.xxx.company</groupId>
> > <artifactId>SideWinderWeb</artifactId>
> > <version>${project.version}</version>
> > </dependency>
> >
> > The pom for 'SideWinderWeb' has packaging as a 'war' file. Ideas?
> >
> > --Kurt
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Newbie---EAR-plugin-can%27t-find-my-war-file.-tp23510712p23510712.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
> >
> >
>
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
Re: Newbie - EAR plugin can't find my war file.
Posted by Jasper de Vries <li...@gmail.com>.
It may help if you explicitly marked the dependency as being of type war,
since it looks like it's looking for a jar of the same group/artifactId.
On Tue, May 12, 2009 at 11:15 PM, KurtG <ku...@serent.com> wrote:
>
>
> I did a 'mvn install' my web app module with no problems and my war file is
> definitely in my ~/.m2 repository. However, when I build my ear, I get
> this:
>
> Missing:
> ----------
> 1) my.xxx.company:SideWinderWeb:jar:3.1-snapshot
>
> But, it's not a 'jar'; it's a 'war' file.
>
> However, my pom clearly lists it as a webModule:
>
> <webModule>
> <groupId>my.xxx.company</groupId>
> <artifactId>SideWinderWeb</artifactId>
> <classifier>none</classifier>
> <contextRoot>SideWinderWeb</contextRoot>
> </webModule>
>
> and a dependency:
>
> <dependency>
> <groupId>my.xxx.company</groupId>
> <artifactId>SideWinderWeb</artifactId>
> <version>${project.version}</version>
> </dependency>
>
> The pom for 'SideWinderWeb' has packaging as a 'war' file. Ideas?
>
> --Kurt
>
>
> --
> View this message in context:
> http://www.nabble.com/Newbie---EAR-plugin-can%27t-find-my-war-file.-tp23510712p23510712.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
>
>