e-gineering / gitflow-helper-maven-plugin

An extension and plugin that teaches Maven to work well with gitflow projects and CI servers.
Apache License 2.0
76 stars 21 forks source link

NullPointerException when generating archetypes from example projects using the build extension #8

Closed bvarner closed 8 years ago

bvarner commented 8 years ago
INFO] [INFO] --- maven-archetype-plugin:2.4:create-from-project (default-cli) @ example-war ---
[INFO] [INFO] Setting default groupId: com.cookmedical
[INFO] [INFO] Setting default artifactId: example-war
[INFO] [INFO] Setting default version: 1.0.0-SNAPSHOT
[INFO] [INFO] Setting default package: com.cookmedical
[INFO] [INFO] Scanning for projects...
[INFO] [INFO] Build Extension Resolved: null to:
[INFO] [ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
[INFO] org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
[INFO]  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
[INFO]  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[INFO]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:497)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] Caused by: java.lang.NullPointerException
[INFO]  at java.util.regex.Pattern.<init>(Pattern.java:1350)
[INFO]  at java.util.regex.Pattern.compile(Pattern.java:1028)
[INFO]  at java.util.regex.Pattern.matches(Pattern.java:1133)
[INFO]  at java.lang.String.matches(String.java:2121)
[INFO]  at com.e_gineering.maven.gitflowhelper.MasterPromoteExtension.afterProjectsRead(MasterPromoteExtension.java:100)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
[INFO]  ... 11 more
[INFO] [ERROR]