diff options
| author | lijinyang <[email protected]> | 2024-08-20 10:40:51 +0800 |
|---|---|---|
| committer | lijinyang <[email protected]> | 2024-08-20 10:40:51 +0800 |
| commit | 91864926aa9d34137754bbadcefe1a7452b752e9 (patch) | |
| tree | dfb7938fd5ee06a3075788eab9b406f20603b0db | |
| parent | b43e6733e5c617d2018ba51d9eccef9e64c9619b (diff) | |
| -rw-r--r-- | pom.xml | 64 |
1 files changed, 35 insertions, 29 deletions
@@ -18,27 +18,32 @@ <properties> <docker.build>192.168.40.153</docker.build> <docker.build.port>2375</docker.build.port> - <!--docker-registry地址--> <docker.registry>192.168.40.153</docker.registry> - <!--docker-registry的端口--> - <docker.registry.port>9080</docker.registry.port> - <docker.image.prefix>tsg/galaxy</docker.image.prefix> + <docker.registry.port>8082</docker.registry.port> + <docker.image.prefix>tsg/olap</docker.image.prefix> <project.password>Geedge2020!</project.password> </properties> <!-- 设置 jitpack.io 仓库 --> <repositories> <repository> - <id>nexus</id> + <id>nexus3</id> <name>Team Nexus Repository</name> - <url>http://192.168.40.153:8099/content/groups/public</url> + <url>http://192.168.40.153:8081/repository/public/</url> + </repository> + <repository> + <id>jitpack.io</id> + <url>https://jitpack.io</url> </repository> </repositories> - <pluginRepositories> <pluginRepository> - <id>nexus</id> + <id>nexus3</id> <name>Team Nexus Repository</name> - <url>http://192.168.40.153:8099/content/groups/public</url> + <url>http://192.168.40.153:8081/repository/public/</url> + </pluginRepository> + <pluginRepository> + <id>jitpack.io</id> + <url>https://jitpack.io</url> </pluginRepository> </pluginRepositories> @@ -313,13 +318,15 @@ <goal>build</goal> </goals> <phase>package</phase> + <!--<phase>install</phase>--> <configuration> - <!-- 配置加密密码 ,推荐使用命令指定 --> <password>${project.password}</password> - <!-- 配置不加密项 --> <excludes> <exclude> - static/** + META-INF/resources/** + </exclude> + <exclude> + resources/** </exclude> </excludes> </configuration> @@ -331,28 +338,22 @@ <artifactId>docker-maven-plugin</artifactId> <version>1.0.0</version> <configuration> - <serverId>153-docker-repo</serverId> + <serverId>153-nexus-docker-repo</serverId> <registryUrl>${docker.registry}:${docker.registry.port}</registryUrl> - <!--是否向镜像registry(harbor)中推送镜像,如果为false则需要在mvn命令时添加-DpushImage参数--> <pushImage>true</pushImage> - - <imageName>${docker.registry}:${docker.registry.port}/${docker.image.prefix}/${project.artifactId}</imageName> <forceTags>true</forceTags> - - <imageTags> - <imageTag>22.12.07</imageTag> - </imageTags> - <!--远程docker构建,供dockerfile使用--> - <dockerHost>http://192.168.40.153:2375</dockerHost> + <imageName>${docker.registry}:${docker.registry.port}/${docker.image.prefix}/${project.artifactId} + </imageName> + <dockerHost>http://${docker.build}:${docker.build.port}</dockerHost> <dockerDirectory>docker</dockerDirectory> <buildArgs> - <JDK_IMAGE>192.168.40.153:9080/common/amazon-corretto:11.0.21.9.1-alpine3.18</JDK_IMAGE> - <GO_IMAGE>192.168.40.153:9080/common/golang:1.15.6</GO_IMAGE> + <JDK_IMAGE>${docker.registry}:${docker.registry.port}/common/amazon-corretto:11.0.21.9.1-alpine3.18</JDK_IMAGE> + <GO_IMAGE>${docker.registry}:${docker.registry.port}/common/golang:1.15.6</GO_IMAGE> <JAR_FILE>${project.build.finalName}.xjar</JAR_FILE> </buildArgs> - - - <!--将构建jar拷贝到/target/docker 目录下与dockerfile一起--> + <imageTags> + <imageTag>22.12.07</imageTag> + </imageTags> <resources> <resource> <targetPath>/</targetPath> @@ -360,14 +361,19 @@ <include>${project.build.finalName}.xjar</include> <include>xjar.go</include> </resource> - <resource> <targetPath>/config</targetPath> <directory>config</directory> </resource> </resources> - </configuration> + <dependencies> + <dependency> + <groupId>javax.activation</groupId> + <artifactId>activation</artifactId> + <version>1.1.1</version> + </dependency> + </dependencies> </plugin> <plugin> <groupId>org.jacoco</groupId> |
