无法从nexus下载JAR 我有一个项目A,它是项目B的依赖项。因为项目B应该得到项目A的最新jar版本。我从本地清除项目A jar,这样项目B将从nexus获得项目A jar,因为它已从本地删除。 我可以在日志中看到它可以从nexus下载jar。但仍然没有为罐子获得pom 下面是日志 下载地址://10.245.240.43:8081/nexus/repository/maven snapshots/com/sgl/smartpra/master/model/smartpra master model/0.0.1-SNAPSHOT/smartpra-master-model-0.0.1-20191126.094645-53.jar [信息]下载自://10.245.240.43:8081/nexus/repository/maven snapshots/com/sgl/smartpra/master/model/smartpra master model/0.0.1-SNAPSHOT/smartpra-master-model-0.0.1-20191126.094645-53.jar(183 kB,1.7 MB/s) com.sgl.smartpra.master.model:smartpra master model:jar:0.0.1-20191126.094645-53的POM丢失,没有可用的依赖项信息 您可以看到,它可以从nexus中提取仍然丢失工件的罐子。 我从本地将maven插件添加到依赖perge的jar中,因此它将从nexus中获取最新的jar 请参阅下面的代码片段 org.apache.maven.plugins maven依赖插件 3.1.1 清除本地依赖项 过程源 清除本地存储库 smartpra.global.master.model:smartpra全局主模型 smartpra.batch.global.model:smartpra批处理全局模型 smartpra.master.model:smartpra主模型 smartpra.exception.txn.model:smartpra exception txn model
下面是用于从nexus下载JAR的nexus存储库配置 请检查下面的代码 请参阅下面的代码片段 我有一个项目A,它是项目B的依赖项。因为项目B应该得到项目A的最新jar版本。我从本地清除项目A jar,这样项目B将从nexus获得项目A jar,因为它已从本地删除无法从nexus下载JAR 我有一个项目A,它是项目B的依赖项。因为项目B应该得到项目A的最新jar版本。我从本地清除项目A jar,这样项目B将从nexus获得项目A jar,因为它已从本地删除。 我可以在日志中看到它可以从nexus下载jar。但仍然没有为罐子获得pom 下面是日志 下载地址://10.245.240.43:8081/nexus/repository/maven snapshots/com/sgl/smartpra/master/model/smartpra master model/0.0.1-SNAPSHOT/smartpra-master-model-0.0.1-20191126.094645-53.jar [信息]下载自://10.245.240.43:8081/nexus/repository/maven snapshots/com/sgl/smartpra/master/model/smartpra master model/0.0.1-SNAPSHOT/smartpra-master-model-0.0.1-20191126.094645-53.jar(183 kB,1.7 MB/s) com.sgl.smartpra.master.model:smartpra master model:jar:0.0.1-20191126.094645-53的POM丢失,没有可用的依赖项信息 您可以看到,它可以从nexus中提取仍然丢失工件的罐子。 我从本地将maven插件添加到依赖perge的jar中,因此它将从nexus中获取最新的jar 请参阅下面的代码片段 org.apache.maven.plugins maven依赖插件 3.1.1 清除本地依赖项 过程源 清除本地存储库 smartpra.global.master.model:smartpra全局主模型 smartpra.batch.global.model:smartpra批处理全局模型 smartpra.master.model:smartpra主模型 smartpra.exception.txn.model:smartpra exception txn model,maven,dependencies,settings,pom.xml,nexus,Maven,Dependencies,Settings,Pom.xml,Nexus,下面是用于从nexus下载JAR的nexus存储库配置 请检查下面的代码 请参阅下面的代码片段 我有一个项目A,它是项目B的依赖项。因为项目B应该得到项目A的最新jar版本。我从本地清除项目A jar,这样项目B将从nexus获得项目A jar,因为它已从本地删除 I have project A which is dependency of project B. Since project B should get latest jar version of Project A . I pur
I have project A which is dependency of project B. Since project B should get latest jar version of Project A . I purge Project A jar from local so Project B will get Project A jar from nexus since it has been deleted from local.
I can see in the logs that It can download jar from nexus . but still getting pom for jar is missing
below are the logs
Downloading from : ://10.245.240.43:8081/nexus/repository/maven-snapshots/com/sgl/smartpra/master/model/smartpra-master-model/0.0.1-SNAPSHOT/smartpra-master-model-0.0.1-20191126.094645-53.jar
[INFO] Downloaded from : ://10.245.240.43:8081/nexus/repository/maven-snapshots/com/sgl/smartpra/master/model/smartpra-master-model/0.0.1-SNAPSHOT/smartpra-master-model-0.0.1-20191126.094645-53.jar (183 kB at 1.7 MB/s)
The POM for com.sgl.smartpra.master.model:smartpra-master-model:jar:0.0.1-20191126.094645-53 is missing, no dependency information available
You can see that it can able to pull jars from nexus still getting artifact missing.
I added maven plugin to perge dependent jars from local so it will pull latest jar from nexus
refer Below snippet
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>purge-local-dependencies</id>
<phase>process-sources</phase>
<goals>
<goal>purge-local-repository</goal>
</goals>
<configuration>
<includes>
<include>com.sgl.smartpra.global.master.model:smartpra-global-master-model</include>
<include>com.sgl.smartpra.batch.global.model:smartpra-batch-global-model</include>
<include>com.sgl.smartpra.master.model:smartpra-master-model</include>
<include>com.sgl.smartpra.exception.txn.model:smartpra-exception-txn-model</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
马文集团
**强文本**/10.245.240.43:8081/nexus/repository/maven group/
真的
真的
粘贴pom.XML的内容会有所帮助。@pmverma我添加了pom.XML。为什么要使用强文本而不是http
<repositories>
<repository>
<id>maven-group</id>
<url>**strong text**/10.245.240.43:8081/nexus/repository/maven-group/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>