Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1192869

Summary: Issues Building RHQ JavaDocs because of Missing Dependencies
Product: [JBoss] JBoss Operations Network Reporter: Jared MORGAN <jmorgan>
Component: ProductizationAssignee: Simeon Pinder <spinder>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.3.2CC: fbrychta, jmorgan, mmurray, tkelly
Target Milestone: post-GA   
Target Release: JON 3.3.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-23 14:30:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jared MORGAN 2015-02-16 02:01:37 UTC
Description of problem:

I'm trying to generate the API docs for the enterprise platform from RHQ, with guidance from Heiko.

I've run into a dependency issue that I can't resolve.

How reproducible:

100%

Steps to Reproduce:

$ yum install maven
$ git clone https://github.com/rhq-project/rhq.git jon
$ cd jon
$ cd modules/enterprise/server/jar
$ mvn -Ddocgen install  (or compile)

I chose install for the record.

Actual results:

Downloaded: http://repo.maven.apache.org/maven2/org/testng/testng/6.5.2/testng-6.5.2.jar (701 KB at 36.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:13 min
[INFO] Finished at: 2015-02-16T10:00:51+10:00
[INFO] Final Memory: 19M/242M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rhq-enterprise-server: Could not resolve dependencies for project org.rhq:rhq-enterprise-server:ejb:4.14.0-SNAPSHOT: The following artifacts could not be resolved: org.rhq:rhq-enterprise-comm:jar:4.14.0-SNAPSHOT, org.rhq:rhq-enterprise-server-xml-schemas:jar:4.14.0-SNAPSHOT, org.rhq:rhq-core-domain:jar:4.14.0-SNAPSHOT, org.rhq:rhq-cassandra-schema:jar:4.14.0-SNAPSHOT, org.rhq:rhq-core-plugin-api:jar:4.14.0-SNAPSHOT, org.rhq:rhq-core-client-api:jar:4.14.0-SNAPSHOT, org.rhq:rhq-core-dbutils:jar:4.14.0-SNAPSHOT, org.rhq:safe-invoker:jar:4.14.0-SNAPSHOT, org.rhq:rhq-common-drift:jar:4.14.0-SNAPSHOT, org.rhq:rhq-server-metrics:jar:4.14.0-SNAPSHOT, org.rhq:rhq-cassandra-util:jar:4.14.0-SNAPSHOT, org.rhq:rhq-jboss-as-dmr-client:jar:4.14.0-SNAPSHOT, org.rhq:test-utils:jar:4.14.0-SNAPSHOT, org.rhq.helpers:rest-docs-generator:jar:4.14.0-SNAPSHOT, org.rhq:rhq-core-domain:jar:tests:4.14.0-SNAPSHOT: Could not find artifact org.rhq:rhq-enterprise-comm:jar:4.14.0-SNAPSHOT in sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/) -> [Help 1]

I'm missing a whole stack of project dependencies and I can not continue with the build.

Expected results:

The project has access to the dependencies in Maven, and DocGen works seamlessly.

Additional info:

I thought if I ran build_deps.sh in RHQ, it would get me what I need. Turns out this wasn't the case.

Comment 1 Jared MORGAN 2015-02-17 00:50:37 UTC
To update this issue, Heiko gave me further info that I needed to run this command on a branch.

I switched to releases/jon3.3.x and ran `mvn -Ddocgen install` inside modules/enterprise/server/jar.

With similar results below, I tried `mvn -Ddocgen compile -DskipTests -Dmaven.test.skip`, and `mvn -Ddocgen compile -DskipTests -Dmaven.test.skip` which resulted in the output in [[Result]]:

== Result

(spaced out the missing deps for readability)

Do I need to have any sort of security key to access the deps at the moment? 

Do I need to manually add the internal RedHat Repo to Maven? Or is this part of the problem you were alluding to with the deps being excluded from the repo therefore making it unbuildable?

[jmorgan@jmorgan-bne-redhat-com jar] (release/jon3.3.x) $ mvn -Ddocgen compile -DskipTests -Dmaven.test.skip
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building RHQ Enterprise Server JAR 4.14.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.rhq:rhq-enterprise-comm:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-enterprise-server-xml-schemas:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-domain:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-plugin-api:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-client-api:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-dbutils:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:safe-invoker:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-common-drift:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-server-metrics:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-jboss-as-dmr-client:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.rhq.helpers:rest-docs-generator:jar:4.14.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.557 s
[INFO] Finished at: 2015-02-17T10:32:18+10:00
[INFO] Final Memory: 18M/437M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rhq-enterprise-server: Could not resolve dependencies for project org.rhq:rhq-enterprise-server:ejb:4.14.0-SNAPSHOT: The following artifacts could not be resolved: 
org.rhq:rhq-enterprise-comm:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-enterprise-server-xml-schemas:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-core-domain:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-core-plugin-api:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-core-client-api:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-core-dbutils:jar:4.14.0-SNAPSHOT, 
org.rhq:safe-invoker:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-common-drift:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-server-metrics:jar:4.14.0-SNAPSHOT, 
org.rhq:rhq-jboss-as-dmr-client:jar:4.14.0-SNAPSHOT, 
org.rhq.helpers:rest-docs-generator:jar:4.14.0-SNAPSHOT: 

Failure to find org.rhq:rhq-enterprise-comm:jar:4.14.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]

Comment 5 Jared MORGAN 2015-02-24 00:25:37 UTC
Here is the current output when I run "mvn -Ddocgen install"

[jmorgan@jmorgan-bne-redhat-com rhq] (release/jon3.3.x) $ cd modules/enterprise/server/jar/
[jmorgan@jmorgan-bne-redhat-com jar] (release/jon3.3.x) $ mvn -Ddocgen install
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building RHQ Enterprise Server JAR 4.12.0.JON330GA-redhat-1
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.rhq:rhq-enterprise-comm:jar:4.12.0.JON330GA-redhat-1 is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-enterprise-server-xml-schemas:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-domain:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-cassandra-schema:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-plugin-api:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-client-api:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-dbutils:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:safe-invoker:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-common-drift:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-server-metrics:jar:4.12.0.JON330GA-redhat-1 is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-cassandra-util:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-jboss-as-dmr-client:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:test-utils:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq.helpers:rest-docs-generator:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-domain:jar:tests:4.12.0.JON330GA is missing, no dependency information available
[INFO] ------------------------------------------------------------------------

The attachment in Comment#4 may be causing an issue.

Comment 6 Simeon Pinder 2015-02-24 05:48:56 UTC
@Jared, does the maven build succeed even with the [WARNING] messages anyway? I don't see an [ERROR] and failure message as with your previous response.  Also I don't think you need the 'enterprise' profile to just build the doc.  If you completely deleted the previous cloned directory then you can skip step iv) anyway since there should be nothing to clean up.  Your settings.xml looks good as well as it now includes the 3.3-build repository. As long as you're on the vpn, this should work. I'll take another look once you post the error.

Comment 7 Filip Brychta 2015-02-26 15:48:33 UTC
See comment 6

Comment 8 Jared MORGAN 2015-04-16 21:19:02 UTC
(In reply to Simeon Pinder from comment #6)
> @Jared, does the maven build succeed even with the [WARNING] messages
> anyway? I don't see an [ERROR] and failure message as with your previous
> response.  Also I don't think you need the 'enterprise' profile to just
> build the doc.  If you completely deleted the previous cloned directory then
> you can skip step iv) anyway since there should be nothing to clean up. 
> Your settings.xml looks good as well as it now includes the 3.3-build
> repository. As long as you're on the vpn, this should work. I'll take
> another look once you post the error.

Hi Simeon

Here is the terminal output:

[jmorgan@jmorgan-bne-redhat-com jar] (release/jon3.3.x) $ pwd
/home/jmorgan/Repos/rhq/modules/enterprise/server/jar
[jmorgan@jmorgan-bne-redhat-com jar] (release/jon3.3.x) $ mvn -Ddocgen install
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building RHQ Enterprise Server JAR 4.12.0.JON330GA-redhat-2
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.rhq:rhq-enterprise-comm:jar:4.12.0.JON330GA-redhat-1 is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-enterprise-server-xml-schemas:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-domain:jar:4.12.0.JON330GA-redhat-1 is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-cassandra-schema:jar:4.12.0.JON330GA-redhat-1 is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-plugin-api:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-client-api:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-dbutils:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:safe-invoker:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-common-drift:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-server-metrics:jar:4.12.0.JON330GA-redhat-2 is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-cassandra-util:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-jboss-as-dmr-client:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:test-utils:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq.helpers:rest-docs-generator:jar:4.12.0.JON330GA is missing, no dependency information available
[WARNING] The POM for org.rhq:rhq-core-domain:jar:tests:4.12.0.JON330GA-redhat-1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.452 s
[INFO] Finished at: 2015-04-17T07:17:37+10:00
[INFO] Final Memory: 17M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project rhq-enterprise-server: Could not resolve dependencies for project org.rhq:rhq-enterprise-server:ejb:4.12.0.JON330GA-redhat-2: The following artifacts could not be resolved: org.rhq:rhq-enterprise-comm:jar:4.12.0.JON330GA-redhat-1, org.rhq:rhq-enterprise-server-xml-schemas:jar:4.12.0.JON330GA, org.rhq:rhq-core-domain:jar:4.12.0.JON330GA-redhat-1, org.rhq:rhq-cassandra-schema:jar:4.12.0.JON330GA-redhat-1, org.rhq:rhq-core-plugin-api:jar:4.12.0.JON330GA, org.rhq:rhq-core-client-api:jar:4.12.0.JON330GA, org.rhq:rhq-core-dbutils:jar:4.12.0.JON330GA, org.rhq:safe-invoker:jar:4.12.0.JON330GA, org.rhq:rhq-common-drift:jar:4.12.0.JON330GA, org.rhq:rhq-server-metrics:jar:4.12.0.JON330GA-redhat-2, org.rhq:rhq-cassandra-util:jar:4.12.0.JON330GA, org.rhq:rhq-jboss-as-dmr-client:jar:4.12.0.JON330GA, org.rhq:test-utils:jar:4.12.0.JON330GA, org.rhq.helpers:rest-docs-generator:jar:4.12.0.JON330GA, org.rhq:rhq-core-domain:jar:tests:4.12.0.JON330GA-redhat-1: Failure to find org.rhq:rhq-enterprise-comm:jar:4.12.0.JON330GA-redhat-1 in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repo-group has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Comment 9 Filip Brychta 2015-07-23 14:30:55 UTC
Triage: Larry, Filip, Simeon
1 - Simeon is unable to reproduce

Please reopen if it's still necessary to resolve this issue.

Comment 10 Tyler Kelly 2017-08-30 06:47:14 UTC
Issue may have been caused by using java-1.8.0-openjdk-devel rather than java-1.7.0-openjdk-devel.