镜像
https://hub.docker.com/r/sonatype/nexus3
安装
1 2 3 4 5 6 7 8 9 10 11
| mkdir -p /dubhe/nexus-data && chown -R 200 /dubhe/nexus-data docker run -d -p 8081:8081 --name nexus -v /dubhe/nexus-data:/nexus-data sonatype/nexus3 docker run -d --network host --name nexus -v /dubhe/nexus-data:/nexus-data sonatype/nexus3
docker stop --time=120 nexus
http://10.193.36.33:8081/ admin/yourpass
|
pom.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.6.0</version> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> <dependency> <groupId>com.sun</groupId> <artifactId>jconsole</artifactId> <version>1.6.0</version> <scope>system</scope> <systemPath>${java.home}/../lib/jconsole.jar</systemPath> </dependency>
<distributionManagement> <repository> <id>releases</id> <name>Internal Releases</name> <url>http://10.193.36.33:8081/repository/maven-releases/</url> </repository> <snapshotRepository> <id>releases</id> <name>Internal Releases</name> <url>http://10.193.36.33:8081/repository/maven-snapshots/</url> </snapshotRepository> </distributionManagement>
|
settings.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> <server> <id>releases</id> <username>admin</username> <password>yourpass</password> </server> </servers> <mirrors>
<mirror> <id>aliyun-central</id> <mirrorOf>central</mirrorOf> <name>aliyun-central</name> <url>https://maven.aliyun.com/repository/central</url> </mirror> <mirror> <id>aliyun-jcenter</id> <mirrorOf>jcenter,public</mirrorOf> <name>aliyun-jcenter</name> <url>https://maven.aliyun.com/repository/public</url> </mirror> <mirror> <id>aliyun-google</id> <mirrorOf>google</mirrorOf> <name>aliyun-google</name> <url>https://maven.aliyun.com/repository/google</url> </mirror> <mirror> <id>aliyun-spring</id> <mirrorOf>spring</mirrorOf> <name>aliyun-spring</name> <url>https://maven.aliyun.com/repository/spring</url> </mirror> <mirror> <id>aliyun-spring-plugin</id> <mirrorOf>spring-plugin</mirrorOf> <name>aliyun-spring-plugin</name> <url>https://maven.aliyun.com/repository/spring-plugin</url> </mirror> </mirrors> </settings>
|
build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| mvn -Dmaven.test.skip=true clean install
mvn clean package -U -pl efpx-register mvn clean package -U -pl efpx-gateway mvn clean package -U -pl efpx-auth mvn clean package -U -pl efpx-upms/efpx-upms-biz mvn clean package -U -pl dubhe-metadata/dubhe-metadata-biz mvn clean package -U -pl dubhe-scheduler/dubhe-scheduler-biz mvn clean package -U -pl dubhe-data-integration mvn clean package -U -pl dubhe-alert/dubhe-alert-biz mvn clean package -U -pl dubhe-api-generation mvn clean package -U -pl dubhe-quality/dubhe-quality-biz mvn clean package -U -pl dubhe-encryption/dubhe-encryption-biz mvn clean package -U -pl dubhe-executor/dubhe-executor-biz mvn clean package -U -pl efpx-visual/efpx-monitor
|