[
https://issues.apache.org/jira/browse/KAFKA-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13708819#comment-13708819
]
Chris Riccomini commented on KAFKA-974:
---------------------------------------
Hey Joe,
This looks really good. Per our discussion on the mailing list, I'm updating
with some issues I've found:
1. Maven central can't resolve it properly (POM is different from Apache
release). Have to use Apache release repo directly to get things to work.
2. Exclusions must be manually applied even though they exist in Kafka's POM
already. I think Maven can handle this automatically, if the POM is done right.
3. Weird parent block in Kafka POMs that points to org.apache.
4. Would be nice to publish kafka-test jars as well.
5. Would be nice to have SNAPSHOT releases off of trunk using a Hudson job.
Our hypothesis regarding the first issue is that it was caused by duplicate
publishing during testing, and it should go away in the future.
Regarding number 2, I have to explicitly exclude the following when depending
on Kafka:
exclude module: 'jms'
exclude module: 'jmxtools'
exclude module: 'jmxri'
I believe these just need to be excluded from the appropriate jars in the
actual SBT build file, to fix this issue. I see JMS is excluded from ZK, but
it's probably being pulled in from somewhere else, anyway.
Regarding number 3, it is indeed listed as something to do on the Apache
publication page (http://www.apache.org/dev/publishing-maven-artifacts.html). I
can't find an example of anyone using it, but it doesn't seem to be doing any
harm.
Also, regarding your intransitive() call, that is disabling ALL dependencies
not just the exclusions, I believe. I think that the "proper" way to do that
would be to do what I've done: exclude("jms", "jmxtools", "jmxri"). Regardless,
fixing number 2, above, should mean that intransitive()/exclude() are not
required.
> can't use public release maven repo because of failure of downloaded
> dependency
> -------------------------------------------------------------------------------
>
> Key: KAFKA-974
> URL: https://issues.apache.org/jira/browse/KAFKA-974
> Project: Kafka
> Issue Type: Bug
> Reporter: Joe Stein
> Fix For: 0.8
>
> Attachments: KAFKA-974.patch, KAFKA-974.v2.patch
>
>
> trying to use the 0.8.0-beta1 release from public maven
> name := "Stub"
> version := "1.0.0.0"
> scalaVersion := "2.9.2"
> mainClass := Some("Stub")
> libraryDependencies ++= Seq(
> "org.apache.kafka" % "kafka_2.9.2" % "0.8.0-beta1"
> )
> results in
> Joes-MacBook-Air:stub joestein$ ./sbt compile
> [info] Set current project to default-63d5f2 (in build
> file:/opt/medialets/SymanticManager/scala/stub/)
> [info] Updating
> {file:/opt/medialets/SymanticManager/scala/stub/}default-63d5f2...
> [warn] [NOT FOUND ] javax.jms#jms;1.1!jms.jar (50ms)
> [warn] ==== public: tried
> [warn] http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar
> [warn] [NOT FOUND ] com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar (12ms)
> [warn] ==== public: tried
> [warn]
> http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
> [warn] [NOT FOUND ] com.sun.jmx#jmxri;1.2.1!jmxri.jar (71ms)
> [warn] ==== public: tried
> [warn] http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: FAILED DOWNLOADS ::
> [warn] :: ^ see resolution messages for details ^ ::
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: javax.jms#jms;1.1!jms.jar
> [warn] :: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
> [warn] :: com.sun.jmx#jmxri;1.2.1!jmxri.jar
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [info]
> [warn] :: problems summary ::
> [warn] :::: WARNINGS
> [warn] [NOT FOUND ] javax.jms#jms;1.1!jms.jar (50ms)
> [warn] ==== public: tried
> [warn] http://repo1.maven.org/maven2/javax/jms/jms/1.1/jms-1.1.jar
> [warn] [NOT FOUND ] com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
> (12ms)
> [warn] ==== public: tried
> [warn]
> http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
> [warn] [NOT FOUND ] com.sun.jmx#jmxri;1.2.1!jmxri.jar (71ms)
> [warn] ==== public: tried
> [warn]
> http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: FAILED DOWNLOADS ::
> [warn] :: ^ see resolution messages for details ^ ::
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [warn] :: javax.jms#jms;1.1!jms.jar
> [warn] :: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
> [warn] :: com.sun.jmx#jmxri;1.2.1!jmxri.jar
> [warn] ::::::::::::::::::::::::::::::::::::::::::::::
> [info]
> [info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> [error]
> {file:/opt/medialets/SymanticManager/scala/stub/}default-63d5f2/*:update:
> sbt.ResolveException: download failed: javax.jms#jms;1.1!jms.jar
> [error] download failed: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
> [error] download failed: com.sun.jmx#jmxri;1.2.1!jmxri.jar
> [error] Total time: 3 s, completed Jul 13, 2013 1:55:36 AM
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira