[GRADLE-2820] setupBuild doesn't work when POM references external parent POM Created: 02/Jul/13 Updated: 08/Sep/13 Resolved: 08/Sep/13 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 1.9-rc-1 |
Type: | Task | ||
Reporter: | Gradle Forums | Assignee: | René Gröschke (Inactive) |
Resolution: | Fixed | Votes: | 1 |
Description |
I'm trying to use gradle setupBuild to convert a Maven POM. I immediately get the error: [FATAL] Non-resolvable parent POM: Could not transfer artifact org.jasig.parent:jasig-parent:pom:34 from/to Central1 ([1]http://repo1.maven.org/maven2): No connector available to access repository Central1 ([2]http://repo1.maven.org/maven2) of type default using the Can anyone point me in the direction of what is causing this issue, please? |
Comments |
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Can you provide more information (full error message, stack trace (`-s`), POM)? | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Here's the complete stacktrace:
at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195) BUILD FAILED Total time: 2.797 secs | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
And here is the pom.xml which is available on Maven Central. org.jasig.parent 3.0.0 4.0.0 uPortal Parent scm:git:git://github.com/Jasig/uPortal.git ${jasig-issues-base}/UP bamboo mail sonatype-nexus-snapshots apache-snapshots sonatype-nexus-snapshots apache-snapshots <!-- The final name of the uPortal web-application --> <!-- The JDBC Driver used by uPortal --> <!--
<!-- WAR Dependency Version Properties --> <!-- Project Dependency Version Properties --> <!--
1.6 uportal-war org.antlr aopalliance cglib ch.qos.logback com.google.guava com.googlecode.cernunnos commons-logging cvsclient org.springframework net.sf.retrotranslator rhino js-engine xercesImpl xml-apis xom org.codehaus.groovy org.springframework.ldap groovy-engine script-api com.googlecode.ehcache-spring-annotations com.thoughtworks.xstream commons-cli commons-codec commons-collections commons-dbcp commons-fileupload commons-httpclient commons-logging org.apache.httpcomponents commons-logging commons-io commons-lang commons-pool org.apache.commons org.apache.commons org.apache.tika org.apache.tomcat dom4j xml-apis edu.internet2.middleware.grouper com.google.visualization commons-logging org.hsqldb org.hsqldb org.javassist org.jgroups com.ibm.icu javax.activation javax.ccpp javax.mail javax.portlet javax.servlet.jsp javax.servlet javax.servlet jline joda-time junit jtidy net.sf.ehcache net.sf.ehcache net.sf.json-lib log4j org.jvnet.jaxb2_commons org.mockito org.objenesis org.quartz-scheduler org.apache.ant org.apache.ant org.apache.portals.pluto org.apache.portals.pluto javax.xml.bind com.sun.xml.bind stax org.apache.portals.pluto org.apache.portals.pluto org.apache.portals.pluto org.jasig.ehcache org.apache.portals.pluto org.apache.portals.pluto org.slf4j org.aspectj org.aspectj org.codehaus.groovy org.codehaus.groovy org.codehaus.groovy org.codehaus.groovy org.codehaus.jackson org.codehaus.jackson org.codehaus.jackson org.codehaus.staxmate stax-api stax-api org.codehaus.woodstox stax-api org.easymock org.fusesource.jansi org.hibernate org.hibernate org.hibernate org.hibernate org.hibernate.javax.persistence org.jasig.cas.client commons-logging org.jasig.cas org.jasig.portal org.jasig.portlet.utils commons-logging org.jasig.resourceserver commons-logging org.jasig.resourceserver commons-logging org.jasig.service.persondir org.jasig.service.persondir commons-logging com.sun.xml.bind javax.xml.bind javax.xml.stream org.springframework.ldap org.jasypt org.jadira.usertype org.jadira.usertype org.slf4j org.slf4j org.slf4j org.slf4j org.springframework org.springframework org.springframework org.springframework org.springframework org.springframework commons-logging org.springframework org.springframework org.springframework org.springframework org.springframework org.springframework org.springframework org.springframework org.springframework org.springframework.ldap commons-logging org.springframework.ldap commons-logging org.springframework.security org.springframework.security org.springframework.security org.springframework.webflow commons-logging org.springframework.webflow commons-logging org.springmodules log4j commons-logging org.springframework gigaspaces jini jini jini jini jini jini jini commons-attributes commons-attributes jboss jboss jboss jboss jboss jboss jcs jgroups geronimo-spec xpp3 xjavadoc xstream opensymphony ehcache oro taglibs xmlunit maven-clean-plugin ${basedir}/assembly/target ** false maven-enforcer-plugin enforce-versions enforce 2.2 1.6 com.mycila.maven-license-plugin true **/NOTICE XML_STYLE org.jasig.maven NOTICE.template uportal-portlets-overlay maven-clean-plugin maven-compiler-plugin ${project.build.sourceEncoding} maven-deploy-plugin maven-ear-plugin maven-enforcer-plugin maven-install-plugin maven-jar-plugin maven-release-plugin true false maven-resources-plugin org.jasig.maven MERGE maven-javadoc-plugin [9]http://java.sun.com/javase/6/docs/api/ 768m org.codehaus.mojo maven-source-plugin maven-surefire-plugin maven-war-plugin org.apache.portals.pluto org.codehaus.mojo org.jasig.portal org.jasig.portal.maven org.jvnet.jaxb2.maven2 generate 2.1 -XtoString org.jvnet.jaxb2_commons org.jvnet.jaxb2_commons <!--
ci-local-site ci-local-site <!--
manual-site developer.jasig | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Can anyone give me an idea of what I'm doing wrong here, please? | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Peter, can you take a look at the extra items I specified, please? | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
The error message mentions something about your local cache. I suggest cleaning your ~/.m2/repository directory and trying again. | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Luke, I tried that but I get exactly the same error. Can you help, please? | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Based on the error message, it appears that `org.jasig.portal:uportal-parent:4.1.0-SNAPSHOT` depends on something that can't be found (likely because it doesn't exist in the central repository and Maven is not configured to look anywhere else). It's originating from line 4 of /Users/hart404/git/uPortal/pom.xml. I can only guess that this is listing a parent of some version of `org.jasig.parent:jasig-parent` that Maven can't find. | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Luke, I hate to say this but the artifact is there. Check out [1]http://search.maven.org/#artifactdeta... | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Then besides removing the parent POM, I'm out of ideas. | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
OK, so I did a mvn install and all artifacts downloaded so it is clearly not an issue with Maven. I then did a gradle setupBuild --stacktrace --info I got the following error. Can anyone help, please? Starting Build FAILURE: Build failed with an exception.
BUILD FAILED | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
If you can provide a minimal self-contained sample that allows to reproduce the problem, I'll have a look. | ||||||||||||||||||||||||
Comment by Gradle Forums [ 02/Jul/13 ] | ||||||||||||||||||||||||
Peter, many thanks! Go to GitHub and clone Jasig/uPortal. Then try to do a mvn install inside the top level directory. Then do the gradle setupBuild. Is that enough information for you? |