Maven is a project management, automated build and deployment tool.
Build steps:
1. Java 6 or later, Maven 3.0.2
2. Add your custom repository to settings.xml under MAVEN_HOME/conf or .m2.
<profile>
<id>my-repository</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<!-- list of standard repository -->
<repositories>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<id>maven1-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/1</url>
</repository>
</repositories>
</profile>
Another way is to add the repository to the project's POM.
1. Build and deploy
mvn clean package tomcat:run
2、访问 http://localhost:8080/LiveRestaurant/OrderService.wsdl
How to import a Maven project into Eclipse:
Go to the project root directory and execute the following commands:
mvn eclipse:eclipse -Declipse.projectNameTemplate="LiveRestaurant_R-1.1"
After that, you can import this Maven project as an Eclipse project.
If Maven cannot find a JAR file, you can use your custom repository:
mvn -P my-repository clean package tomcat:run
mvn clean package will install the required components into the local repository and create a WAR/JAR file for the project.
mvn tomcat:run
mvn jetty:run
Does anyone have the source code of the book Spring Web Services 2 Cookbook