On 11/21/2016 05:00 PM, Orion Poplawski wrote:
Thanks. That appears to work. However, this is all black magic to
me, and it
is not something that I can suggest to upstream. What is this doing that
fixes the javadoc build, and can I achieve the same via mvn?
Do you have xmvn package installed?
By default only xmvn-minimal is installed in buildroots. This version
has reduced dependencies, but can only be used in offline mode (-o switch).
On 11/20/2016 02:00 PM, gil wrote:
> Sorry for the noise
> can you use:
> xmvn --batch-mode --offline -Dproject.build.sourceEncoding=UTF-8 package
> and remove maven-shade-plugin to avoid bundle protobuf-java classes
> %pom_remove_plugin :maven-shade-plugin src/java/mesos.pom.in
> Il 20/11/2016 21:06, Orion Poplawski ha scritto:
>> I'm trying to update mesos to 1.1.0 and running into issues with the java
>> maven build. mesos runs mvn directly, so I'm having it run
>> /usr/share/xmvn/bin/mvn in order to build locally. I managed to get part of
>> it working with this, but now getting:
>> [ERROR] Failed to execute goal
>> (build-and-attach-javadocs) on project mesos: Execution
>> build-and-attach-javadocs of goal
>> org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar failed: Plugin
>> org.apache.maven.plugins:maven-javadoc-plugin:2.10.3 or one of its
>> dependencies could not be resolved: Failed to collect dependencies at
>> org.apache.maven.plugins:maven-javadoc-plugin:jar:2.10.3 ->
>> org.apache.maven.doxia:doxia-site-renderer:jar:1.4 ->
>> org.apache.velocity:velocity-tools:jar:2.0 ->
>> commons-chain:commons-chain:jar:1.1 ->
>> org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec:jar:any ->
>> com.sun:tools:jar:any: Failed to read artifact descriptor for
>> com.sun:tools:jar:any: Could not transfer artifact com.sun:tools:pom:any
>> from/to central (https://repo.maven.apache.org/maven2
): No connector
>> factories available -> [Help 1]
>> As I understand it, com.sun:tools is really provided by the jdk itself and
>> so should be resolved.
>> Any thoughts?
Software Engineer, Red Hat