Just add <type>war</type> below the <version> tag in your dependency

 On Tue, May 12, 2009 at 11:15 PM, KurtG <[email protected]> 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: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>



-- 

"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

Reply via email to