Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.0-incubating
-
Windows 7 Professional x64, Java 1.7 (x86), Maven 3.0.4, Windows SDK 7.1
Description
Possibly related to NPANDAY-413
Having been unsuccessful in getting NPanday to work from the msi installer (it doesn't seem to install the NPanday plugins anywhere and repo.npanday.org doesn't exist anymore) I figured I'd try building it from source. I followed the instructions on the site, i.e. running "mvn clean install" from the directory where I checked out the source and it fails when trying to build NPanday.Model.Pom with the following error:
[INFO] ------------------------------------------------------------------------
[INFO] Building NPanday :: .NET Model :: POM 1.5.0-incubating-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-compile-plugin:1.5.0-incubating-SNAPSHOT:initialize (default-initialize) @ NPanday.Model.Pom —
[WARNING] Invalid POM for NUnit:NUnit.Framework:dotnet-library:2.2.8.0, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] — NPanday.Plugin.Settings.JavaBinding:1.5.0-incubating-SNAPSHOT:generate-settings (default-generate-settings) @ NPanday.Model.Pom —
[INFO] NPANDAY-119-000: Excecution of generate-settings has been skipped.
[INFO]
[INFO] — maven-compile-plugin:1.5.0-incubating-SNAPSHOT:generate-assembly-info (default-generate-assembly-info) @ NPanday.Model.Pom —
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] NPanday :: .NET Model :: POM ...................... FAILURE [0.747s]
[INFO] NPanday :: .NET Model :: Settings ................. SKIPPED
[INFO] NPanday :: .NET Model :: AutomationExtensibility .. SKIPPED
[INFO] NPanday :: .NET Utils ............................. SKIPPED
[INFO] NPanday :: .NET Artifact .......................... SKIPPED
[INFO] NPanday :: .NET Plugin ............................ SKIPPED
[INFO] NPanday :: .NET Plugin MojoGenerator .............. SKIPPED
[INFO] NPanday :: .NET Plugin Loader ..................... SKIPPED
[INFO] NPanday :: .NET Plugin Runner ..................... SKIPPED
[INFO] NPanday :: Project Importer ....................... SKIPPED
[INFO] NPanday :: Project Importer :: Engine ............. SKIPPED
[INFO] NPanday :: Project Importer :: Console ............ SKIPPED
[INFO] NPanday :: VisualStudio Addin ..................... SKIPPED
[INFO] NPanday :: VisualStudio Project Wizard ............ SKIPPED
[INFO] NPanday :: .NET Plugins ........................... SKIPPED
[INFO] NPanday :: Addin Plugin ........................... SKIPPED
[INFO] NPanday :: Devenv Plugin .......................... SKIPPED
[INFO] NPanday :: ResX Plugin ............................ SKIPPED
[INFO] NPanday :: Settings Plugin ........................ SKIPPED
[INFO] NPanday :: SysRef Plugin .......................... SKIPPED
[INFO] NPanday :: Msbuild Plugin ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.131s
[INFO] Finished at: Fri Aug 31 09:58:01 BST 2012
[INFO] Final Memory: 18M/44M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.npanday.plugins:maven-compile-plugin:1.5.0-incubating-SNAPSHOT:generate-assembly-info (default-generate-assembly-info) on project NPanday.Model.Pom: NPANDAY-108-005:
nfigured settings file does not exist: C:\Users\jooles\.m2\npanday-settings.xml -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.npanday.plugins:maven-compile-plugin:1.5.0-incubating-SNAPSHOT:generate-assembly-info (default-generate-assembly-info)
n project NPanday.Model.Pom: NPANDAY-108-005: Configured settings file does not exist: C:\Users\jooles\.m2\npanday-settings.xml
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: NPANDAY-108-005: Configured settings file does not exist: C:\Users\jooles\.m2\npanday-settings.xml
at npanday.vendor.SettingsUtil.overrideDefaultSettings(SettingsUtil.java:61)
at npanday.vendor.SettingsUtil.applyCustomSettings(SettingsUtil.java:118)
at npanday.plugin.compile.AssemblyInfoGeneratorMojo.execute(AssemblyInfoGeneratorMojo.java:152)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Essentially it seems that npanday-settings.xml is not being generated and this is causing the build to fail