在 Eclipse 中使用 Maven 进行部署
Deploy with Maven Inside Eclipse
我正在尝试在 eclipse 版本中使用 maven 进行部署:2021-06 (4.20.0)
Build id:20210612-2011 在升级 Eclipse 之后,CodeMix 破坏了我之前的 eclipse 安装(whihc 有效)。我可以从命令行成功部署,并且我已将 Eclipse 设置为读取我的设置文件:
[DEBUG] Reading global settings from C:\Users\neilb\.m2\settings.xml
[DEBUG] Reading user settings from C:\Users\neilb\.m2\settings.xml
pom 指向正确的存储库并且设置中的详细信息是正确的,我们知道这一点,因为它部署在控制台中。但是,当我尝试在 Eclipse 中部署时,我得到一个 401:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator -->
[DEBUG] (f) artifact = com.ziath.datapaq:scanner:jar:1.5.29
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (s) localRepository = id: local
url: file:///C:/Users/neilb/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
blocked: false
[DEBUG] (f) offline = false
[DEBUG] (f) packaging = jar
[DEBUG] (f) pomFile = C:\Users\neilb\Documents\GitHub\scanner\pom.xml
[DEBUG] (f) project = MavenProject: com.ziath.datapaq:scanner:1.5.29 @ C:\Users\neilb\Documents\GitHub\scanner\pom.xml
[DEBUG] (f) retryFailedDeploymentCount = 1
[DEBUG] (f) skip = false
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[DEBUG] Using connector AetherRepositoryConnector with priority 100.0 for http://10.9.8.246:8081/repository/lib-releases/ with username=admin, password=***
[INFO] Uploading to : http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.pom
[INFO] Uploading to : http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.jar
[INFO] Uploaded to : http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.pom (10 kB at 92 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
异常情况如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project scanner: Failed to deploy artifacts: Could not transfer artifact com.ziath.datapaq:scanner:jar:1.5.29 from/to releases (http://10.9.8.246:8081/repository/lib-releases/): Access denied to http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.jar. Error code 401, Unauthorized -> [Help 1]
是否有人知道需要更改哪些内容才能使 Eclipse 版本 2021-06 的部署正常工作?
干杯,
尼尔
这是一个已知错误:
https://github.com/eclipse-m2e/m2e-core/issues/250
那里列出了解决方法;所以对把问题降级的人来说 - ya boo 糟透了!
我正在尝试在 eclipse 版本中使用 maven 进行部署:2021-06 (4.20.0) Build id:20210612-2011 在升级 Eclipse 之后,CodeMix 破坏了我之前的 eclipse 安装(whihc 有效)。我可以从命令行成功部署,并且我已将 Eclipse 设置为读取我的设置文件:
[DEBUG] Reading global settings from C:\Users\neilb\.m2\settings.xml
[DEBUG] Reading user settings from C:\Users\neilb\.m2\settings.xml
pom 指向正确的存储库并且设置中的详细信息是正确的,我们知道这一点,因为它部署在控制台中。但是,当我尝试在 Eclipse 中部署时,我得到一个 401:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator -->
[DEBUG] (f) artifact = com.ziath.datapaq:scanner:jar:1.5.29
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (s) localRepository = id: local
url: file:///C:/Users/neilb/.m2/repository/
layout: default
snapshots: [enabled => true, update => always]
releases: [enabled => true, update => always]
blocked: false
[DEBUG] (f) offline = false
[DEBUG] (f) packaging = jar
[DEBUG] (f) pomFile = C:\Users\neilb\Documents\GitHub\scanner\pom.xml
[DEBUG] (f) project = MavenProject: com.ziath.datapaq:scanner:1.5.29 @ C:\Users\neilb\Documents\GitHub\scanner\pom.xml
[DEBUG] (f) retryFailedDeploymentCount = 1
[DEBUG] (f) skip = false
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[DEBUG] Using connector AetherRepositoryConnector with priority 100.0 for http://10.9.8.246:8081/repository/lib-releases/ with username=admin, password=***
[INFO] Uploading to : http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.pom
[INFO] Uploading to : http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.jar
[INFO] Uploaded to : http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.pom (10 kB at 92 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
异常情况如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project scanner: Failed to deploy artifacts: Could not transfer artifact com.ziath.datapaq:scanner:jar:1.5.29 from/to releases (http://10.9.8.246:8081/repository/lib-releases/): Access denied to http://10.9.8.246:8081/repository/lib-releases/com/ziath/datapaq/scanner/1.5.29/scanner-1.5.29.jar. Error code 401, Unauthorized -> [Help 1]
是否有人知道需要更改哪些内容才能使 Eclipse 版本 2021-06 的部署正常工作?
干杯,
尼尔
这是一个已知错误:
https://github.com/eclipse-m2e/m2e-core/issues/250
那里列出了解决方法;所以对把问题降级的人来说 - ya boo 糟透了!