Hide Forgot
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
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.
There must be a transitive dependency on this zip, its not specifically needed.
(~/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.
I see what's adding the issue, the productization process is adding the web-console to the root pom.xml.
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.
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.
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.
Is this a blocker for alpha?
Affected artifact is client. Any SQL client can be used instead. So, in my opinion it is not blocker.
agreed, any sql tool can be used, instead of simple client. No need to make it a blocker.
Steven Hawkins <shawkins> updated the status of jira TEIID-4094 to Resolved
Steven Hawkins <shawkins> updated the status of jira TEIID-4094 to Reopened