You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tatiana Escovedo <ta...@gmail.com> on 2006/02/22 04:48:27 UTC

Help with mvn war - maven-war-plugin

Hi,

I´ve just started using Maven 2, and I´m trying to make a war of my project
using
mvn war:war.

The following error occurs:
Embedded error: Deployment descriptor:
C:\{my-project-directory}\target\AulaNet3StartUp-0.0.1\WEB-INF\web.xml does
not exist.

I´ve searched for it in google and I found in
http://docs.codehaus.org/display/MAVENUSER/FAQs-1 a suggestion to add this
on my pom.xml:

<build>
   ...
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <webXml><!-- path-to-your-webxml --></webXml>
        </configuration>
      </plugin>
    </plugins>
</build>



I did that, but the error remains the same. Do you have any idea about how
can I solve this problem?

Thanks,
Tatiana

Re: Help with mvn war - maven-war-plugin

Posted by cristal <da...@jpmorgan.com>.
Hi Tatiana, I had the exactly the same error as you got. Here is what I found
when running mvn with -X option (debug mode). In fact, maven still looking
for my webapp directory in src/main/webapp even though I had specified
different warSourceDirectory in the plugin configuration.

See if you see the same thing. In my case, I simply move my webapp in
src/main to fix the problem. There might be a bug in maven.war.plugin, but
it seems ok if you follow the maven default layout.

--
View this message in context: http://www.nabble.com/Help+with+mvn+war+-+maven-war-plugin-t1166450.html#a4671522
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Help with mvn war - maven-war-plugin

Posted by Fneuch <fn...@gmail.com>.
Did you try placing your WEB-INF folder in src/main/webapp?

Regards,
Sylvain

On 2/21/06, Tatiana Escovedo <ta...@gmail.com> wrote:
>
> Hi,
>
> I´ve just started using Maven 2, and I´m trying to make a war of my
> project
> using
> mvn war:war.
>
> The following error occurs:
> Embedded error: Deployment descriptor:
> C:\{my-project-directory}\target\AulaNet3StartUp-0.0.1\WEB-INF\web.xmldoes
> not exist.
>
> I´ve searched for it in google and I found in
> http://docs.codehaus.org/display/MAVENUSER/FAQs-1 a suggestion to add this
> on my pom.xml:
>
> <build>
>    ...
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-war-plugin</artifactId>
>         <configuration>
>           <webXml><!-- path-to-your-webxml --></webXml>
>         </configuration>
>       </plugin>
>     </plugins>
> </build>
>
>
>
> I did that, but the error remains the same. Do you have any idea about how
> can I solve this problem?
>
> Thanks,
> Tatiana
>
>

Re: Help with mvn war - maven-war-plugin

Posted by "Henry S. Isidro" <hi...@exist.com>.
Tatiana Escovedo wrote:

>Hi,
>
>I´ve just started using Maven 2, and I´m trying to make a war of my project
>using
>mvn war:war.
>
>The following error occurs:
>Embedded error: Deployment descriptor:
>C:\{my-project-directory}\target\AulaNet3StartUp-0.0.1\WEB-INF\web.xml does
>not exist.
>
>I´ve searched for it in google and I found in
>http://docs.codehaus.org/display/MAVENUSER/FAQs-1 a suggestion to add this
>on my pom.xml:
>
><build>
>   ...
>    <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-war-plugin</artifactId>
>        <configuration>
>          <webXml><!-- path-to-your-webxml --></webXml>
>        </configuration>
>      </plugin>
>    </plugins>
></build>
>
>
>
>I did that, but the error remains the same. Do you have any idea about how
>can I solve this problem?
>
>Thanks,
>Tatiana
>
>  
>

Can you paste your actual pom.xml? That would help a lot.

- Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org