Let's head over to the pom.xml and add this plugin: This will create a complete web application in the directory tomcat-war-deployment, which will print hello world! if we deploy it now and access it via the browser.īut before we do that, we need to make one change to enable Maven deployment. DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false We'll run this command on the console to create a new Java web application: mvn archetype:generate -DgroupId=com.baeldung -DartifactId=tomcat-war-deployment Let's navigate to where we would like to create the application. Now we'll need to create a basic web application from Maven to test the deployment. Once we have found it, we'll add Tomcat: There are two locations where the settings.xml file may be found:
0 Comments
Leave a Reply. |