简体   繁体   English

在 lib 中找不到工件 com.cache:mycache:jar:1.0-SNAPSHOT

[英]Could not find artifact com.cache:mycache:jar:1.0-SNAPSHOT in lib

Added in pom.xml在 pom.xml 中添加

  <repository>
    <id>lib</id>
    <name>lib</name>
    <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>        
        <checksumPolicy>ignore</checksumPolicy>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
    <url>file://${project.basedir}/libs</url>
   </repository>

added dependecnies添加依赖项

 <dependency>
    <groupId>com.cache</groupId>
    <artifactId>mycache</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

I have added mycache-1.0-SNAPSHOT.jar in libs folder of root directory but Still not working.我在根目录的 libs 文件夹中添加了 mycache-1.0-SNAPSHOT.jar 但仍然无法正常工作。

Try with尝试

/libs/com/cache/mycache/1.0-SNAPSHOT/mycache-1.0-SNAPSHOT.jar

All repositories need to match the standard repository structure.所有存储库都需要匹配标准存储库结构。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Maven:“找不到工件包:jar:1.0-SNAPSHOT”? - Maven: "Could not find artifact package:jar:1.0-SNAPSHOT"? Maven 无法解析项目的依赖关系,找不到工件 com.mycompany.app:my-app:jar:1.0-SNAPSHOT - Maven Could not resolve dependencies for project, Could not find artifact com.mycompany.app:my-app:jar:1.0-SNAPSHOT javaee-samples上的mvn clean包:在codehaus-snapshots中找不到工件org.javaee7:test-utils:jar:1.0-SNAPSHOT - mvn clean package on javaee-samples : Could not find artifact org.javaee7:test-utils:jar:1.0-SNAPSHOT in codehaus-snapshots 找不到工件junit:unit:jar:5.0-SNAPSHOT - Could not find artifact junit:unit:jar:5.0-SNAPSHOT 找不到工件 com.sun:tools:jar:14.0.1 - Could not find artifact com.sun:tools:jar:14.0.1 找不到工件 com.sun:tools:jar:0 - Could not find artifact com.sun:tools:jar:0 cxf-codegen-plugin could not find artifact com.sun:tools:jar:1.8.0 from C:\Program Files\Java\jre1.8.0_251/../lib/tools.jar - cxf-codegen-plugin could not find artifact com.sun:tools:jar:1.8.0 from C:\Program Files\Java\jre1.8.0_251/../lib/tools.jar 在 Nexus 存储库中找不到工件(快照) - Could not find artifact (snapshot) in Nexus repository 如何修复maven打包的jar报告&#39;错误:无法找到或加载主类。\\ FormulaTelemetryApp-1.0-SNAPSHOT.jar&#39; - How to fix maven-packaged jar reporting 'Error: Could not find or load main class .\FormulaTelemetryApp-1.0-SNAPSHOT.jar' 在中央找不到工件 com.sun.kvem:kenv:jar:2.2 - Could not find artifact com.sun.kvem:kenv:jar:2.2 in central
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM