[
https://issues.apache.org/jira/browse/NPANDAY-570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052375#comment-14052375
]
Brett Porter commented on NPANDAY-570:
--------------------------------------
Thanks for the patch Victor. However, the comment about "bootstrap" there was
really "before you've ever built the Settings code", which isn't done in the
bootstrap. Currently it's built in .NET, which uses a lifecycle that will try
to run the settings generation unless it's skipped, which causes problems. It's
also hard to get the appropriate dependencies so that it is built first.
There are two ways that particular problem can be addressed:
# ship 1.5.0-incubating, and use that as the "bootstrap" version, so NPanday
can build itself with an older version of NPanday.
# rewrite the settings code in Java, which is discussed in NPANDAY-505
For the specific issue reported here, I've removed the requirement that
npanday-settings.xml exist to build. That way, it'll just fallback to the PATH
if it can't find what it needs, making it easier to bootstrap (say, from a VS
Command Line), and then npanday-settings will be generated in due course for
other projects (like the ITs).
> Unable to build NPanday due to missing npanday-settings.xml
> -----------------------------------------------------------
>
> Key: NPANDAY-570
> URL: https://issues.apache.org/jira/browse/NPANDAY-570
> Project: NPanday
> Issue Type: Bug
> Components: Development Setup
> Affects Versions: 1.5.0-incubating
> Environment: Windows 7 Professional x64, Java 1.7 (x86), Maven 3.0.4,
> Windows SDK 7.1
> Reporter: Julian Cromarty
> Labels: build
> Fix For: 1.5.0-incubating
>
> Attachments: dotnet-pom.patch
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.2#6252)