NullPointerException with malformed Maven URL in role

Description

If you have a malformed mvn: URL in your role definition like:

1 - url: mvn:com.icfolson.aem.groovy.console.aem-groovy-console//zip

the Maven plugin will crash with a NullPointerException:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [ERROR] Failed to execute goal io.wcm.devops.conga:conga-maven-plugin:1.3.0:generate (lauchpad-configuration-generate) on project de.pro-vision.training.conga.aem.definition: Execution lauchpad-configuration-generate of goal io.wcm.devops.conga:conga-maven-plugin:1.3.0:generate failed. NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.wcm.devops.conga:conga-maven-plugin:1.3.0:generate (lauchpad-configuration-generate) on project de.pro-vision.training.conga.aem.definition: Execution lauchpad-configuration-generate of goal io.wcm.devops.conga:conga-maven-plugin:1.3.0:generate failed. ... Caused by: java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) at org.apache.maven.artifact.handler.manager.DefaultArtifactHandlerManager.getArtifactHandler(DefaultArtifactHandlerManager.java:46) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:155) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:117) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:111) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createBuildArtifact(DefaultArtifactFactory.java:75) at org.apache.maven.repository.legacy.LegacyRepositorySystem.createArtifact(LegacyRepositorySystem.java:124) at io.wcm.devops.conga.tooling.maven.plugin.urlfile.MavenUrlFilePlugin.createArtifact(MavenUrlFilePlugin.java:212) at io.wcm.devops.conga.tooling.maven.plugin.urlfile.MavenUrlFilePlugin.getArtifactFromMavenCoordinatesSlingStartStyle(MavenUrlFilePlugin.java:200) at io.wcm.devops.conga.tooling.maven.plugin.urlfile.MavenUrlFilePlugin.getArtifactFile(MavenUrlFilePlugin.java:90) at io.wcm.devops.conga.tooling.maven.plugin.urlfile.MavenUrlFilePlugin.getFileName(MavenUrlFilePlugin.java:65) at io.wcm.devops.conga.generator.UrlFileManager.getFileName(UrlFileManager.java:67) at io.wcm.devops.conga.generator.EnvironmentGenerator.generateFile(EnvironmentGenerator.java:250) at io.wcm.devops.conga.generator.EnvironmentGenerator.multiplyFiles(EnvironmentGenerator.java:238) at io.wcm.devops.conga.generator.EnvironmentGenerator.generateNode(EnvironmentGenerator.java:152) at io.wcm.devops.conga.generator.EnvironmentGenerator.generate(EnvironmentGenerator.java:110) at io.wcm.devops.conga.generator.Generator.generate(Generator.java:142) at io.wcm.devops.conga.tooling.maven.plugin.GenerateMojo.execute(GenerateMojo.java:138) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 21 more

Environment

None

Status

Assignee

Unassigned

Reporter

Martin Wehner

Labels

None

Components

Fix versions

Affects versions

CONGA 1.3.0

Priority

Minor