java - mvn tomcat:run doesn't start Tomcat -


I am trying to install and run my webpage using Maven and its Tomcat plugin.

I have set up this project in pom.xml, but when I call it from the command line:

  mvn tomcat: run  < / Pre> 

Whatever I get is:

  [root @ ovz6022 trunk] #mvn-a tomcat: run + error stackets are on [INFO] Scanning for projects. .. [INFO] -------------------------------------------------- --------------------------- [INFO] Building - com.gotbrains.breeze: Wind: Jar: 1.0 [INFO] Work-Segment: [Tomcat: run] [INFO] ------------------------------------------ ------------------------------ [INFO] Preparation of biscuits: [ INFO] [run resources]: Resources {execution: default-processing}] [Warning] Use platform encoding (actually UTF-8) to copy the filtered resources, i.e. Build-Based Platform! [INFO] Directory / Root / Trunk / src / main / resource [INFO] [compiler: compile: execution: default-compilation]] [INFO] Nothing to compile - all classes except date [INFO] ] [Tomcat: run {execution: default-cli}] [INFO] Skip non-war project [INFO] ------------------------- ---- ------------------------------------------- [INFO] Successfully prepared [INFO]] -------------------------------------------- ----- ----------------------- [INFO] Total time: 24 seconds [INFO] Expired: Thursday 23 July 14:34: 31 MDT 2009 [INFO] Final Memory: 7M / 14m [INFO] ----------------------------------------- --- ----------------------------  

And that's everything Tomcat has not started But I have not shown any error here.

Does anyone know what is happening?

The clue is in line:

  [INFO] non-war Leave the project  

Tomcat: The goal of the goal is to work with war projects, I am feeling that your jar is a project.

You need to change the packaging of your project for the war, you may actually need to provide some additional configuration for the war.

Note: I advise to prepare a separate war project, then joining the jar as a dependency for the war.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -