You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Tanping Wang <ta...@gmail.com> on 2015/04/10 20:34:29 UTC

ambari-metrics-kafka-sink does not get built due to broken Maven repository link

Hello,
In the newest ambari 2.0 trunk, the ambari-metrics-kafka-sink can not be
built:


[ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could
not resolve dependencies for project
org.apache.ambari:ambari-metrics-kafka-sink:jar:2.0.0-0: The following
artifacts could not be resolved: javax.jms:jms:jar:1.1,
com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not
transfer artifact javax.jms:jms:jar:1.1 from/to java.net (
https://maven-repository.dev.java.net/nonav/repository): No connector
available to access repository java.net (
https://maven-repository.dev.java.net/nonav/repository) of type legacy
using the available factories WagonRepositoryConnectorFactory -> [Help 1

The maven repository is not reachable:
https://maven-repository.dev.java.net/nonav/repository

On the hand hand, on the ambari trunk, ambari-metrics-kafka-sink is
built-able.

Even after doing a maven local install for this jar:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html#7133-jmx-1.2-oth-JPR
which is found on the internet, it is still not built-able.

Any work around?

Regards,
Tanping

Re: ambari-metrics-kafka-sink does not get built due to broken Maven repository link

Posted by Tanping Wang <ta...@gmail.com>.
For the record,  here is a quick work around to solve the missing artifacts
in the current 2.0 branch in order to compile ambari-metrics:

1) manually install the three missing artifacts due to incorrect repo URL:

mvn install:install-file -Dfile=jms-1.1.pom -DgroupId=javax.jms
-DartifactId=jms -Dversion=1.1 -Dpackaging=jar

mvn install:install-file -Dfile=jmxtools-1.2.1.pom -DgroupId=com.sun.jdmk
-DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar

mvn install:install-file -Dfile=jmxri-1.2.1.pom -DgroupId=com.sun.jmx
-DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar

2) the three poms are:

==== three poms ====
$ cat jms-1.1.pom
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>javax.jms</groupId>
  <artifactId>jms</artifactId>
  <version>1.1</version>
  <name>Java Message Service</name>
  <description>
    The Java Message Service (JMS) API is a messaging standard that allows
application components based on the Java 2 Platform, Enterprise Edition
(J2EE) to create, send, receive, and read messages. It enables distributed
communication that is loosely coupled, reliable, and asynchronous.
  </description>
  <url>http://java.sun.com/products/jms</url>
  <distributionManagement>
    <downloadUrl>http://java.sun.com/products/jms/docs.html</downloadUrl>
  </distributionManagement>
=================
]$ cat jmxri-1.2.1.pom
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.sun.jmx</groupId>
  <artifactId>jmxri</artifactId>
  <version>1.2.1</version>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
==================
$ cat jmxtools-1.2.1.pom
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.sun.jdmk</groupId>
  <artifactId>jmxtools</artifactId>
  <version>1.2.1</version>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>

Regards,
Tanping

On Fri, Apr 10, 2015 at 11:34 AM, Tanping Wang <ta...@gmail.com> wrote:

> Hello,
> In the newest ambari 2.0 trunk, the ambari-metrics-kafka-sink can not be
> built:
>
>
> [ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could
> not resolve dependencies for project
> org.apache.ambari:ambari-metrics-kafka-sink:jar:2.0.0-0: The following
> artifacts could not be resolved: javax.jms:jms:jar:1.1,
> com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not
> transfer artifact javax.jms:jms:jar:1.1 from/to java.net (
> https://maven-repository.dev.java.net/nonav/repository): No connector
> available to access repository java.net (
> https://maven-repository.dev.java.net/nonav/repository) of type legacy
> using the available factories WagonRepositoryConnectorFactory -> [Help 1
>
> The maven repository is not reachable:
> https://maven-repository.dev.java.net/nonav/repository
>
> On the hand hand, on the ambari trunk, ambari-metrics-kafka-sink is
> built-able.
>
> Even after doing a maven local install for this jar:
> http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html#7133-jmx-1.2-oth-JPR
> which is found on the internet, it is still not built-able.
>
> Any work around?
>
> Regards,
> Tanping
>

Re: ambari-metrics-kafka-sink does not get built due to broken Maven repository link

Posted by Yusaku Sako <yu...@hortonworks.com>.
Hi Tanping,

I remember having to manually download and do mvn local install of two
jars: com.sun.jmx:jmxri-1.2.1.jar and com.sun.jdmk:jmxtools-1.2.1.jar.
After that, I was able to build.
I hope this helps.

Yusaku

On 4/10/15 11:34 AM, "Tanping Wang" <ta...@gmail.com> wrote:

>Hello,
>In the newest ambari 2.0 trunk, the ambari-metrics-kafka-sink can not be
>built:
>
>
>[ERROR] Failed to execute goal on project ambari-metrics-kafka-sink: Could
>not resolve dependencies for project
>org.apache.ambari:ambari-metrics-kafka-sink:jar:2.0.0-0: The following
>artifacts could not be resolved: javax.jms:jms:jar:1.1,
>com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not
>transfer artifact javax.jms:jms:jar:1.1 from/to java.net (
>https://maven-repository.dev.java.net/nonav/repository): No connector
>available to access repository java.net (
>https://maven-repository.dev.java.net/nonav/repository) of type legacy
>using the available factories WagonRepositoryConnectorFactory -> [Help 1
>
>The maven repository is not reachable:
>https://maven-repository.dev.java.net/nonav/repository
>
>On the hand hand, on the ambari trunk, ambari-metrics-kafka-sink is
>built-able.
>
>Even after doing a maven local install for this jar:
>http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archi
>ve-downloads-java-plat-419418.html#7133-jmx-1.2-oth-JPR
>which is found on the internet, it is still not built-able.
>
>Any work around?
>
>Regards,
>Tanping