setupBuild doesn't work when POM references external parent POM


(Phil Hartley) #1

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 (http://repo1.maven.org/maven2): No connector available to access repository Central1 (http://repo1.maven.org/maven2) of type default using the

Can anyone point me in the direction of what is causing this issue, please?


(Peter Niederwieser) #2

Can you provide more information (full error message, stack trace (’-s’), POM)?


(Phil Hartley) #3

Here’s the complete stacktrace:

  • Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:maven2Gradle’.

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)

at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter$1.run(CacheLockReleasingTaskExecuter.java:35)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)

at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142)

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)

at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter.execute(CacheLockReleasingTaskExecuter.java:33)

at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:58)

at org.gradle.api.internal.tasks.execution.ContextualisingTaskExecuter.execute(ContextualisingTaskExecuter.java:34)

at org.gradle.api.internal.changedetection.state.CacheLockAcquiringTaskExecuter$1.run(CacheLockAcquiringTaskExecuter.java:39)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)

at org.gradle.api.internal.changedetection.state.CacheLockAcquiringTaskExecuter.execute(CacheLockAcquiringTaskExecuter.java:37)

at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)

at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)

at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)

at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)

at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)

at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:282)

at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:48)

at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:34)

at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:27)

at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:89)

at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)

at org.gradle.api.internal.changedetection.state.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)

at org.gradle.api.internal.changedetection.state.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)

at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)

at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)

at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)

at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)

at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)

at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)

at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)

at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)

at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)

at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)

at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)

at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

at org.gradle.launcher.Main.doAction(Main.java:48)

at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

at org.gradle.launcher.Main.main(Main.java:39)

at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)

at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)

at org.gradle.launcher.GradleMain.main(GradleMain.java:26) Caused by: org.gradle.api.GradleException: Unable to create Maven project model using POM file: /Users/hart404/git/uPortal/pom.xml

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.create(MavenProjectsCreator.java:54)

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator$create.call(Unknown Source)

at org.gradle.buildsetup.tasks.ConvertMaven2Gradle.convertNow(ConvertMaven2Gradle.groovy:50)

at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:216)

at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)

at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)

at org.gradle.buildsetup.tasks.ConvertMaven2Gradle_Decorated.invokeMethod(Unknown Source)

at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)

at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:217)

at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)

at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:199)

at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:526)

at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:509)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

… 67 more Caused by: org.gradle.mvn3.org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for org.jasig.portal:uportal-parent:4.1.0-SNAPSHOT [FATAL] Non-resolvable parent POM: Could not transfer artifact org.jasig.parent:jasig-parent:pom:34 from/to Central1 (http://repo1.maven.org/maven2): No connector available to access repository Central1 (http://repo1.maven.org/maven2) of type default using the available factories and ‘parent.relativePath’ points at wrong local POM @ line 4, column 13

for project org.jasig.portal:uportal-parent:4.1.0-SNAPSHOT at /Users/hart404/git/uPortal/pom.xml

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:149)

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102)

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.createNow(MavenProjectsCreator.java:74)

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.create(MavenProjectsCreator.java:52)

… 81 more Caused by: org.gradle.mvn3.org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for org.jasig.portal:uportal-parent:4.1.0-SNAPSHOT [FATAL] Non-resolvable parent POM: Could not transfer artifact org.jasig.parent:jasig-parent:pom:34 from/to Central1 (http://repo1.maven.org/maven2): No connector available to access repository Central1 (http://repo1.maven.org/maven2) of type default using the available factories and ‘parent.relativePath’ points at wrong local POM @ line 4, column 13

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:195)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:841)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:142)

… 84 more

BUILD FAILED

Total time: 2.797 secs


(Phil Hartley) #4

And here is the pom.xml which is available on Maven Central.

<?xml version="1.0" encoding="UTF-8"?>

org.jasig.parent

jasig-parent

34

3.0.0

4.0.0

org.jasig.portal

uportal-parent

4.1.0-SNAPSHOT

pom

uPortal Parent

The root project definition for the uPortal project.

${jasig-site-base}/uportal/${project.version}

scm:git:git://github.com/Jasig/uPortal.git

scm:git:git@github.com:Jasig/uPortal.git

https://github.com/Jasig/uPortal

${jasig-issues-base}/UP

${jasig-issues-system}

bamboo

http://developer.jasig.org/bamboo/browse/UP

mail

true

true

false

false

uportal-dev@lists.ja-sig.org

sonatype-nexus-snapshots

Sonatype Nexus Snapshots

http://oss.sonatype.org/content/repositories/snapshots

false

true

apache-snapshots

Apache Snapshots

http://repository.apache.org/snapshots

false

true

sonatype-nexus-snapshots

Sonatype Nexus Snapshots

http://oss.sonatype.org/content/repositories/snapshots

false

true

apache-snapshots

Apache Snapshots

http://repository.apache.org/snapshots

false

true

<uportal.docbase>uPortal</uportal.docbase>

/uportal/${project.version}

<jdbc.groupId>org.hsqldb</jdbc.groupId>

<jdbc.artifactId>hsqldb</jdbc.artifactId>

<jdbc.version>${hsqldb.version}</jdbc.version>

local

<filters.file>filters/${env}.properties</filters.file>

<BookmarksPortlet.version>1.0.11</BookmarksPortlet.version>

<CalendarPortlet.version>2.1.0-RC2</CalendarPortlet.version>

<cas-server.version>3.5.1</cas-server.version>

<cas-proxy-test-portlet.version>1.0.0-RC3</cas-proxy-test-portlet.version>

<email-preview.version>2.0.4</email-preview.version>

<FunctionalTestsPortlet.version>1.1.0</FunctionalTestsPortlet.version>

<jasig-widget-portlets.version>1.0.4</jasig-widget-portlets.version>

<NewsReaderPortlet.version>3.0.5</NewsReaderPortlet.version>

<NotificationPortlet.version>2.0.1</NotificationPortlet.version>

<SimpleContentPortlet.version>1.0.6</SimpleContentPortlet.version>

<WeatherPortlet.version>1.0.9</WeatherPortlet.version>

<WebProxyPortlet.version>1.1.7</WebProxyPortlet.version>

<aopalliance.version>1.0</aopalliance.version>

<activation.version>1.1.1</activation.version>

<ant.version>1.8.4</ant.version>

<aspectjrt.version>1.7.1</aspectjrt.version>

<aspectjweaver.version>1.7.1</aspectjweaver.version>

<casclient.version>3.2.1</casclient.version>

<ccpp.version>1.0</ccpp.version>

<cernunnos.version>1.2.2</cernunnos.version>

<cglib.version>2.2.2</cglib.version>

<commons-cli.version>1.2</commons-cli.version>

<commons-codec.version>1.7</commons-codec.version>

<commons-collections.version>3.2.1</commons-collections.version>

<commons-compress.version>1.4.1</commons-compress.version>

<commons-dbcp.version>1.4</commons-dbcp.version>

<commons-fileupload.version>1.2.2</commons-fileupload.version>

<commons-httpclient.version>3.1</commons-httpclient.version>

<commons-httpcomponents.version>4.2.3</commons-httpcomponents.version>

<commons-io.version>2.4</commons-io.version>

<commons-lang.version>2.6</commons-lang.version>

<commons-pool.version>1.6</commons-pool.version>

<commons-math3.version>3.1</commons-math3.version>

<dom4j.version>1.6.1</dom4j.version>

<easymock.version>3.1</easymock.version>

<ejb3-persistence.version>1.0.1.GA</ejb3-persistence.version>

<ehcache.version>2.6.2</ehcache.version>

<ehcache-jgroups3replication.version>1.7.4</ehcache-jgroups3replication.version>

<ehcache-spring-annotations.version>1.2.0</ehcache-spring-annotations.version>

<ehcache-web.version>2.0.4</ehcache-web.version>

<google-visualization.version>1.1.1</google-visualization.version>

<guava.version>13.0.1</guava.version>

<groovy.version>2.0.6</groovy.version>

<grouperClient.version>1.6.3</grouperClient.version>

<hibernate.version>4.1.9.Final</hibernate.version>

<hibernate-jpamodelgen.version>1.2.0.Final</hibernate-jpamodelgen.version>

<hibernate-jpa-api.version>1.0.1.Final</hibernate-jpa-api.version>

<hsqldb.version>2.2.9</hsqldb.version>

<icu4j.version>50.1.1</icu4j.version>

<jackson.version>1.9.11</jackson.version>

<jansi.version>1.8</jansi.version>

<javassist.version>3.17.1-GA</javassist.version>

<jasig-portlet-utils.version>1.0.1</jasig-portlet-utils.version>

<jasypt.version>1.9.0</jasypt.version>

<jaxb2basics.version>0.6.4</jaxb2basics.version>

<jdom.version>1.0</jdom.version>

<jgroups.version>3.2.5.Final</jgroups.version>

<jline.version>1.0</jline.version>

<joda-time.version>2.1</joda-time.version>

<json-lib-ext-spring.version>1.0.2</json-lib-ext-spring.version>

<jsp-api.version>2.2</jsp-api.version>

<jstl.version>1.2</jstl.version>

<jtidy.version>4aug2000r7-dev</jtidy.version>

<junit.version>4.11</junit.version>

<logback.version>1.0.9</logback.version>

<mail.version>1.4.5</mail.version>

<mockito.version>1.9.5</mockito.version>

<objenesis.version>1.2</objenesis.version>

<org.springframework.webflow.version>2.3.1.RELEASE</org.springframework.webflow.version>

<oro.version>2.0.8</oro.version>

<persistence-api.version>1.0</persistence-api.version>

<person-directory.version>1.5.2-M1</person-directory.version>

<pluto.version>2.1.0-M3</pluto.version>

<portlet-api.version>2.0</portlet-api.version>

<quartz.version>1.8.4</quartz.version>

<resource-server.version>1.0.27</resource-server.version>

<servlet-api.version>3.0.1</servlet-api.version>

<slf4j.version>1.7.2</slf4j.version>

<spring-framework.version>3.1.3.RELEASE</spring-framework.version>

<spring-ldap.version>1.3.1.RELEASE</spring-ldap.version>

<spring-security.version>3.1.3.RELEASE</spring-security.version>

<standard.version>1.1.2</standard.version>

<stax-api.version>1.0.1</stax-api.version>

<staxmate.version>2.0.1</staxmate.version>

<stringtemplate.version>4.0.2</stringtemplate.version>

<tika.version>1.3</tika.version>

<tomcat-jdbc.version>7.0.34</tomcat-jdbc.version>

<uportal-ear-deployer.version>1.0.1</uportal-ear-deployer.version>

<uportal-maven-plugin.version>1.0.0</uportal-maven-plugin.version>

<usertype.version>3.0.0.GA</usertype.version>

<woodstox.version>4.1.4</woodstox.version>

<xmlunit.version>1.3</xmlunit.version>

<xstream.version>1.4.2</xstream.version>

<mobile.user.agent.regex>(.iPhone.)|(.Android.)|(.IEMobile.)|(.*Safari.Pre.)|(.*Nokia.AppleWebKit.)|(.Black[Bb]erry.)|(.Opera Mobile.)|(.Windows Phone.)|(.Fennec.)|(.Minimo.)</mobile.user.agent.regex>

<project.build.sourceVersion>1.6</project.build.sourceVersion>

<project.build.targetVersion>1.6</project.build.targetVersion>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

uportal-war

uportal-ear

uportal-portlets-overlay

bootstrap

uportal-search-api

org.antlr

stringtemplate

${stringtemplate.version}

aopalliance

aopalliance

${aopalliance.version}

cglib

cglib-nodep

${cglib.version}

ch.qos.logback

logback-classic

${logback.version}

com.google.guava

guava

${guava.version}

com.googlecode.cernunnos

cernunnos

${cernunnos.version}

commons-logging

commons-logging

cvsclient

org.netbeans.lib

org.springframework

spring

net.sf.retrotranslator

retrotranslator-runtime

rhino

js

js-engine

javax.script

xercesImpl

xerces

xml-apis

xml-apis

xom

xom

org.codehaus.groovy

groovy-all

org.springframework.ldap

spring-ldap

groovy-engine

javax.script

script-api

javax.script

com.googlecode.ehcache-spring-annotations

ehcache-spring-annotations

${ehcache-spring-annotations.version}

com.thoughtworks.xstream

xstream

${xstream.version}

commons-cli

commons-cli

${commons-cli.version}

commons-codec

commons-codec

${commons-codec.version}

commons-collections

commons-collections

${commons-collections.version}

commons-dbcp

commons-dbcp

${commons-dbcp.version}

commons-fileupload

commons-fileupload

${commons-fileupload.version}

commons-httpclient

commons-httpclient

${commons-httpclient.version}

commons-logging

commons-logging

org.apache.httpcomponents

httpcore

${commons-httpcomponents.version}

commons-logging

commons-logging

commons-io

commons-io

${commons-io.version}

commons-lang

commons-lang

${commons-lang.version}

commons-pool

commons-pool

${commons-pool.version}

org.apache.commons

commons-math3

${commons-math3.version}

org.apache.commons

commons-compress

${commons-compress.version}

org.apache.tika

tika-core

${tika.version}

org.apache.tomcat

tomcat-jdbc

${tomcat-jdbc.version}

dom4j

dom4j

${dom4j.version}

xml-apis

xml-apis

edu.internet2.middleware.grouper

grouperClient

${grouperClient.version}

com.google.visualization

visualization-datasource

${google-visualization.version}

commons-logging

commons-logging

org.hsqldb

hsqldb

${hsqldb.version}

org.hsqldb

sqltool

${hsqldb.version}

org.javassist

javassist

${javassist.version}

org.jgroups

jgroups

${jgroups.version}

com.ibm.icu

icu4j

${icu4j.version}

javax.activation

activation

${activation.version}

javax.ccpp

ccpp

${ccpp.version}

javax.mail

mail

${mail.version}

javax.portlet

portlet-api

${portlet-api.version}

javax.servlet.jsp

jsp-api

${jsp-api.version}

javax.servlet

jstl

${jstl.version}

javax.servlet

javax.servlet-api

${servlet-api.version}

jline

jline

${jline.version}

joda-time

joda-time

${joda-time.version}

junit

junit

${junit.version}

jtidy

jtidy

${jtidy.version}

net.sf.ehcache

ehcache-core

${ehcache.version}

net.sf.ehcache

ehcache-web

${ehcache-web.version}

net.sf.json-lib

json-lib-ext-spring

${json-lib-ext-spring.version}

log4j

log4j

org.jvnet.jaxb2_commons

jaxb2-basics-runtime

${jaxb2basics.version}

org.mockito

mockito-core

${mockito.version}

org.objenesis

objenesis

${objenesis.version}

org.quartz-scheduler

quartz

${quartz.version}

org.apache.ant

ant

${ant.version}

org.apache.ant

ant-launcher

${ant.version}

org.apache.portals.pluto

pluto-ant-tasks

${pluto.version}

org.apache.portals.pluto

pluto-container

${pluto.version}

javax.xml.bind

jaxb-api

com.sun.xml.bind

jaxb-impl

stax

stax

org.apache.portals.pluto

pluto-container-api

${pluto.version}

org.apache.portals.pluto

pluto-portal-driver

${pluto.version}

org.apache.portals.pluto

pluto-container-driver-api

${pluto.version}

org.jasig.ehcache

ehcache-jgroups3replication

${ehcache-jgroups3replication.version}

org.apache.portals.pluto

pluto-taglib

${pluto.version}

org.apache.portals.pluto

pluto-util

${pluto.version}

org.slf4j

slf4j-jdk14

org.aspectj

aspectjrt

${aspectjrt.version}

org.aspectj

aspectjweaver

${aspectjweaver.version}

org.codehaus.groovy

groovy

${groovy.version}

org.codehaus.groovy

groovy-groovysh

${groovy.version}

org.codehaus.groovy

groovy-jsr223

${groovy.version}

org.codehaus.groovy

groovy-xml

${groovy.version}

org.codehaus.jackson

jackson-core-asl

${jackson.version}

org.codehaus.jackson

jackson-mapper-asl

${jackson.version}

org.codehaus.jackson

jackson-xc

${jackson.version}

org.codehaus.staxmate

staxmate

${staxmate.version}

stax-api

stax

stax-api

javax.xml.stream

org.codehaus.woodstox

woodstox-core-asl

${woodstox.version}

stax-api

javax.xml.stream

org.easymock

easymock

${easymock.version}

org.fusesource.jansi

jansi

${jansi.version}

org.hibernate

hibernate-core

${hibernate.version}

org.hibernate

hibernate-ehcache

${hibernate.version}

org.hibernate

hibernate-entitymanager

${hibernate.version}

org.hibernate</group


(Phil Hartley) #5

Can anyone give me an idea of what I’m doing wrong here, please?


(Phil Hartley) #6

Peter, can you take a look at the extra items I specified, please?


(Luke Daley) #7

The error message mentions something about your local cache. I suggest cleaning your ~/.m2/repository directory and trying again.


(Phil Hartley) #8

Luke, I tried that but I get exactly the same error. Can you help, please?


(Luke Daley) #9

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.


(Phil Hartley) #10

Luke, I hate to say this but the artifact is there. Check out http://search.maven.org/#artifactdetails|org.jasig.parent|jasig-parent|34|pom


(Luke Daley) #11

Then besides removing the parent POM, I’m out of ideas.


(Phil Hartley) #12

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 Settings evaluated using empty settings script. Projects loaded. Root project using empty build file. Included projects: [root project ‘uPortal’] Evaluating root project ‘uPortal’ using empty build file. All projects evaluated. Selected primary task ‘setupBuild’ Tasks to be executed: [task ‘:maven2Gradle’, task ‘:setupWrapper’, task ‘:setupBuild’] :maven2Gradle Task ‘:maven2Gradle’ has not declared any outputs, assuming that it is out-of-date. Maven to Gradle conversion is an incubating feature. Enjoy it and let us know how it works for you. :maven2Gradle FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:maven2Gradle’. > Unable to create Maven project model using POM file: /Users/hart404/git/uPortal/pom.xml

  • Try: Run with --debug option to get more log output.

  • Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:maven2Gradle’.

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)

at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter$1.run(CacheLockReleasingTaskExecuter.java:35)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)

at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142)

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)

at org.gradle.api.internal.changedetection.state.CacheLockReleasingTaskExecuter.execute(CacheLockReleasingTaskExecuter.java:33)

at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:58)

at org.gradle.api.internal.tasks.execution.ContextualisingTaskExecuter.execute(ContextualisingTaskExecuter.java:34)

at org.gradle.api.internal.changedetection.state.CacheLockAcquiringTaskExecuter$1.run(CacheLockAcquiringTaskExecuter.java:39)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)

at org.gradle.api.internal.changedetection.state.CacheLockAcquiringTaskExecuter.execute(CacheLockAcquiringTaskExecuter.java:37)

at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)

at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)

at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)

at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)

at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)

at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:282)

at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:48)

at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:34)

at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:27)

at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:89)

at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)

at org.gradle.api.internal.changedetection.state.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)

at org.gradle.internal.Factories$1.create(Factories.java:22)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)

at org.gradle.api.internal.changedetection.state.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)

at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)

at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)

at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)

at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)

at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)

at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)

at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)

at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)

at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)

at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)

at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)

at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)

at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)

at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

at org.gradle.launcher.Main.doAction(Main.java:48)

at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

at org.gradle.launcher.Main.main(Main.java:39)

at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)

at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)

at org.gradle.launcher.GradleMain.main(GradleMain.java:26) Caused by: org.gradle.api.GradleException: Unable to create Maven project model using POM file: /Users/hart404/git/uPortal/pom.xml

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.create(MavenProjectsCreator.java:54)

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator$create.call(Unknown Source)

at org.gradle.buildsetup.tasks.ConvertMaven2Gradle.convertNow(ConvertMaven2Gradle.groovy:50)

at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:216)

at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)

at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)

at org.gradle.buildsetup.tasks.ConvertMaven2Gradle_Decorated.invokeMethod(Unknown Source)

at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23)

at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:217)

at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)

at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:199)

at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:526)

at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:509)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

… 67 more Caused by: java.lang.NullPointerException

at org.gradle.mvn3.org.apache.maven.plugin.CacheUtils.getWorkspace(CacheUtils.java:207)

at org.gradle.mvn3.org.apache.maven.plugin.DefaultPluginArtifactsCache$CacheKey.(DefaultPluginArtifactsCache.java:67)

at org.gradle.mvn3.org.apache.maven.plugin.DefaultPluginArtifactsCache.createKey(DefaultPluginArtifactsCache.java:141)

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:223)

at org.gradle.mvn3.org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:106)

at org.gradle.mvn3.org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire(ModelBuildingEventCatapult.java:43)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:1053)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:388)

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:371)

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:560)

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:566)

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:352)

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.createNow(MavenProjectsCreator.java:83)

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.create(MavenProjectsCreator.java:52)

… 81 more

BUILD FAILED


(Peter Niederwieser) #13

If you can provide a minimal self-contained sample that allows to reproduce the problem, I’ll have a look.


(Phil Hartley) #14

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?


(Peter Niederwieser) #15

Looks like ‘setupBuild’ can’t handle external parent POMs. (Also tried with ‘http://svn.apache.org/repos/asf/myfaces/core/trunk’, same result). I’ve raised GRADLE-2820 for this.