Technical note
Nexus部署
镜像
https://hub.docker.com/r/sonatype/nexus3
安装
# 启动
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
<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
<?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>nexus-aliyun</id>
<mirrorOf>*,!jitpack.io,!elasticsearch-releases,!dtstack-github,!nexus-public,!elastic.co</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror> -->
<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
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