为什么要尝试下载yyyy

为什么要尝试下载yyyy

本文介绍了常春藤-为什么要尝试下载yyyy.bundle,我可以避免这种情况吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我们最近将Maven Pom转换为常春藤,但在很多事情(不是所有事情)上都遇到了此错误:

We recently transformed a maven pom to ivy but are getting this error for many things(not all things):

[NOT FOUND  ] org.apache.geronimo.specs#geronimo-javamail_1.4_spec;1.7.1!geronimo-javamail_1.4_spec.bundle (11649ms)

可用和不可用的pom文件之间的唯一区别是,打包元素的值为"bundle".

The only difference between the pom files that work and don't is there a package element with the value "bundle".

Maven工作正常.当常春藤得到pom并真正需要下载jar工件时,我们如何才能使其正常工作.

Maven is working fine. How can we get ivy working as it gets the pom and just really needed to download the jar artifact.

更多信息,我更改了ivysettings,使其以.jar而不是[ext]结束

More info, I changed my ivysettings so it ends in .jar instead of [ext] like so

这个工作库工作了,但是我担心现在源下载不再起作用.不幸的是,我无法控制在包装属性中指定bundle的存储库中的pom.是否有一种方法可以覆盖常春藤中的某些内容,以便我可以修复所有这些问题而不使用临时解决方法?

This workardoun worked but I am worried now source downloads won't work anymore. Unfortunately, I don't control the poms in the repository that specify bundle in the packaging attribute. Is there a way to override certain things in ivy so I can fix all these and not use my temporary workaround?

我从连结中的pom复制了该网址,如下所示,并且注意包装是捆绑包

I copied from the pom in nexus for that url which is the following and notice packaging is bundle

<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 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
     <groupId>org.apache.geronimo.genesis</groupId>
     <artifactId>genesis-java5-flava</artifactId>
     <version>2.0</version>
  </parent>
  <groupId>org.apache.geronimo.specs</groupId>
  <artifactId>geronimo-javamail_1.4_spec</artifactId>
  <packaging>bundle</packaging>
  <name>JavaMail 1.4</name>
  <version>1.7.1</version>
  <description>Javamail 1.4 Specification</description>
  <url>
     http://geronimo.apache.org/maven/${siteId}/${version}
  </url>
  <distributionManagement>
     <site>
       <id>apache-website</id>
       <url>${site.deploy.url}/maven/${siteId}/${version}</url>
     </site>
  </distributionManagement>

引入的pom是我依赖的cxf-bundle. cxf-bundle中的依赖项是

The pom that brings that in is cxf-bundle which I depend on. The dependency in the cxf-bundle is

<dependency>
   <groupId>org.apache.geronimo.specs</groupId>
   <artifactId>geronimo-javamail_1.4_spec</artifactId>
   <version>1.7.1</version>
   <scope>compile</scope>
</dependency>

谢谢,院长

推荐答案

Darnit,我在常春藤站点上复制了该示例,该站点下载了具有此错误的旧版本

Darnit, I copied the example on the ivy site which downloads an older version that has this bug

https://issues.apache.org/jira/browse/IVY-899

最新版本可以正常工作.

The newest version works just fine.

这篇关于常春藤-为什么要尝试下载yyyy.bundle,我可以避免这种情况吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 22:28