2

I have ready application that works and is connected to the mysql . I run it by the command

mvn -P cargo.run

The problem is that every time there is rebuild from zero. Can I run application without building it again? Something like

tomcat.dir/bin/startup.sh

I found these command in the

target/cargo/installs/apache-tomcat-7.0.54/apache-tomcat7.0.54/bin/startup.sh 

but does not work properly (another port , lack of access , lack of application after running )

I tried to run the .war files to an external tomcat but has no connection to mysql database

4

1 回答 1

1

货物配置文件不应触发完整构建。它确实重新部署了工件。如果您执行“mvn clean”,然后执行“mvn -P cargo.run”,它将失败。应该发生的只是tomcat启动。

当然支持部署到外部 tomcat(http://www.onehippo.org/library/deployment/create-and-deploy-a-project-distribution.html)。不过,您将需要进行一些配置。

于 2015-06-25T11:27:39.497 回答