What determines the "military" of my project?

I run the target: tomcat:deploy . There are no errors, but it does not deploy my project to tomcat. I noticed this message:

 [INFO] Skipping non-war project 

What defines the β€œwar” of my project? How to make an Eclipse project a military project?

Here is my plugin parameter:

  <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> </plugin> 

I have a structure like this:

 src > main > java src > main > webapp > WEB-INF > web.xml 

This works with maven:war plugin . I can build a war with this structure.

My goal is to end part of building a war and be able to deploy my project on tomcat with a single maven command.

+4
source share
1 answer

You may be missing the packaging element in pom.xml :

  <packaging>war</packaging> 

If you have not added it, the default is jar.

+9
source

All Articles