Bug 1318210 - Missing dependency in maven repository - quickstarts cannot be built
Summary: Missing dependency in maven repository - quickstarts cannot be built
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Distribution
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alex Szczuczko
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-16 09:48 UTC by Juraj Duráni
Modified: 2016-03-21 12:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-17 12:01:07 UTC
Type: Bug


Attachments (Terms of Use)

Description Juraj Duráni 2016-03-16 09:48:51 UTC
Description of problem:
Missing dependency: org.jboss:jboss-parent:16
Repository contains artifact of version 16.0.0


[INFO] Scanning for projects...
Downloading: file:///home/jdurani/redhat/tests/maven_repo_test/repos/jboss-dv-6.3.0.ER1-maven-repository/maven-repository/org/jboss/integration-platform/jboss-integration-platform-parent/6.0.0.CR30-redhat-1/jboss-integration-platform-parent-6.0.0.CR30-redhat-1.pom
Downloaded: file:///home/jdurani/redhat/tests/maven_repo_test/repos/jboss-dv-6.3.0.ER1-maven-repository/maven-repository/org/jboss/integration-platform/jboss-integration-platform-parent/6.0.0.CR30-redhat-1/jboss-integration-platform-parent-6.0.0.CR30-redhat-1.pom (27 KB at 828.4 KB/sec)
Downloading: file:///home/jdurani/redhat/tests/maven_repo_test/repos/jboss-dv-6.3.0.ER1-maven-repository/maven-repository/org/jboss/jboss-parent/16/jboss-parent-16.pom
Downloading: https://repo.maven.apache.org/maven2/org/jboss/jboss-parent/16/jboss-parent-16.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.jboss.integration-platform:jboss-integration-platform-parent:6.0.0.CR30-redhat-1: Could not transfer artifact org.jboss:jboss-parent:pom:16 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty @ org.jboss.integration-platform:jboss-integration-platform-parent:6.0.0.CR30-redhat-1, /home/jdurani/redhat/tests/quickstarts_test/./downloaded_local_repos/repository_quickstart_16_03_2016__10_37_54/org/jboss/integration-platform/jboss-integration-platform-parent/6.0.0.CR30-redhat-1/jboss-integration-platform-parent-6.0.0.CR30-redhat-1.pom, line 5, column 11
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.jboss.teiid.quickstart:teiid-quickstart-parent:3.0.0.redhat-63-4 (/home/jdurani/redhat/tests/quickstarts_test/quickstarts/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.jboss.integration-platform:jboss-integration-platform-parent:6.0.0.CR30-redhat-1: Could not transfer artifact org.jboss:jboss-parent:pom:16 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty @ org.jboss.integration-platform:jboss-integration-platform-parent:6.0.0.CR30-redhat-1, /home/jdurani/redhat/tests/quickstarts_test/./downloaded_local_repos/repository_quickstart_16_03_2016__10_37_54/org/jboss/integration-platform/jboss-integration-platform-parent/6.0.0.CR30-redhat-1/jboss-integration-platform-parent-6.0.0.CR30-redhat-1.pom, line 5, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Comment 1 Alex Szczuczko 2016-03-16 12:33:30 UTC
The maven error makes it seem like it's related to the integration-platform-parent pom, but if you look closely, the root exception is a JVM-internal error:

java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Searching this indicates that the trust store path is probably misconfigured, and since maven is trying to download via HTTPS, it makes sense that would be required.

So, this doesn't look a build problem. Please check the trust store in your local JVM is configured correctly? Thanks.

Comment 2 Juraj Duráni 2016-03-17 08:14:13 UTC
The exception is only result not the cause. The maven failed to find artifact in zip repository, therefore it tries to find it in central and fails because of bad configuration. But the point still is, that it should not even try to look for the artifact in maven central, because the artifact should be in the zip repository.

> Artifact jboss-integration-platform-parent:
<parent>
  <groupId>org.jboss</groupId>
  <artifactId>jboss-parent</artifactId>
  <version>16</version>
  <relativePath></relativePath>
</parent>
<groupId>org.jboss.integration-platform</groupId>
<artifactId>jboss-integration-platform-parent</artifactId>

> Versions in the zip repository:
10-redhat-2
11-redhat-1
14.0.0.redhat-1
16.0.0.redhat-1
8-redhat-1
9-redhat-1

Comment 3 Alex Szczuczko 2016-03-17 11:07:13 UTC
Sorry, I confirm jboss-parent:16 isn't present, and is set as the parent of jboss-integration-platform-parent:6.0.0.CR30-redhat-1. I'm not currently sure why the maven repository generator missed it.

Comment 4 Alex Szczuczko 2016-03-17 11:19:30 UTC
I asked pkocandr, and he reminded me that any artifacts that are present in Maven Central are deliberately filtered from the repo zips.

A missing jboss-parent:16 is compliant with the MRRC requirements[1] since it is present in Central[2], and the requirements state all artifacts must "be included in the product maven repository or be available in Maven central"

So, I think my original suggestion (fix the JVM trust store) stands, as the quickstarts are allowed to require access to Maven Central. Juraj, if you agree I will close this as NOTABUG.

[1] https://mojo.redhat.com/docs/DOC-187749
[2] http://central.maven.org/maven2/org/jboss/jboss-parent/16/

Comment 5 Juraj Duráni 2016-03-17 11:58:56 UTC
OK, close the bug.

Comment 6 Juraj Duráni 2016-03-17 13:54:12 UTC
Anyway, there is still at least one missing dependency. I logged a new issue - https://bugzilla.redhat.com/show_bug.cgi?id=1318684


Note You need to log in before you can comment on or make changes to this bug.