-
Notifications
You must be signed in to change notification settings - Fork 10
WorkshopMaven
Sebastian Schlicht edited this page Mar 7, 2014
·
5 revisions
https://github.com/sebschlicht/mvn-workshop
$ mvn archetype:generate -DgroupId=de.uniko.mc-ws -DartifactId=mvn-shell -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
<dependency>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<url>http://127.0.0.1:8080/manager/text</url>
<server>tomcat</server>
<path>/mvn-workshop</path>
</configuration>
</plugin>
<repository>
<id>metalcon-repo</id>
<uniqueVersion>false</uniqueVersion>
<name>Metalcon Repository</name>
<url>scp://metalcon2.physik.uni-mainz.de/metalcon-mvn/</url>
<layout>default</layout>
</repository>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
</extension>
<repository>
<id>metalcon-repo</id>
<url>scp://metalcon2.physik.uni-mainz.de/metalcon-mvn/</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
<server>
<id>mvn</id>
<username>...</username>
<password>...</password>
</server>
$ mvn tomcat:deploy
<settingsSecurity>
<master>{...}</master>
</settingsSecurity>
$ mvn --encrypt-master-password <master-pw>
<server>
<id>metalcon-repo</id>
<username>metalcon</username>
<password>{...}</password>
</server>
$ mvn --encrypt-password <pw>
$ mvn deploy