You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by relliott <re...@bell.net> on 2010/09/08 12:34:49 UTC
Mavin Dependency Management on Dynamic Web Project
Hi,
Eclipse Helios
mss-1.3.2-jboss-jdk6-5.1.0.GA-1008061811
m2eclipse 0.10.0.2
mweclipse extras
I created a Dynamic WebProject and then Mavin -> Enable Dependency
Management. I added my depencies then did Mavin clean and then Mavin
Package. I receive the following build error:
Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1-
alpha-1:war (default-war) on project <myapp>: Error assembling WAR:
Deployment descriptor: <my-app-path>\\WEB-INF\web.xml does not exist. -
> [Help 1].
The project wizard created the web.xml under WebContent\WEB-INF
\web.xml. My pom.xml does not contain any path info. Do I need to
modify pom.xml?
Thanks...
--
View this message in context: http://maven.40175.n5.nabble.com/Mavin-Dependency-Management-on-Dynamic-Web-Project-tp2807663p2807663.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: Mavin Dependency Management on Dynamic Web Project
Posted by relliott <re...@bell.net>.
Thanks justin,
Obviously I'm a newbie of MavEn also :)
I needed to add the maven war plugin to my pom.xml and specify the
location of the web-inf directory as follows:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>
${basedir}/WebContent
</warSourceDirectory>
</configuration>
</plugin>
--
View this message in context: http://maven.40175.n5.nabble.com/Mavin-Dependency-Management-on-Dynamic-Web-Project-tp2807663p2808405.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: Mavin Dependency Management on Dynamic Web Project
Posted by Justin Edelson <ju...@gmail.com>.
It's spelled Maven :)
This question would probably be better posed to the m2eclipse mailing list.
But yes, you will either need to change change the warSourceDirectory
parameter of the maven-war-plugin or adopt the Maven directory structure
(src/main/webapp instead of WebContent). The latter would be better from
a Maven perspective.
Justin
On 9/8/10 6:34 AM, relliott wrote:
>
> Hi,
> Eclipse Helios
> mss-1.3.2-jboss-jdk6-5.1.0.GA-1008061811
> m2eclipse 0.10.0.2
> mweclipse extras
> I created a Dynamic WebProject and then Mavin -> Enable Dependency
> Management. I added my depencies then did Mavin clean and then Mavin
> Package. I receive the following build error:
> Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1-
> alpha-1:war (default-war) on project <myapp>: Error assembling WAR:
> Deployment descriptor: <my-app-path>\\WEB-INF\web.xml does not exist. -
>> [Help 1].
>
> The project wizard created the web.xml under WebContent\WEB-INF
> \web.xml. My pom.xml does not contain any path info. Do I need to
> modify pom.xml?
>
> Thanks...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org