Bug 1318684

Summary: Missing dependency from project simple client - quickstarts
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Juraj Duráni <jdurani>
Component: DistributionAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact: Juraj Duráni <jdurani>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aszczucz, jolee, mbaluch, thauser, vhalbert
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 11:43:38 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:

Description Juraj Duráni 2016-03-17 13:53:14 UTC
Description of problem:
There is a missing dependency for simple client:
org.jboss.teiid.web-console:teiid-console-dist:zip:jboss-as7:2.5.6.Final-redhat-63-4

Error:
...
...
Downloading: http://repo.maven.apache.org/maven2/org/jboss/teiid/web-console/teiid-console-dist/2.5.6.Final-redhat-63-4/teiid-console-dist-2.5.6.Final-redhat-63-4-jboss-as7.zip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Teiid Quickstart Parent ............................ SUCCESS [  4.202 s]
[INFO] SimpleClient ....................................... FAILURE [  0.917 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.890 s
[INFO] Finished at: 2016-03-17T14:51:45+01:00
[INFO] Final Memory: 83M/271M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project simpleclient: Could not resolve dependencies for project org.jboss.teiid.quickstart:simpleclient:jar:3.0.0.redhat-63-4: Could not find artifact org.jboss.teiid.web-console:teiid-console-dist:zip:jboss-as7:2.5.6.Final-redhat-63-4 in jboss-dv-repository (file:///home/jdurani/redhat/tests/maven_repo_test/repos/jboss-dv-6.3.0.ER1-maven-repository/maven-repository) -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :simpleclient

Comment 1 Alex Szczuczko 2016-03-17 14:31:02 UTC
The zip artifact type is excluded by maven-repository-builder. The real bug may be that this quickstart depends on such an artifact, I will have to look further.

Comment 2 Van Halbert 2016-03-17 14:38:33 UTC
There must be a transitive dependency on this zip, its not specifically needed.

Comment 3 Van Halbert 2016-03-17 15:04:00 UTC
(~/RedHat/github/repos_teiid/teiid-quickstarts/simpleclient) Vans-MacBook-Pro $ mvn -s ../settings.xml dependency:tree
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building SimpleClient 3.0.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ simpleclient ---
[INFO] org.jboss.teiid.quickstart:simpleclient:jar:3.0.0
[INFO] +- org.jboss.teiid:teiid:jar:jdbc:8.12.0.Final:compile
[INFO] +- org.jboss.teiid:teiid-common-core:jar:8.12.0.Final:compile
[INFO] \- org.jboss.teiid:teiid-client:jar:8.12.0.Final:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.812s
[INFO] Finished at: Thu Mar 17 10:02:51 CDT 2016
[INFO] Final Memory: 14M/126M


Not sure where the web-console is coming from.

Comment 4 Van Halbert 2016-03-17 15:06:27 UTC
I see what's adding the issue, the productization process is adding the web-console to the root pom.xml.

Comment 5 Van Halbert 2016-03-17 15:08:58 UTC
On the branch I pushed for product, I ran dependency:tree on the whole project and didn't see web-console.   Not sure where productization is seeing the need.

Comment 6 Alex Szczuczko 2016-03-17 15:14:01 UTC
Yes, running mvn dependency:tree on the sources with the DV build repository reveals a transitive dependency via org.jboss.teiid:teiid:jar:jdbc:8.12.5.redhat-2

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ simpleclient ---
[INFO] org.jboss.teiid.quickstart:simpleclient:jar:3.0.0.redhat-63-4
[INFO] +- org.jboss.teiid:teiid:jar:jdbc:8.12.5.redhat-2:compile
[INFO] |  \- org.jboss.teiid.web-console:teiid-console-dist:zip:jboss-as7:2.5.6.Final-redhat-63-4:compile
[INFO] +- org.jboss.teiid:teiid-common-core:jar:8.12.5.redhat-2:compile
[INFO] \- org.jboss.teiid:teiid-client:jar:8.12.5.redhat-2:compile
[INFO]    \- (org.jboss.teiid:teiid-common-core:jar:8.12.5.redhat-2:compile - omitted for duplicate)

It's not obvious from the teiid source what pom is associated with teiid-8.12.5.redhat-2-jdbc.jar. The jar's metadata includes the teiid-common-core and teiid-client poms.

Grepping for teiid-console-dist, it is only mentioned in pom.xml (in dependencyManagement) and build/pom.xml (in dependencies), so maybe maven is using the build pom somehow? I'm unsure.

Comment 7 Alex Szczuczko 2016-03-17 16:43:30 UTC
Talking with Van on IRC, the conclusion is that the jdbc jar(s) need to be associated with a pom other than the main kit pom. Either a new module will be required, or maybe teiid-client can be reused.

The kit pom is build/pom.xml in the source, but teiid-8.12.5.redhat-2.pom in the repo, so maven associates teiid-8.12.5.redhat-2-jdbc.jar with it. teiid-8.12.5.redhat-2.pom has a dependency on teiid-console-dist, which isn't appropriate for the jdbc jar(s).

Normally no artifacts from group org.jboss.teiid, artifact teiid, are used by customers, they're consumed only by the downstream DV kit/assembly, which is built with access to the full DV build repository in Brew.

Comment 8 Alex Szczuczko 2016-03-17 16:51:04 UTC
Is this a blocker for alpha?

Comment 9 Juraj Duráni 2016-03-18 05:52:12 UTC
Affected artifact is client. Any SQL client can be used instead. So, in my opinion it is not blocker.

Comment 10 Van Halbert 2016-03-18 13:30:42 UTC
agreed, any sql tool can be used, instead of simple client.  No need to make it a blocker.

Comment 11 JBoss JIRA Server 2016-03-23 17:03:16 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4094 to Resolved

Comment 12 JBoss JIRA Server 2016-04-07 19:20:53 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4094 to Reopened

Comment 13 JBoss JIRA Server 2016-09-21 19:36:11 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4094 to Resolved