Maven
- Version: apache-maven-2.2.1
- official web site: http://maven.apache.org/
- Download Page: http://maven.apache.org/download.html
- Note: I strongly recommend that you use maven 2 rather than maven 3; maven 3 is not yet stable enough when I write this document.
Now open the "MAVEN_HOME\conf\setting.xml" and make some changes to make the Nexus take effective in maven.
- <mirror>
- <id>nexus</id>
- <mirrorOf>*</mirrorOf>
- <url>http://localhost:8080/nexus/</url>
- </mirror>
- <profile>
- <id>sonar</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <!-- EXAMPLE FOR MYSQL -->
- <sonar.jdbc.url>
- jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
- </sonar.jdbc.url>
- <sonar.jdbc.driverClassName>com.mysql.jdbc.Driver</sonar.jdbc.driverClassName>
- <sonar.jdbc.username>sonar</sonar.jdbc.username>
- <sonar.jdbc.password>sonar</sonar.jdbc.password>
- <!-- optional URL to server. Default value is http://localhost:9000 -->
- <sonar.host.url>
- http://localhost:8080/sonar
- </sonar.host.url>
- </properties>
- </profile>
- <activeProfiles>
- <activeProfile>sonar</activeProfile>
- </activeProfiles