构建器使用可选的传递工件依赖项

发布于 2024-10-21 14:41:34 字数 310 浏览 5 评论 0原文

如何告诉 Apache Buildr 在 pom 中遵循 true 的依赖关系?请参阅相关问题 Trouble getting Hibernate使用 Apache Ivy 的核心和 Hibernate 注释(但它也与 Maven2 相关。)

谢谢。

How can Apache Buildr be told to follow dependencies with <optional>true</optional> in the pom? See the related question at Trouble getting Hibernate Core and Hibernate Annotations using Apache Ivy (but it's also Maven2 related.)

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉薄对峙 2024-10-28 14:41:34

恐怕传递支持在构建器中是实验性的,它存在一些问题。 Tou 可以尝试手动列出依赖项:

HIBERNATE = ["mysql:mysql-connector-java:jar:5.1.13",
         "org.hibernate:hibernate-core:jar:3.5.5-Final",
         "antlr:antlr:jar:2.7.6",
         "commons-collections:commons-collections:jar:3.1",
         "commons-pool:commons-pool:jar:1.5.4",
         "commons-dbcp:commons-dbcp:jar:1.3",
         "commons-lang:commons-lang:jar:2.5",
         "dom4j:dom4j:jar:1.6.1",
         "xml-apis:xml-apis:jar:1.0.b2",
         "org.hibernate:hibernate-entitymanager:jar:3.5.5-Final",
         "org.hibernate:hibernate-annotations:jar:3.5.5-Final",
         "org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final",
         "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final",
         "org.hibernate:hibernate-validator:jar:4.1.0.Final",
         "javax.validation:validation-api:jar:1.0.0.GA",
         "cglib:cglib-nodep:jar:2.2",
         "javassist:javassist:jar:3.9.0.GA",
         "javax.transaction:jta:jar:1.1",
         "log4j:log4j:jar:1.2.16",
         "org.slf4j:slf4j-api:jar:1.6.1",
         "org.slf4j:jcl-over-slf4j:jar:1.6.1",
         "org.slf4j:slf4j-log4j12:jar:1.6.1"]

i'm afraid that transitive support is experimental in buildr, there are a few problems with it. Tou could try listing the dependencies by hand:

HIBERNATE = ["mysql:mysql-connector-java:jar:5.1.13",
         "org.hibernate:hibernate-core:jar:3.5.5-Final",
         "antlr:antlr:jar:2.7.6",
         "commons-collections:commons-collections:jar:3.1",
         "commons-pool:commons-pool:jar:1.5.4",
         "commons-dbcp:commons-dbcp:jar:1.3",
         "commons-lang:commons-lang:jar:2.5",
         "dom4j:dom4j:jar:1.6.1",
         "xml-apis:xml-apis:jar:1.0.b2",
         "org.hibernate:hibernate-entitymanager:jar:3.5.5-Final",
         "org.hibernate:hibernate-annotations:jar:3.5.5-Final",
         "org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final",
         "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final",
         "org.hibernate:hibernate-validator:jar:4.1.0.Final",
         "javax.validation:validation-api:jar:1.0.0.GA",
         "cglib:cglib-nodep:jar:2.2",
         "javassist:javassist:jar:3.9.0.GA",
         "javax.transaction:jta:jar:1.1",
         "log4j:log4j:jar:1.2.16",
         "org.slf4j:slf4j-api:jar:1.6.1",
         "org.slf4j:jcl-over-slf4j:jar:1.6.1",
         "org.slf4j:slf4j-log4j12:jar:1.6.1"]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文