[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?
----------------------------------------------------------------------------------------
[1] http://repo1.maven.org/maven2
[2] http://repo1.maven.org/maven2



 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:

  • 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 ([1]http://repo1.maven.org/maven2): No connector available to access repository Central1 ([2]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 ([3]http://repo1.maven.org/maven2): No connector available to access repository Central1 ([4]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
----------------------------------------------------------------------------------------
[1] http://repo1.maven.org/maven2
[2] http://repo1.maven.org/maven2
[3] http://repo1.maven.org/maven2
[4] http://repo1.maven.org/maven2

Comment by Gradle Forums [ 02/Jul/13 ]

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

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:[1]git@github.com:Jasig/uPortal.git
[2]https://github.com/Jasig/uPortal

${jasig-issues-base}/UP
${jasig-issues-system}

bamboo
[3]http://developer.jasig.org/bamboo/bro...

mail
true
true
false
false
[4]uportal-dev@lists.ja-sig.org

sonatype-nexus-snapshots
Sonatype Nexus Snapshots
[5]http://oss.sonatype.org/content/repos...
false
true

apache-snapshots
Apache Snapshots
[6]http://repository.apache.org/snapshots
false
true

sonatype-nexus-snapshots
Sonatype Nexus Snapshots
[7]http://oss.sonatype.org/content/repos...
false
true

apache-snapshots
Apache Snapshots
[8]http://repository.apache.org/snapshots
false
true

<!-- The final name of the uPortal web-application -->
uPortal
/uportal/${project.version}

<!-- The JDBC Driver used by uPortal -->
org.hsqldb
hsqldb
${hsqldb.version}

<!--

Environment name and filters file for environment-specific build
settings. By default <environment.name> is blank, and the filters
file is build.properties.
You can override the default by passing a -Denvironment.name
parameter, which Ant will do for you if you invoke Ant with
-Denv= {something}

. NOTE that Ant also adds a suffixed period (.)

character. If you want to override the default environment.name by
invoking Maven directly, you will have to append a period yourself.
+-->
local
filters/${env}.properties

<!-- WAR Dependency Version Properties -->
1.0.11
2.1.0-RC2
3.5.1
1.0.0-RC3
2.0.4
1.1.0
1.0.4
3.0.5
2.0.1
1.0.6
1.0.9
1.1.7

<!-- Project Dependency Version Properties -->
1.0
1.1.1
1.8.4
1.7.1
1.7.1
3.2.1
1.0
1.2.2
2.2.2
1.2
1.7
3.2.1
1.4.1
1.4
1.2.2
3.1
4.2.3
2.4
2.6
1.6
3.1
1.6.1
3.1
1.0.1.GA
2.6.2
1.7.4
1.2.0
2.0.4
1.1.1
13.0.1
2.0.6
1.6.3
4.1.9.Final
1.2.0.Final
1.0.1.Final
2.2.9
50.1.1
1.9.11
1.8
3.17.1-GA
1.0.1
1.9.0
0.6.4
1.0
3.2.5.Final
1.0
2.1
1.0.2
2.2
1.2
4aug2000r7-dev
4.11
1.0.9
1.4.5
1.9.5
1.2
2.3.1.RELEASE
2.0.8
1.0
1.5.2-M1
2.1.0-M3
2.0
1.8.4
1.0.27
3.0.1
1.7.2
3.1.3.RELEASE
1.3.1.RELEASE
3.1.3.RELEASE
1.1.2
1.0.1
2.0.1
4.0.2
1.3
7.0.34
1.0.1
1.0.0
3.0.0.GA
4.1.4
1.3
1.4.2

<!--

uPortal uses this expression to determine whether the user is on a
mobile device, such as a phone or a tablet, or a desktop/laptop
browser; users may also choose the mobile/non-mobile experience when
they log in.
+-->
(.iPhone.)
(.Android.) (.IEMobile.) (.Safari.*Pre.) (.Nokia.*AppleWebKit.) (.Black[Bb]erry.) (.Opera Mobile.) (.Windows Phone.) (.Fennec.) (.Minimo.)

1.6
1.6
UTF-8

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
hibernate-jpamodelgen
${hibernate-jpamodelgen.version}

org.hibernate.javax.persistence
hibernate-jpa-2.0-api
${hibernate-jpa-api.version}

org.jasig.cas.client
cas-client-core
${casclient.version}

commons-logging
commons-logging

org.jasig.cas
cas-server-extension-clearpass
${cas-server.version}

org.jasig.portal
uportal-ear-deployer
${uportal-ear-deployer.version}

org.jasig.portlet.utils
portlet-jdbc-util
${jasig-portlet-utils.version}

commons-logging
commons-logging

org.jasig.resourceserver
resource-server-api
${resource-server.version}

commons-logging
commons-logging

org.jasig.resourceserver
resource-server-utils
${resource-server.version}

commons-logging
commons-logging

org.jasig.service.persondir
person-directory-api
${person-directory.version}

org.jasig.service.persondir
person-directory-impl
${person-directory.version}

commons-logging
commons-logging

com.sun.xml.bind
jaxb-impl

javax.xml.bind
jaxb-api

javax.xml.stream
stax-api

org.springframework.ldap
spring-ldap

org.jasypt
jasypt
${jasypt.version}

org.jadira.usertype
usertype.core
${usertype.version}

org.jadira.usertype
usertype.spi
${usertype.version}

org.slf4j
slf4j-api
${slf4j.version}

org.slf4j
jcl-over-slf4j
${slf4j.version}

org.slf4j
jul-to-slf4j
${slf4j.version}

org.slf4j
log4j-over-slf4j
${slf4j.version}

org.springframework
spring-aop
${spring-framework.version}

org.springframework
spring-aspects
${spring-framework.version}

org.springframework
spring-beans
${spring-framework.version}

org.springframework
spring-context
${spring-framework.version}

org.springframework
spring-context-support
${spring-framework.version}

org.springframework
spring-core
${spring-framework.version}

commons-logging
commons-logging

org.springframework
spring-expression
${spring-framework.version}

org.springframework
spring-jdbc
${spring-framework.version}

org.springframework
spring-orm
${spring-framework.version}

org.springframework
spring-oxm
${spring-framework.version}

org.springframework
spring-test
${spring-framework.version}

org.springframework
spring-tx
${spring-framework.version}

org.springframework
spring-web
${spring-framework.version}

org.springframework
spring-webmvc
${spring-framework.version}

org.springframework
spring-webmvc-portlet
${spring-framework.version}

org.springframework.ldap
spring-ldap-core
${spring-ldap.version}

commons-logging
commons-logging

org.springframework.ldap
spring-ldap-core-tiger
${spring-ldap.version}

commons-logging
commons-logging

org.springframework.security
spring-security-config
${spring-security.version}

org.springframework.security
spring-security-core
${spring-security.version}

org.springframework.security
spring-security-web
${spring-security.version}

org.springframework.webflow
spring-binding
${org.springframework.webflow.version}

commons-logging
commons-logging

org.springframework.webflow
spring-webflow
${org.springframework.webflow.version}

commons-logging
commons-logging

org.springmodules
spring-modules-cache
0.8a

log4j
log4j

commons-logging
commons-logging

org.springframework
spring

gigaspaces
gigaspaces-ce

jini
jsk-lib

jini
jsk-platform

jini
mahalo

jini
reggie

jini
start

jini
boot

jini
webster

commons-attributes
commons-attributes-api

commons-attributes
commons-attributes-compiler

jboss
javassist

jboss
jboss-cache

jboss
jboss-common

jboss
jboss-jmx

jboss
jboss-minimal

jboss
jboss-system

jcs
jcs

jgroups
jgroups-all

geronimo-spec
geronimo-spec-jta

xpp3
xpp3_min

xjavadoc
xjavadoc

xstream
xstream

opensymphony
oscache

ehcache
ehcache

oro
oro
${oro.version}

taglibs
standard
${standard.version}

xmlunit
xmlunit
${xmlunit.version}

maven-clean-plugin
false

${basedir}/assembly/target

**

false

maven-enforcer-plugin

enforce-versions

enforce

2.2

1.6

com.mycila.maven-license-plugin
maven-license-plugin

true

**/NOTICE
README
LICENSE
jquery.css
data/*
*/fluid/fluid..css
*/.channel
*/.channel-type
*/.entity-type
*/.fragment-layout
*/.group_membership
*/.layout
*/.permission
*/.permission_owner
*/.disabled
*/.permission_set
*/.profile
*/.structure
*/.theme
*/.user
*/.template-user
*/.example
*/.res
*/.ent
*/.psd
build.properties
*/src/main/webapp/media/skins/universality/hc/jquery-ui-1.7.2.custom/*
*/src/test/resources/org/jasig/portal/io/xml/*/expected..xml
.idea/**

XML_STYLE
XML_STYLE
XML_STYLE
XML_STYLE
XML_STYLE
DYNASCRIPT_STYLE
DYNASCRIPT_STYLE
SCRIPT_STYLE

org.jasig.maven
maven-notice-plugin

NOTICE.template
false

uportal-portlets-overlay
bootstrap
uportal-ear

maven-clean-plugin
2.4.1

maven-compiler-plugin
2.3.2

${project.build.sourceEncoding}

maven-deploy-plugin
2.7

maven-ear-plugin
2.7

maven-enforcer-plugin
1.0.1

maven-install-plugin
2.3.1

maven-jar-plugin
2.4

maven-release-plugin
2.2.1

true
true
uportal-@

{project.version}

false

maven-resources-plugin
2.5

org.jasig.maven
maven-site-plugin

MERGE

maven-javadoc-plugin
2.8

[9]http://java.sun.com/javase/6/docs/api/
[10]http://java.sun.com/javaee/5/docs/api/
[11]http://portals.apache.org/pluto/portl...
[12]http://portals.apache.org/pluto/pluto...
[13]http://portals.apache.org/pluto/pluto...
[14]http://static.springsource.org/spring...
[15]http://static.springframework.org/spr...
[16]http://developer.jasig.org/projects/p...

768m

org.codehaus.mojo
findbugs-maven-plugin
2.4.0

maven-source-plugin
2.1.2

maven-surefire-plugin
2.12

maven-war-plugin
2.2

org.apache.portals.pluto
maven-pluto-plugin
${pluto.version}

org.codehaus.mojo
build-helper-maven-plugin
1.7

org.jasig.portal
maven-uportal-plugin
1.0.0-M4

org.jasig.portal.maven
uportal-maven-plugin
${uportal-maven-plugin.version}
<!-- extensions must be set to true to pick up the custom phases -->
true

org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
0.8.1

generate

2.1
src/main/binding
src/main/resources/xsd
true
true
true

-XtoString
-Xequals
-XhashCode
-Xdefault-value
-no-header
-readOnly
-mark-generated

org.jvnet.jaxb2_commons
jaxb2-basics
${jaxb2basics.version}

org.jvnet.jaxb2_commons
jaxb2-default-value
1.1

<!--

Used by the continuous integrations server to deploy the project site.
+-->

ci-local-site

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

<!--

Should be activated manually by a developer that wishes to deploy a maven site for
the project
+-->

manual-site

developer.jasig
${jasig-site-dist-base}/uportal/${project.version}
----------------------------------------------------------------------------------------
[1] git@github.com
[2] https://github.com/Jasig/uPortal
[3] http://developer.jasig.org/bamboo/browse/UP
[4] uportal-dev@lists.ja-sig.org
[5] http://oss.sonatype.org/content/repositories/snapshots
[6] http://repository.apache.org/snapshots
[7] http://oss.sonatype.org/content/repositories/snapshots
[8] http://repository.apache.org/snapshots
[9] http://java.sun.com/javase/6/docs/api/
[10] http://java.sun.com/javaee/5/docs/api/
[11] http://portals.apache.org/pluto/portlet-2.0-apidocs/
[12] http://portals.apache.org/pluto/pluto-container/apidocs/
[13] http://portals.apache.org/pluto/pluto-descriptor-api/apidocs/
[14] http://static.springsource.org/spring/docs/3.0.x/javadoc-api/
[15] http://static.springframework.org/spring-ldap/docs/1.2.0/api/spring-ldap/
[16] http://developer.jasig.org/projects/person-directory/1.5.0-RC2/apidocs/

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...
----------------------------------------------------------------------------------------
[1] http://search.maven.org/#artifactdetails%7Corg.jasig.parent%7Cjasig-parent%7C34%7Cpom

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
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

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?

Generated at Wed Jun 30 12:32:24 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.