有问题的行是此功能片段中的第一个包
<feature name="stuff-common-security">
<bundle>wrap:mvn:org.springframework/ldap/1.3.0.RELEASE,mvn:com.mycompany.stuff/stuff-common-security/1.0-SNAPSHOT/bnd/spring-ldap</bundle>
<bundle>mvn:org.springframework.security/spring-security-core/3.1.0.RELEASE</bundle>
<bundle>mvn:org.springframework.security/spring-security-ldap/3.1.0.RELEASE</bundle>
<bundle>mvn:com.mycompany.stuff/stuff-common-security/1.0-SNAPSHOT</bundle>
</feature>
create-kar 目标因以下错误而失败:
[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.2.9:create-kar (create-kar) on project stuff-demo:
Failed to create kar archive:
Could not find artifact org.springframework:ldap:stuff-common-security:1.0-SNAPSHOT:1.3.0.RELEASE,mvn:com.mycompany.stuff
in maven.mycompany.com (http://maven.mycompany.com/artifactory/libs-release-local)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.springframework -DartifactId=ldap
-Dversion=1.3.0.RELEASE,mvn:com.mycompany.stuff -Dclassifier=1.0-SNAPSHOT
-Dpackaging=stuff-common-security -Dfile=/path/to/file
似乎错误地解析了该捆绑元素文本并将包装器视为版本号的一部分。
<bundle>wrap:mvn:org.springframework/ldap/1.3.0.RELEASE,mvn:com.mycompany.stuff/stuff-common-security/1.0-SNAPSHOT/bnd/spring-ldap</bundle>
Karaf 本身对这种捆绑语法很满意,所以我不认为我在那里犯了错误。
有没有另一种方法可以表达这个,所以我不会从 create-kar 得到这个错误?