Got a NPE during setupBuild (Gradle 1.7)


(Scott Palmer) #1

I have a Maven project with only test code that is used to unzip an asset containing some native libraries (with the maven-dependency-plugin), and run some tests (with maven-surefire-plugin) against some other dependency libraries that use the native libraries.

Conversion of my Maven project failed due to this NPE

22:16:22.342 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NullPointerException 22:16:22.346 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolve(DefaultMetadataResolver.java:279) 22:16:22.351 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolveMetadata(DefaultMetadataResolver.java:173) 22:16:22.356 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.repository.internal.DefaultVersionResolver.resolveVersion(DefaultVersionResolver.java:225) 22:16:22.361 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:272) 22:16:22.367 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) 22:16:22.373 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) 22:16:22.435 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286) 22:16:22.441 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155) 22:16:22.446 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813) 22:16:22.452 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664) 22:16:22.457 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310) 22:16:22.463 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232) 22:16:22.469 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:142) 22:16:22.487 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.mvn3.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102) 22:16:22.493 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.createNow(MavenProjectsCreator.java:69) 22:16:22.498 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.buildsetup.plugins.internal.maven.MavenProjectsCreator.create(MavenProjectsCreator.java:47) 22:16:22.503 [ERROR] [org.gradle.BuildExceptionReporter]

… 70 more