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

Bug 1097074

Summary: Unable to build custom translator due to missing artifacts
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Cojan van Ballegooijen <cojan>
Component: Distribution, Teiid, ExamplesAssignee: Van Halbert <vhalbert>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-13 12:20:50 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:
Attachments:
Description Flags
Yahoo Translator initially based on translator-file none

Description Cojan van Ballegooijen 2014-05-13 06:21:34 UTC
Created attachment 894997 [details]
Yahoo Translator initially based on translator-file

Description of problem:
Try to build a custom translator based on the translator-file src.
$ mvn clean install 
generates the following log:

Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building Yahoo Translator 8.4.1-redhat-7
------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/jboss/jboss-parent/10-redhat-1/jboss-parent-10-redhat-1.pom

Downloading: http://repo.maven.apache.org/maven2/org/jboss/staxmapper/1.1.0.Final-redhat-2/staxmapper-1.1.0.Final-redhat-2.pom

The POM for org.jboss:staxmapper:jar:1.1.0.Final-redhat-2 is missing, no dependency information available
Downloading: http://repo.maven.apache.org/maven2/org/jboss/logging/jboss-logging/3.1.2.GA-redhat-1/jboss-logging-3.1.2.GA-redhat-1.pom

The POM for org.jboss.logging:jboss-logging:jar:3.1.2.GA-redhat-1 is missing, no dependency information available
Downloading: http://repo.maven.apache.org/maven2/org/jboss/jboss-parent/9-redhat-1/jboss-parent-9-redhat-1.pom

Downloading: http://repo.maven.apache.org/maven2/org/jboss/teiid/teiid-metadata/8.4.1-redhat-7/teiid-metadata-8.4.1-redhat-7.pom

The POM for org.jboss.teiid:teiid-metadata:jar:8.4.1-redhat-7 is missing, no dependency information available
The POM for org.jboss.teiid:teiid-metadata:jar:tests:8.4.1-redhat-7 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3.698s
Finished at: Tue May 13 08:12:01 CEST 2014
Final Memory: 14M/227M
------------------------------------------------------------------------
Failed to execute goal on project translator-yahoo: Could not resolve dependencies for project org.jboss.teiid.connectors:translator-yahoo:jar:8.4.1-redhat-7: Failed to collect dependencies for [org.jboss.teiid:teiid-api:jar:8.4.1-redhat-7 (provided), org.jboss.teiid:teiid-common-core:jar:8.4.1-redhat-7 (provided), org.jboss.teiid:teiid-api:jar:tests:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-engine:jar:tests:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-common-core:jar:tests:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-client:jar:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-admin:jar:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-engine:jar:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-metadata:jar:8.4.1-redhat-7 (test), org.jboss.teiid:teiid-metadata:jar:tests:8.4.1-redhat-7 (test), org.jboss:jboss-vfs:jar:3.1.0.Final-redhat-2 (test), org.jboss.logging:jboss-logging:jar:3.1.2.GA-redhat-1 (test), junit:junit:jar:4.11 (test), org.mockito:mockito-all:jar:1.9.5 (test)]: Failed to read artifact descriptor for org.jboss:jboss-dmr:jar:1.1.6.Final-redhat-1: Failure to find org.jboss:jboss-parent:pom:10-redhat-1 in http://localhost/maven-repos/dv-6.0.0.GA-redhat-2-repository/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-dv-6-0-0-GA-maven-repository has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


Version-Release number of selected component (if applicable):
6.0.0

How reproducible:
One do not need create a custom translator, just try to build the translator-file with mvn clean install and you should get the same loggin.

Steps to Reproduce:
1. Setup local maven repository for EAP 6.1.1 and DV 6.0.0
   Unzip jboss-eap-6.1.1-maven-repository.zip
   Unzip dv-6.0.0.GA-redhat-2-repository.zip
   Change settings.xml to activate the maven repos listed above 
2. Unzip dv-6.0.0.GA-redhat-4-src.zip
3. cd dv-6.0.0.GA-redhat-4-src/teiid/connectors/translator-file
4. change pom.xml default version is 8.4.1 but should be 8.4.1-redhat-7 (see DV maven repo
5. mvn clean install

Actual results:
See above

Expected results:


Additional info:

Comment 1 Cojan van Ballegooijen 2014-05-13 06:26:02 UTC
The first log was using activeProfiles in pom.xml

 <activeProfiles>
    <activeProfile>jboss-dv-6-0-0-GA-maven-repository</activeProfile>
  </activeProfiles>

The second log below was using activeProfiles in pom.xml
 <activeProfiles>
    <activeProfile>jboss-dv-6-0-0-GA-maven-repository</activeProfile>
    <activeProfile>jboss-eap-6-1-1-GA-maven-repository</activeProfile>
  </activeProfiles>

Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building Yahoo Translator 8.4.1-redhat-7
------------------------------------------------------------------------
The POM for org.jboss.teiid:teiid-metadata:jar:8.4.1-redhat-7 is missing, no dependency information available
The POM for org.jboss.teiid:teiid-metadata:jar:tests:8.4.1-redhat-7 is missing, no dependency information available
Downloading: http://repo.maven.apache.org/maven2/org/jboss/teiid/teiid-metadata/8.4.1-redhat-7/teiid-metadata-8.4.1-redhat-7.jar
Downloading: http://repo.maven.apache.org/maven2/org/jboss/teiid/teiid-metadata/8.4.1-redhat-7/teiid-metadata-8.4.1-redhat-7-tests.jar


------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.827s
Finished at: Tue May 13 08:22:23 CEST 2014
Final Memory: 18M/227M
------------------------------------------------------------------------
Failed to execute goal on project translator-yahoo: Could not resolve dependencies for project org.jboss.teiid.connectors:translator-yahoo:jar:8.4.1-redhat-7: The following artifacts could not be resolved: org.jboss.teiid:teiid-metadata:jar:8.4.1-redhat-7, org.jboss.teiid:teiid-metadata:jar:tests:8.4.1-redhat-7: Failure to find org.jboss.teiid:teiid-metadata:jar:8.4.1-redhat-7 in http://localhost/maven-repos/jboss-eap-6.1.1.GA-maven-repository/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-eap-6-1-1-GA-maven-repository has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Comment 5 Van Halbert 2014-05-13 13:26:15 UTC
Be sure you have the following repo in your settings.xml:

http://maven.repository.redhat.com/techpreview/all/