Sample Maven2 settings.xml

From UFP-UV Sakai Wiki

Jump to: navigation, search
<settings>
 
	<!-- PROFILES -->
	<profiles>
		<profile>
			<id>testskip</id>
			<properties>
				<maven.test.skip>true</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>offline</id>
			<repositories>
				<repository>
					<id>local-repository</id>
					<url>file:///home/tomcat/.m2/repository</url>
				</repository>
			</repositories>
		</profile>
		<profile>
			<id>trunk</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/trunk/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>framework-trunk</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/framework-trunk/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>30m1</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/3-0M1/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>27x</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/2-7-x/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>26x</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/2-6-x/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>25x</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/2-5-x/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>240</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/2-4-0/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>cafe</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/cafe-26x/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>cafe-26x</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/cafe-26x/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
			</properties>
		</profile>
		<profile>
			<id>cafe-trunk</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/cafe-trunk/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
				<!--<yuicompressor.additional.excludes>**/**</yuicompressor.additional.excludes>-->
				</properties>
		</profile>
		<profile>
			<id>cafe-27x</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-tomcat/cafe-27x/</maven.tomcat.home>
				<maven.test.skip>false</maven.test.skip>
				<!--<yuicompressor.additional.excludes>**/**</yuicompressor.additional.excludes>-->
				</properties>
		</profile>
		<profile>
			<id>ppa</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-build/full-builds/pre-production-a/</maven.tomcat.home>
			</properties>
		</profile>
		<profile>
			<id>ppb</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-build/full-builds/pre-production-b/</maven.tomcat.home>
			</properties>
		</profile>
		<profile>
			<id>ppc</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-build/full-builds/pre-production-c/</maven.tomcat.home>
			</properties>
		</profile>
		<profile>
			<id>ppag</id>
			<properties>
				<maven.tomcat.home>/servicos/sakai-build/full-builds/pre-production-agora/</maven.tomcat.home>
			</properties>
		</profile>
		<profile>
			<id>setup-signing-parameters</id>
			<properties>
				<keystore>/servicos/keystore/keystore.sig</keystore>
				<keystore.alias>sig</keystore.alias>
				<keystore.password>cas-sig-pwd</keystore.password>
			</properties>
		</profile>
		<profile>
			<id>sonar</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<!-- EXAMPLE FOR MYSQL -->
				<sonar.jdbc.url>jdbc:derby://localhost:1527/sonar</sonar.jdbc.url>
				<sonar.jdbc.driver>org.apache.derby.jdbc.ClientDriver</sonar.jdbc.driver>
				<sonar.jdbc.username>sonar</sonar.jdbc.username>
				<sonar.jdbc.password>sonar</sonar.jdbc.password>
				<!-- SERVER ON A REMOTE HOST -->
				<!--<sonar.host.url>http://myserver:1234</sonar.host.url>-->
				</properties>
		</profile>
	</profiles>
 
	<!-- PROXY -->
	<proxies>
		<proxy>
			<id>proxy</id>
			<active>true</active>
			<protocol>http</protocol>
			<username></username>
			<password></password>
			<host>proxy.ufp.pt</host>
			<port>8080</port>
			<nonProxyHosts>localhost|*.ufp.pt|*.ufp.edu.pt</nonProxyHosts>
		</proxy>
	</proxies>
 
	<!-- SERVERS -->
	<servers>
		<server>
			<id>sakai-maven2-scp</id>
			<username>nfernandes</username>
			<privateKey>/home/tomcat/.ssh/id_rsa_sakai</privateKey>
			<passphrase>s*********i</passphrase>
			<directoryPermissions>775</directoryPermissions>
			<filePermissions>644</filePermissions>
		</server>
		<server>
			<id>sakai-maven-snapshots-scp</id>
			<username>nfernandes</username>
			<privateKey>/home/tomcat/.ssh/id_rsa_sakai</privateKey>
			<passphrase>s*********i</passphrase>
			<directoryPermissions>775</directoryPermissions>
			<filePermissions>644</filePermissions>
		</server>
		<server>
			<id>sakai-site</id>
			<username>nfernandes</username>
			<privateKey>/home/tomcat/.ssh/id_rsa_sakai</privateKey>
			<passphrase>s*********i</passphrase>
		</server>
	</servers>
 
</settings>
Personal tools