Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super POM Distribution Repository #7

Closed
pfink opened this issue May 21, 2019 · 8 comments
Closed

Super POM Distribution Repository #7

pfink opened this issue May 21, 2019 · 8 comments

Comments

@pfink
Copy link
Collaborator

pfink commented May 21, 2019

@kaikreuzer: We have to decide where to upload this artifact? Only JFrog or also Bintray? What is your suggestion? Do we have to create a new repository?

@pfink pfink changed the title Distribution Repository Super POM Distribution Repository May 21, 2019
@maggu2810
Copy link

As the repository URLs are part of the Super POM I assume the "where" has been "Maven Central".

@kaikreuzer
Copy link
Member

@pfink Should be Bintray - I have created https://bintray.com/openhab/mvn/openhab-super-pom as a package for it.
From there, it can be published to JCenter and Maven Central.

@wborn
Copy link
Member

wborn commented May 30, 2019

The openHAB2-Bundles build fails because it cannot find the super POM @openhab/infrastructure-maintainers :

See https://ci.openhab.org/job/openHAB2-Bundles/648/console:

10:32:47 Failed to transfer Could not find artifact org.openhab:openhab-super-pom:pom:[1.0, 2.0) in central (https://openhab.jfrog.io/openhab/libs-release)
10:32:48 Downloaded artifact https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/addons/org.openhab.addons.reactor/2.5.0-SNAPSHOT/maven-metadata.xml
10:32:48 Downloaded artifact https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/addons/org.openhab.addons.reactor/2.5.0-SNAPSHOT/maven-metadata.xml
10:32:49 Downloaded artifact https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/addons/org.openhab.addons.reactor/2.5.0-SNAPSHOT/org.openhab.addons.reactor-2.5.0-20190529.040733-49.pom
10:32:49 ERROR: Failed to parse POMs
10:32:49 org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
10:32:49 [WARNING] 'parent.relativePath' points at org.openhab.bundles:pom instead of org.openhab:openhab-super-pom, please verify your project structure @ line 5, column 11
10:32:49 [FATAL] Non-resolvable parent POM: Could not find artifact org.openhab:openhab-super-pom:pom:[1.0, 2.0) in central (https://openhab.jfrog.io/openhab/libs-release) and 'parent.relativePath' points at wrong local POM @ line 5, column 11

The openHAB-WebUI build seems to have the same issue.

See https://ci.openhab.org/job/openHAB-WebUI/41/console:

10:41:44 Failed to transfer Could not find artifact org.openhab:openhab-super-pom:pom:[1.0, 2.0) in central (https://ci.openhab.org/artifactory/libs-release)
10:41:44 ERROR: Failed to parse POMs
10:41:44 org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
10:41:44 [FATAL] Non-resolvable parent POM: Could not find artifact org.openhab:openhab-super-pom:pom:[1.0, 2.0) in central (https://ci.openhab.org/artifactory/libs-release) and 'parent.relativePath' points at wrong local POM @ line 6, column 11

@kaikreuzer
Copy link
Member

@pfink & @wborn The issue of non-resolvable parent pom is back on https://ci.openhab.org/job/openHAB2-Bundles/...

@wborn
Copy link
Member

wborn commented Jun 10, 2019

The only difference I see between the failing build and the last successful build is that the successful build was using a repository named "dummy":

https://ci.openhab.org/job/openHAB2-Bundles/666/consoleFull shows:

17:35:07 [openHAB2-Bundles] $ /var/jenkins_home/tools/hudson.model.JDK/Oracle_JDK_1.8_latest_/bin/java -Xms512m -Xmx2048m -Djava.awt.headless=true -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.12.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.1/boot/plexus-classworlds-2.6.0.jar:/var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.1/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.1 /var/jenkins_home/war/WEB-INF/lib/remoting-3.29.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.12.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12.jar 43837
17:35:09 <===[JENKINS REMOTING CAPACITY]===>channel started
17:35:13 Executing Maven:  -B -f /var/jenkins_home/workspace/openHAB2-Bundles/pom.xml -Dmaven.repo.local=/var/jenkins_home/workspace/openHAB2-Bundles/.repository versions:revert clean install -B -DskipChecks=true -DskipTests=true
17:35:15 [INFO] Scanning for projects...
17:35:16 [INFO] Downloading from dummy: https://openhab.jfrog.io/openhab/libs-release/org/openhab/openhab-super-pom/1.0.0/openhab-super-pom-1.0.0.pom
17:35:17 [INFO] Downloaded from dummy: https://openhab.jfrog.io/openhab/libs-release/org/openhab/openhab-super-pom/1.0.0/openhab-super-pom-1.0.0.pom (0 B at 0 B/s)
17:35:19 [INFO] Downloading from dummy: https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/addons/org.openhab.addons.reactor/2.5.0-SNAPSHOT/maven-metadata.xml
17:35:20 [INFO] Downloaded from dummy: https://openhab.jfrog.io/openhab/libs-snapshot/org/openhab/addons/org.openhab.addons.reactor/2.5.0-SNAPSHOT/maven-metadata.xml (623 B at 2.0 kB/s)

I don't know why and how that repository was configured.

@kaikreuzer
Copy link
Member

@pfink Did you do any changes to the job config?

@pfink
Copy link
Collaborator Author

pfink commented Jun 10, 2019

No. the workaround did not work anymore because the addons POM was now in the snapshot repository (so it could only work for the first time until it's initially uploaded). I slightly adjusted it and now it works again!

@kaikreuzer
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants