alexec/maven-vbox-plugin — pull request #17 by alrighttheresham (2014-03-28 14:38:13+00:00)
Title: migrated all references to centos 6.3 to 6.5

Hi Alex, while running the maven-vbox-plugin-example I got a failure when trying to download 6.3 as this is no longer available.

I've modded the refs to 6.3 to 6.5, the code builds but fails on execution. See below. The template name is not being set.

Looking at the CreateDefinitionMojo, the javadoc implies that the templateName defaults to the vbox.name this doesnt seem to be happening.

Anyway this pull should save you a bit of time, if you decide to migrate to 6.5. Would be great if you could support this as this plugin will be very useful in a project I'm kicking off.

Thanks,
Damian.

[DEBUG] Configuring mojo com.alexecollins.vbox:vbox-maven-plugin:3.0.1-SNAPSHOT:create-definition from plugin realm ClassRealm[plugin>com.alexecollins.vbox:vbox-maven-plugin:3.0.1-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@ba679e]
[DEBUG] Configuring mojo 'com.alexecollins.vbox:vbox-maven-plugin:3.0.1-SNAPSHOT:create-definition' with basic configurator -->
[DEBUG] (f) name = CentOS_6_5
[DEBUG] (f) project = MavenProject: com.alexecollins:hello-world2:1.0-SNAPSHOT @ /private/tmp/hello-world2/pom.xml
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.485s
[INFO] Finished at: Fri Mar 28 14:16:41 GMT 2014
[INFO] Final Memory: 5M/17M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.alexecollins.vbox:vbox-maven-plugin:3.0.1-SNAPSHOT:create-definition (default-cli) on project hello-world2: failed to create definition: templateName -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.alexecollins.vbox:vbox-maven-plugin:3.0.1-SNAPSHOT:create-definition (default-cli) on project hello-world2: failed to create definition
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: failed to create definition
at com.alexecollins.vbox.maven.CreateDefinitionMojo.execute(CreateDefinitionMojo.java:39)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.NullPointerException: templateName
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
at com.alexecollins.vbox.core.task.CreateDefinition.(CreateDefinition.java:33)
at com.alexecollins.vbox.maven.CreateDefinitionMojo.execute(CreateDefinitionMojo.java:37)
... 21 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles: