2

Closed

Build failed in Npanday

description

[INFO]
[INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-
generate-settings) @ MavenBuildTesting ---
[INFO] The input line is too long.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.922s
[INFO] Finished at: Mon Dec 27 15:54:09 IST 2010
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal npanday.plugin:NPanday.Plugin.Settings.JavaBindin
g:1.2.1:generate-settings (default-generate-settings) on project MavenBuildTesti
ng: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = C:\pab\gac_msil\NPanday.P
lugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\A466152
\LOCALS~1\Temp\Plugin11258.xml, assemblyFile=C:\pab\gac_msil\NPanday.Plugin.Sett
ings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.
Settings.SettingsGeneratorMojo, startProcessAssembly=C:\pab\gac_msil\NPanday.Plu
gin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe]: NPANDAY-040-001: Co
uld not execute: Command = cmd.exe /X /C ""NPanday.Plugin.Runner.exe parameterFi
le=C:\DOCUME~1\A466152\LOCALS~1\Temp\Plugin11258.xml assemblyFile=C:\pab\gac_msi
l\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojo
Name=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=C:\pab\g
ac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"",
Result = 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal n
panday.plugin:NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (defau
lt-generate-settings) on project MavenBuildTesting: NPANDAY-xxx-000
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:203)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:148)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:140)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: NPANDAY-xxx-000
    at npanday.plugin.AbstractMojo.execute(AbstractMojo.java:169)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:107)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:195)
    ... 19 more
Caused by: npanday.executable.ExecutionException: NPANDAY-063-000: Execution Pat
h = C:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [para
meterFile=C:\DOCUME~1\A466152\LOCALS~1\Temp\Plugin11258.xml, assemblyFile=C:\pab
\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.
dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembl
y=C:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loa
der.exe]
    at npanday.executable.impl.DefaultRepositoryNetExecutable.execute(Defaul
tRepositoryNetExecutable.java:97)
    at npanday.plugin.AbstractMojo.execute(AbstractMojo.java:159)
    ... 21 more
Caused by: npanday.executable.ExecutionException: NPANDAY-040-001: Could not exe
cute: Command = cmd.exe /X /C ""NPanday.Plugin.Runner.exe parameterFile=C:\DOCUM
E~1\A466152\LOCALS~1\Temp\Plugin11258.xml assemblyFile=C:\pab\gac_msil\NPanday.P
lugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanda
y.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=C:\pab\gac_msil\NPa
nday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1
 
    at npanday.executable.CommandExecutor$Factory$1.executeCommand(CommandEx
ecutor.java:371)
    at npanday.executable.impl.DefaultRepositoryNetExecutable.execute(Defaul
tRepositoryNetExecutable.java:93)
    ... 22 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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
Closed Apr 5, 2011 at 3:47 PM by LarsCorneliussen
I added some comments on the corresponding Jira-issue:https://issues.apache.org/jira/browse/NPANDAY-366

comments

KenFromNN wrote Mar 9, 2011 at 2:24 PM

I have the same error when trying to build sample .NET project.

I just installed the nPanday and created sample project with the following command:
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple -DarchetypeGroupId=npanday -DarchetypeVersion=1.2.1

After that I executed the mvn compile command and got the error.

It seems that calling cmd.exe /X /C "ARG" with ARG length > 260 symbols cause this error.
I did not get this error when try to execute ARG itself in console.

Console output is attached.

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.example:Example.Project:library:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 21, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Example.Project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-compile-plugin:1.2.1:initialize (default-initialize) @ Example.Project —
[INFO] Mojo Execution Time = 266
[INFO]
[INFO] — maven-resolver-plugin:1.2.1:resolve (default-resolve) @ Example.Project —
[INFO] Mojo Execution Time = 0
[INFO]
[INFO] — NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ Example.Project —
[INFO] The input line is too long.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.234s
[INFO] Finished at: Wed Mar 09 12:11:30 GMT 2011
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal npanday.plugin:NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) on project Example.Project: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DEV\Temp\WinTmp\Plugin1630420998735221868.xml, assemblyFile=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe]: NPANDAY-040-001: Could not execute: Command = cmd.exe /X /C ""NPanday.Plugin.Runner.exe parameterFile=C:\DEV\Temp\WinTmp\Plugin1630420998735221868.xml assemblyFile=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1_npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1_npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal npanday.plugin:NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) on project Example.Project: NPANDAY-xxx-000
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:319)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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-xxx-000
at npanday.plugin.AbstractMojo.execute(AbstractMojo.java:169)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: npanday.executable.ExecutionException: NPANDAY-063-000: Execution Path = C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DEV\Temp\WinTmp\Plugin1630420998735221868.xml, assemblyFile=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe]
at npanday.executable.impl.DefaultRepositoryNetExecutable.execute(DefaultRepositoryNetExecutable.java:97)
at npanday.plugin.AbstractMojo.execute(AbstractMojo.java:159)
... 21 more
Caused by: npanday.executable.ExecutionException: NPANDAY-040-001: Could not execute: Command = cmd.exe /X /C ""NPanday.Plugin.Runner.exe parameterFile=C:\DEV\Temp\WinTmp\Plugin1630420998735221868.xml assemblyFile=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1_npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1_npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1
at npanday.executable.CommandExecutor$Factory$1.executeCommand(CommandExecutor.java:371)
at npanday.executable.impl.DefaultRepositoryNetExecutable.execute(DefaultRepositoryNetExecutable.java:93)
... 22 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

cdossantos wrote Apr 4, 2011 at 9:02 AM

Hello,

We are just evaluating NPanday for C# projects and got the the same error. Is there a workaround?

Thanks in advance,

Santos

brettporter wrote Apr 4, 2011 at 1:16 PM

This is fixed in trunk, but the project has moved to http://incbuator.apache.org/npanday/. We are working on release candidates at the moment.