Sonatype Nexus - Open Source Edition
- Apache Maven 3.0.4+
- Java 7+
- Groovy 1.7+ (for advanced usage only)
The run Nexus, after building, unzip the assembly and start the server:
unzip -d target assemblies/nexus-base-template/target/nexus-base-template-*.zip
./target/nexus-base-template-*/bin/nexus console
The nexus-base-template
assembly is used as the basis for the official Sonatype Nexus distributions.
Some examples may require Groovy 1.7+
The plugins and testsuite modules can be skipped:
mvn -Dskip-plugins
and:
mvn -Dskip-testsuite
Check for violations:
mvn -Plicense-check -N
Apply header format:
mvn -Plicense-format -N
Normalize line-endings (to UNIX LF style), from project root directory:
groovy ./buildsupport/scripts/fixcrlf.groovy
Same with extra configuration ( -D must be before script ):
groovy -Dfixlast=true ./buildsupport/scripts/fixcrlf.groovy
To run custom testsuite shards, here runs all p2 tests in the legacy testsuite:
mvn -pl testsuite/legacy-testsuite/pom.xml clean install \
-Pit,testsuite-gencustom,testsuite-runcustom \
-Dautoshard.includes='**/p2/**/*IT.java'
or run all capabilities tests in modern testsuite:
mvn -pl testsuite/modern-testsuite/pom.xml clean install \
-Pit,testsuite-gencustom,testsuite-runcustom \
-Dautoshard.includes='**/capabilities/**/*IT.java'