#maven #nexus3
#мавен #nexus3
Вопрос:
Я развертываю артефакт в репозитории Nexus, установленном на компьютере с Windows в той же подсети. Сервер nexus имеет операционную систему 3.29.2-02. maven показывает следующую информацию о версии:
% mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/maven/apache-maven-3.6.3
Java version: 15.0.2, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-15.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.7", arch: "x86_64", family: "mac"
Для каждого развертывания, которое я пытаюсь выполнить с помощью любого из моих 5 артефактов, я получаю сообщения, похожие на следующие:
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (default-deploy) on project home-parent: Failed to deploy artifacts: Could not transfer artifact ws.daley.home:home-parent:pom:0.0.1-20210216.155242-17 from/to pihome (http://lemon:8081/repository/pihome/): Transfer failed for http://lemon:8081/repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.155242-17.pom 400 Bad Request -> [Help 1]
Если я затем загружу ошибочный файл, я получу:
% curl -X GET http://lemon:8081/repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.155242-17.pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.0-M1</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>ws.daley.home</groupId>
<artifactId>home-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>home-parent</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>15</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>1.2.5</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://lemon:8081/repository/pihome/</nexusUrl>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>15</release>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>pihome</id>
<name>PiHome</name>
<url>http://lemon:8081/repository/pihome/</url>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<snapshotRepository>
<id>pihome</id>
<url>http://lemon:8081/repository/pihome/</url>
</snapshotRepository>
</distributionManagement>
</project>
<!-- <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId>
<version>5.7.1</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId> <version>5.7.1</version> </dependency>
<dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId>
<version>5.7.1</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId> <version>5.7.1</version>
</dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId>
<version>5.7.1</version> </dependency> <dependency> <groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId> <version>1.7.1</version>
</dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-console</artifactId>
<version>1.7.1</version> </dependency> <dependency> <groupId>org.junit.platform</groupId>
<artifactId>junit-platform-engine</artifactId> <version>1.7.1</version> </dependency>
<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-jfr</artifactId>
<version>1.7.1</version> </dependency> <dependency> <groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId> <version>1.7.1</version>
</dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-reporting</artifactId>
<version>1.7.1</version> </dependency> <dependency> <groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId> <version>1.7.1</version> </dependency>
<dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-suite-api</artifactId>
<version>1.7.1</version> </dependency> <dependency> <groupId>org.junit.platform</groupId>
<artifactId>junit-platform-testkit</artifactId> <version>1.7.1</version>
</dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId>
<version>5.7.1</version> </dependency> -->
Когда я просматриваю журнал Nexus, я вижу ошибку 400. Следующие вещи кажутся странными:
- Каждое развертывание на сервере Nexus завершается с ошибкой
- Я получаю только сбой для файла POM
- POM-файл действительно был сохранен надлежащим образом, что подтверждается как загрузкой файла, так и просмотром артефакта в веб-интерфейсе Nexus.
Есть ли решение для этой проблемы? Я знаю, что развертывание прошло успешно, но результирующая ошибка вызывает сбои maven, которые необходимо проверять каждый раз.
————————— Добавление 1 ———————— Вот фрагмент консоли из развертывания mvn -X. Я не вижу никаких признаков многократного развертывания
[INFO] --- nexus-staging-maven-plugin:1.6.8:deploy (default-deploy) @ home-parent ---
[DEBUG] Configuring mojo org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy from plugin realm ClassRealm[extension>org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@55054057]
[DEBUG] Configuring mojo 'org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy' with basic configurator -->
[DEBUG] (f) artifact = ws.daley.home:home-parent:pom:0.0.1-SNAPSHOT
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) autoDropAfterRelease = true
[DEBUG] (f) autoReleaseAfterClose = false
[DEBUG] (f) detectBuildFailures = true
[DEBUG] (f) mavenSession = org.apache.maven.execution.MavenSession@252a8aae
[DEBUG] (f) mojoExecution = org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy {execution: default-deploy}
[DEBUG] (f) nexusUrl = http://lemon:8081/repository/pihome/
[DEBUG] (f) offline = false
[DEBUG] (f) packaging = pom
[DEBUG] (f) pluginArtifactId = nexus-staging-maven-plugin
[DEBUG] (f) pluginGroupId = org.sonatype.plugins
[DEBUG] (f) pluginVersion = 1.6.8
[DEBUG] (f) pomFile = /Users/tim.daley/AixNPanes/HomeServer/home-parent/pom.xml
[DEBUG] (f) serverId = nexus
[DEBUG] (f) sslAllowAll = false
[DEBUG] (f) sslInsecure = false
[DEBUG] (f) stagingProgressPauseDurationSeconds = 3
[DEBUG] (f) stagingProgressTimeoutMinutes = 5
[DEBUG] -- end configuration --
[DEBUG] Parameters{pluginGav='org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8', deferredDirectoryRoot=/Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/deferred, stagingDirectoryRoot=/Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/staging, nexusUrl='http://lemon:8081/repository/pihome/', serverId='nexus', keepStagingRepositoryOnCloseRuleFailure=false, keepStagingRepositoryOnFailure=false, skipStagingRepositoryClose=false, autoReleaseAfterClose=false, autoDropAfterRelease=true, stagingProfileId='null', stagingRepositoryId='null', stagingActionMessages=org.sonatype.nexus.maven.staging.StagingActionMessages@f25f48a, tags=null, stagingProgressTimeoutMinutes=5, stagingProgressPauseDurationSeconds=3, sslInsecure=false, sslAllowAll=false}
[DEBUG] Parameters{pluginGav='org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8', deferredDirectoryRoot=/Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/deferred, stagingDirectoryRoot=/Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/staging, nexusUrl='http://lemon:8081/repository/pihome/', serverId='nexus', keepStagingRepositoryOnCloseRuleFailure=false, keepStagingRepositoryOnFailure=false, skipStagingRepositoryClose=false, autoReleaseAfterClose=false, autoDropAfterRelease=true, stagingProfileId='null', stagingRepositoryId='null', stagingActionMessages=org.sonatype.nexus.maven.staging.StagingActionMessages@f25f48a, tags=null, stagingProgressTimeoutMinutes=5, stagingProgressPauseDurationSeconds=3, sslInsecure=false, sslAllowAll=false}
[INFO] Performing deferred deploys (gathering into "/Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/deferred")...
[INFO] Installing /Users/tim.daley/AixNPanes/HomeServer/home-parent/pom.xml to /Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/deferred/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom
[DEBUG] Installing ws.daley.home:home-parent:0.0.1-SNAPSHOT/maven-metadata.xml to /Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/deferred/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata-nexus.xml
[DEBUG] Installing ws.daley.home:home-parent/maven-metadata.xml to /Users/tim.daley/AixNPanes/HomeServer/home-parent/target/nexus-staging/deferred/ws/daley/home/home-parent/maven-metadata-nexus.xml
[INFO] Deploying remotely...
[INFO] Bulk deploying locally gathered artifacts from directory:
[INFO] * Bulk deploying locally gathered snapshot artifacts
[DEBUG] Using transporter WagonTransporter with priority -1.0 for http://lemon:8081/repository/pihome/
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://lemon:8081/repository/pihome/ with username=admin, password=***
Downloading from pihome: http://lemon:8081/repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml
Downloaded from pihome: http://lemon:8081/repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml (603 B at 46 kB/s)
[DEBUG] Writing tracking file /Users/tim.daley/.m2/repository/ws/daley/home/home-parent/0.0.1-SNAPSHOT/resolver-status.properties
Uploading to pihome: http://lemon:8081/repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.766 s
[INFO] Finished at: 2021-02-16T15:52:07-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (default-deploy) on project home-parent: Failed to deploy artifacts: Could not transfer artifact ws.daley.home:home-parent:pom:0.0.1-20210216.205205-19 from/to pihome (http://lemon:8081/repository/pihome/): Transfer failed for http://lemon:8081/repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom 400 Bad Request -> [Help 1]
Вот журнал Nexus для действия:
10.0.0.113 - admin [16/Feb/2021:12:51:48 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml HTTP/1.1" 201 284 0 62 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:51:48 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml.sha1 HTTP/1.1" 201 40 0 110 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-860]
10.0.0.113 - admin [16/Feb/2021:12:51:48 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml.md5 HTTP/1.1" 201 32 0 62 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - - [16/Feb/2021:12:51:48 -0800] "GET /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml HTTP/1.1" 200 - 603 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-860]
10.0.0.113 - - [16/Feb/2021:12:51:48 -0800] "GET /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 200 - 40 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:51:48 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205149-18.pom HTTP/1.1" 400 6784 0 15 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-860]
10.0.0.113 - - [16/Feb/2021:12:52:03 -0800] "GET /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml HTTP/1.1" 200 - 603 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - - [16/Feb/2021:12:52:03 -0800] "GET /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 200 - 40 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:52:03 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom HTTP/1.1" 201 6784 0 31 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - admin [16/Feb/2021:12:52:03 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom.sha1 HTTP/1.1" 201 40 0 31 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:52:03 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom.md5 HTTP/1.1" 201 32 0 16 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - admin [16/Feb/2021:12:52:03 -0800] "GET /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml HTTP/1.1" 200 - 284 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:52:03 -0800] "GET /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml.sha1 HTTP/1.1" 200 - 40 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - admin [16/Feb/2021:12:52:04 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml HTTP/1.1" 201 603 0 1204 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:52:04 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 201 40 0 78 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - admin [16/Feb/2021:12:52:05 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml.md5 HTTP/1.1" 201 32 0 157 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:52:05 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml HTTP/1.1" 201 284 0 140 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - admin [16/Feb/2021:12:52:05 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml.sha1 HTTP/1.1" 201 40 0 78 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - admin [16/Feb/2021:12:52:05 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/maven-metadata.xml.md5 HTTP/1.1" 201 32 0 47 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - - [16/Feb/2021:12:52:05 -0800] "GET /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml HTTP/1.1" 200 - 603 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - - [16/Feb/2021:12:52:05 -0800] "GET /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 200 - 40 0 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-893]
10.0.0.113 - admin [16/Feb/2021:12:52:05 -0800] "PUT /repository/pihome/ws/daley/home/home-parent/0.0.1-SNAPSHOT/home-parent-0.0.1-20210216.205205-19.pom HTTP/1.1" 400 6784 0 15 "Apache-Maven/3.6.3 (Java 15.0.2; Mac OS X 10.15.7)" [qtp1126578142-864]
10.0.0.113 - - [16/Feb/2021:12:52:08 -0800] "POST /service/extdirect/poll/rapture_State_get HTTP/1.1" 200 1138 77 0 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" [qtp1126578142-894]
10.0.0.113 - - [16/Feb/2021:12:53:09 -0800] "POST /service/extdirect/poll/rapture_State_get HTTP/1.1" 200 1138 77 16 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" [qtp1126578142-865]
10.0.0.113 - - [16/Feb/2021:12:54:10 -0800] "POST /service/extdirect/poll/rapture_State_get HTTP/1.1" 200 1138 77 0 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" [qtp1126578142-891]
10.0.0.113 - - [16/Feb/2021:12:55:11 -0800] "POST /service/extdirect/poll/rapture_State_get HTTP/1.1" 200 1138 77 0 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36" [qtp1126578142-891]
Итак, похоже, что Maven выполняет 2 puts. Похоже на проблему maven. Вот раздел этого pom.xml это, я думаю, охватывает развертывание:
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://lemon:8081/repository/pihome/</nexusUrl>
</configuration>
</plugin>
Так что, похоже, это может быть проблема с nexus-staging-maven-plugin.
Комментарии:
1. Для меня это выглядит так, как будто процесс (по какой-то причине) пытается развернуть POM дважды.
2. Я думаю, вы правы. См. Приложение 1 выше. Я предполагаю, что это проблема с nexus-staging-maven-plugin. Предложения?
3. Я также заметил, что идентификатор репозитория был неправильным в определении <repository> (это был Nexus) и в определении <snapshotRepository> (это был PiHome). Мой settings.xml имеет pihome. Их изменение ничего не изменило.