You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Evina O. J. Cedric (JIRA)" <ji...@apache.org> on 2011/01/26 19:30:44 UTC

[jira] Created: (NPANDAY-366) cannot build a project

cannot build a project
----------------------

                 Key: NPANDAY-366
                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
             Project: NPanday
          Issue Type: Bug
          Components: Visual Studio Add-in
    Affects Versions: 1.2.1
         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
            Reporter: Evina O. J. Cedric


i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 

------------------------------------------------------------------
Executing Maven
Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
Goal: compile
Arguments: compile
NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile


------------------------------------------------------------------


[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 375
[INFO] Mojo Execution Time = 406
[INFO] 
[INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
[INFO] Mojo Execution Time = 16
[INFO] 
[INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
[INFO] La ligne entr‚e est trop longue.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.969s
[INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
NPanday Execution Failed!, with exit code: 1



the system path is :

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\AT
I Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tool
s\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN
\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:
\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program
Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studi
o 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft
.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPack
ages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.
5.9\bin\net-2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Issue Comment Edited] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Lars Corneliussen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015936#comment-13015936 ] 

Lars Corneliussen edited comment on NPANDAY-366 at 4/5/11 2:56 PM:
-------------------------------------------------------------------

I investigated further on the issue. Not easy to find out. This bug has been around forever, but somehow it doesn't occur on all machines. This might have to do with different versions of Plexus' CommandHelper.

# Command comes in {{[some, ar\"g1, arg 2]}}
# Plexus CommandHelper wraps our command with a shell command => {{[cmd, /X, /C, some ar\"g1 \"arg 2\"]}}
# Then we escape commandline chars, because plexus doesn't => {{[cmd, /X, /C, some ar\\"g1 \"arg 2\"]}}
# This should be enough, but...
#* in r993680 (October 2008) somebody 
#** a) put *"* around each cmd part containing whitespaces => {{[cmd, /X, /C, "some ar\\"g1 \"arg 2\""]}} 
#** b) and switched to Runtime.exec(String) => {{cmd /X /C "some ar\\"g1 \"arg 2\""}} => which again splits by space => {{[cmd, /X, /C, "some, ar\\"g1, \"arg, 2\""]}} => leading to total chaos (in more complicated cases) 
#* r1035948, late October 2011, in the context of NPANDAY-337 and NPANDAY-341, this was reverted again.\\
\\

Different Runtime.exec-overloads:
* {{Runtime.getRuntime().exec(String[])}} => escaping each with double quotes if it contains a space
* and {{Runtime.getRuntime().exec(String)}} => splitting by space and feeding it in to the String[]-overload (not good!!)

In 1.3.1 it should be fixed. I also added testcases to make sure that is the case.

      was (Author: lcorneliussen):
    I investigated further on the issue. Not easy to find out. This bug has been around forever, but somehow it doesn't occur on all machines. This might have to do with different versions of Plexus' CommandHelper.

# Command comes in {{[some, ar\"g1, arg 2]}}
# Plexus CommandHelper wraps our command with a shell command => {{[cmd, /X, /C, some ar\"g1 \"arg 2\"]}}
# Then we escape commandline chars, because plexus doesn't => {{[cmd, /X, /C, some ar\\"g1 \"arg 2\"]}}
# This should be enough, but...
## in r993680 (October 2008) somebody put *"* around our cmd because he thought that would be a good idea, while already escaping => {{[cmd, /X, /C, "some ar\\"g1 \"arg 2\""]}} => this leads to double quotes, as {{Runtime}} will also put quotes around, when there is a space in one of the command parts in the list
## r1035948, late October 2011, in the context of NPANDAY-337 and NPANDAY-341, this was reverted again.\\
\\

All these changes were also made in different combinations using 
* {{Runtime.getRuntime().exec(String[])}} => escaping each with double quotes if it contains a space
* and {{Runtime.getRuntime().exec(String)}} => splitting by space and feeding it in to the String[]-overload (not good!!)

Really I gave up on exactly finding out how things correlate, but in 1.3.1 it should be fixed. I also added testcases to make sure that is the case.
  
> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>            Assignee: Lars Corneliussen
>             Fix For: 1.3.1-incubating
>
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Lars Corneliussen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015914#comment-13015914 ] 

Lars Corneliussen commented on NPANDAY-366:
-------------------------------------------

Sad to hear that this makes it impossible for you to use NPanday. I would be happy if I could help make that work for one of the next releases.

I looked closer at the issue. The problem is the double-double quotes. CMD complaines whenever the COMMAND NAME PORTION of a command is longer than 259 chars. Because everything is in double quotes, the full string is treated as the COMMAND NAME PORTION.

I created some tests in trunk, and can't reproduce the issue there. Now looking closer into 1.2.1 source code.

{code:title=bad}
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""
{code}

{code:title=good}
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"
{code}







> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Lars Corneliussen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015936#comment-13015936 ] 

Lars Corneliussen edited comment on NPANDAY-366 at 4/5/11 2:57 PM:
-------------------------------------------------------------------

I investigated further on the issue. Not easy to find out. This bug has been around forever, but somehow it doesn't occur on all machines. This might have to do with different versions of Plexus' CommandHelper.

# Command comes in {{[some, ar\"g1, arg 2]}}
# Plexus CommandHelper wraps our command with a shell command => {{[cmd, /X, /C, some ar\"g1 \"arg 2\"]}}
# Then we escape commandline chars, because plexus doesn't => {{[cmd, /X, /C, some ar\\"g1 \"arg 2\"]}}
# This should be enough, but...
#* in r993680 (October 2008) somebody 
#** a) put *"* around each cmd part containing whitespaces => {{[cmd, /X, /C, "some ar\\"g1 \"arg 2\""]}} 
#** b) and switched to Runtime.exec(String) => {{cmd /X /C "some ar\\"g1 \"arg 2\""}} => which again splits by space => {{[cmd, /X, /C, "some, ar\\"g1, \"arg, 2\""]}} => leading to total chaos (in more complicated cases) 
#* r1035948, late October 2011, in the context of NPANDAY-337 and NPANDAY-341, both changes were reverted again.\\
\\

Different Runtime.exec-overloads:
* {{Runtime.getRuntime().exec(String[])}} => escaping each with double quotes if it contains a space
* and {{Runtime.getRuntime().exec(String)}} => splitting by space and feeding it in to the String[]-overload (not good!!)

In 1.3.1 it should be fixed. I also added testcases to make sure that is the case.

      was (Author: lcorneliussen):
    I investigated further on the issue. Not easy to find out. This bug has been around forever, but somehow it doesn't occur on all machines. This might have to do with different versions of Plexus' CommandHelper.

# Command comes in {{[some, ar\"g1, arg 2]}}
# Plexus CommandHelper wraps our command with a shell command => {{[cmd, /X, /C, some ar\"g1 \"arg 2\"]}}
# Then we escape commandline chars, because plexus doesn't => {{[cmd, /X, /C, some ar\\"g1 \"arg 2\"]}}
# This should be enough, but...
#* in r993680 (October 2008) somebody 
#** a) put *"* around each cmd part containing whitespaces => {{[cmd, /X, /C, "some ar\\"g1 \"arg 2\""]}} 
#** b) and switched to Runtime.exec(String) => {{cmd /X /C "some ar\\"g1 \"arg 2\""}} => which again splits by space => {{[cmd, /X, /C, "some, ar\\"g1, \"arg, 2\""]}} => leading to total chaos (in more complicated cases) 
#* r1035948, late October 2011, in the context of NPANDAY-337 and NPANDAY-341, this was reverted again.\\
\\

Different Runtime.exec-overloads:
* {{Runtime.getRuntime().exec(String[])}} => escaping each with double quotes if it contains a space
* and {{Runtime.getRuntime().exec(String)}} => splitting by space and feeding it in to the String[]-overload (not good!!)

In 1.3.1 it should be fixed. I also added testcases to make sure that is the case.
  
> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>            Assignee: Lars Corneliussen
>             Fix For: 1.3.1-incubating
>
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Konstantin Larionov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015811#comment-13015811 ] 

Konstantin Larionov edited comment on NPANDAY-366 at 4/5/11 9:11 AM:
---------------------------------------------------------------------

Hello Lars,

Yes, I tried executing the command directly.
Executing cmd.exe /X /C "<the same stuff as in error log>" caused the same error.
At the same time executing <the same stuff as in error log> itself was successful (of course there was some other error as expected, but not "The input line is too long").

Unfortunately we have to give up trying to migrate our .Net project to NPanday due to this bug and thus I removed all my test projects.
That's why I am not able to re-check once again right now, but I clearly remember that "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1_npanday.plugin\NPanday.Plugin.Loader.exe" and "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1_npanday.plugin\NPanday.Plugin.Settings.dll" were present on my workstation.

Actually, I can just call cmd.exe /X /C "ARG" with any ARG >= 260 to get the same "The input line is too long" error.
Just tried something like that with the same result:
cmd.exe /X /C "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901"

If I remove the last "01" from the ARG, I receive another error ("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 is not recognized as an internal or external command, operable program or batch file") just as expected.

So, it seems that there is cmd.exe limitation on the ARG (at least on my PC). It seems that the ARG should be < than 260 characters.

      was (Author: kenfrommera):
    Hello Lars,

Yes, I tried executing the command directly.
Executing cmd.exe /X /C "<the same stuff as in error log>" caused the same error.
At the same time executing <the same stuff as in error log> itself was successful (of course there was some other error as expected, but not "The input line is too long").

Unfortunately we have to give up trying to migrate our .Net project to NPanday due to this bug and I thus removed all my test projects.
That's why I am not able to re-check once again right now, but I clearly remember that "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1_npanday.plugin\NPanday.Plugin.Loader.exe" and "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1_npanday.plugin\NPanday.Plugin.Settings.dll" were present on my workstation.

Actually, I can just call cmd.exe /X /C "ARG" with any ARG >= 260 to get the same "The input line is too long" error.
Just tried something like that with the same result:
cmd.exe /X /C "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901"

If I remove the last "01" from the ARG, I receive another error ("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 is not recognized as an internal or external command, operable program or batch file") just as expected.

So, it seems that there is cmd.exe limitation on the ARG (at least on my PC). It seems that the ARG should be < than 260 characters.
  
> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (NPANDAY-366) cannot build a project

Posted by "Claudia Santos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015313#comment-13015313 ] 

Claudia Santos edited comment on NPANDAY-366 at 4/4/11 8:30 AM:
----------------------------------------------------------------

Hello,

We are just evaluating NPanday for Visual Studio 2008 and got the same error in a Windows Server 2008 R2.
Is there a workaround?

Thanks in advance,


      was (Author: cdossantos):
    Hello,

We are just evaluating NPanday and got the same error in a Windows Server 2008 R2.
Is there a workaound?

Thanks in advance,

  
> cannot build a project
> ----------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Lars Corneliussen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Corneliussen resolved NPANDAY-366.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.1-incubating
         Assignee: Lars Corneliussen

I investigated further on the issue. Not easy to find out. This bug has been around forever, but somehow it doesn't occur on all machines. This might have to do with different versions of Plexus' CommandHelper.

# Command comes in {{[some, ar\"g1, arg 2]}}
# Plexus CommandHelper wraps our command with a shell command => {{[cmd, /X, /C, some ar\"g1 \"arg 2\"]}}
# Then we escape commandline chars, because plexus doesn't => {{[cmd, /X, /C, some ar\\"g1 \"arg 2\"]}}
# This should be enough, but...
## in r993680 (October 2008) somebody put *"* around our cmd because he thought that would be a good idea, while already escaping => {{[cmd, /X, /C, "some ar\\"g1 \"arg 2\""]}} => this leads to double quotes, as {{Runtime}} will also put quotes around, when there is a space in one of the command parts in the list
## r1035948, late October 2011, in the context of NPANDAY-337 and NPANDAY-341, this was reverted again.\\
\\

All these changes were also made in different combinations using 
* {{Runtime.getRuntime().exec(String[])}} => escaping each with double quotes if it contains a space
* and {{Runtime.getRuntime().exec(String)}} => splitting by space and feeding it in to the String[]-overload (not good!!)

Really I gave up on exactly finding out how things correlate, but in 1.3.1 it should be fixed. I also added testcases to make sure that is the case.

> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>            Assignee: Lars Corneliussen
>             Fix For: 1.3.1-incubating
>
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NPANDAY-366) cannot build a project

Posted by "Claudia Santos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015313#comment-13015313 ] 

Claudia Santos commented on NPANDAY-366:
----------------------------------------

Hello,

We are just evaluating NPanday and got the same error in a Windows Server 2008 R2.
Is there a workaound?

Thanks in advance,


> cannot build a project
> ----------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NPANDAY-366) cannot build a project

Posted by "Lars Corneliussen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015788#comment-13015788 ] 

Lars Corneliussen commented on NPANDAY-366:
-------------------------------------------

Hi,
I never had this issue. Both my local repo and my project is deeper. But I use the standard-path for the local repo. I know we have some issues with that. Also PAB/UAC is unstable and will be removed in the next release (NPANDAY-277, NPANDAY-361, NPANDAY-186)

Have you tried to exectute the command directly on the command line?

Does "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1_npanday.plugin\NPanday.Plugin.Loader.exe" exist?
Does "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1_npanday.plugin\NPanday.Plugin.Settings.dll" exist?

> cannot build a project
> ----------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Lars Corneliussen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Corneliussen updated NPANDAY-366:
--------------------------------------

    Summary: Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")  (was: cannot build a project)

> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (NPANDAY-366) cannot build a project

Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated NPANDAY-366:
---------------------------------

           Description: 
i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 

{code}
------------------------------------------------------------------
Executing Maven
Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
Goal: compile
Arguments: compile
NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile


------------------------------------------------------------------


[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 375
[INFO] Mojo Execution Time = 406
[INFO] 
[INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
[INFO] Mojo Execution Time = 16
[INFO] 
[INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
[INFO] La ligne entr‚e est trop longue.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.969s
[INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
NPanday Execution Failed!, with exit code: 1
{code}


the system path is :

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

  was:
i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 

------------------------------------------------------------------
Executing Maven
Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
Goal: compile
Arguments: compile
NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile


------------------------------------------------------------------


[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
INFO: NPANDAY-080-004: Connection Start Up: Time = 375
[INFO] Mojo Execution Time = 406
[INFO] 
[INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
[INFO] Mojo Execution Time = 16
[INFO] 
[INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
[INFO] La ligne entr‚e est trop longue.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.969s
[INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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
NPanday Execution Failed!, with exit code: 1



the system path is :

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\AT
I Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tool
s\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN
\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:
\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program
Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studi
o 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft
.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPack
ages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.
5.9\bin\net-2.0

    Remaining Estimate:     (was: 2h)
     Original Estimate:     (was: 2h)

> cannot build a project
> ----------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NPANDAY-366) cannot build a project

Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987873#action_12987873 ] 

Brett Porter commented on NPANDAY-366:
--------------------------------------

Google tells me the error you're getting is "The input line is too long". Looks like it's 364 characters long, and probably expects just 255. Not sure why you're suffering this problem where it works in my testing on the same platform.

If you run just the command inside the quotes at the command line, does it work?

> cannot build a project
> ----------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NPANDAY-366) cannot build a project

Posted by "Konstantin Larionov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004506#comment-13004506 ] 

Konstantin Larionov commented on NPANDAY-366:
---------------------------------------------

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


> cannot build a project
> ----------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (NPANDAY-366) Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")

Posted by "Konstantin Larionov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NPANDAY-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015811#comment-13015811 ] 

Konstantin Larionov commented on NPANDAY-366:
---------------------------------------------

Hello Lars,

Yes, I tried executing the command directly.
Executing cmd.exe /X /C "<the same stuff as in error log>" caused the same error.
At the same time executing <the same stuff as in error log> itself was successful (of course there was some other error as expected, but not "The input line is too long").

Unfortunately we have to give up trying to migrate our .Net project to NPanday due to this bug and I thus removed all my test projects.
That's why I am not able to re-check once again right now, but I clearly remember that "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Loader\1.2.1_npanday.plugin\NPanday.Plugin.Loader.exe" and "C:\DEV\Maven\pab\gac_msil\NPanday.Plugin.Settings\1.2.1_npanday.plugin\NPanday.Plugin.Settings.dll" were present on my workstation.

Actually, I can just call cmd.exe /X /C "ARG" with any ARG >= 260 to get the same "The input line is too long" error.
Just tried something like that with the same result:
cmd.exe /X /C "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901"

If I remove the last "01" from the ARG, I receive another error ("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 is not recognized as an internal or external command, operable program or batch file") just as expected.

So, it seems that there is cmd.exe limitation on the ARG (at least on my PC). It seems that the ARG should be < than 260 characters.

> Getting "The input line is too long" when NPanday tries to generate the npanday-settings.xml (was "cannot build a project")
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NPANDAY-366
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-366
>             Project: NPanday
>          Issue Type: Bug
>          Components: Visual Studio Add-in
>    Affects Versions: 1.2.1
>         Environment: OS=Windows XP SP3 IDE=visual studio 2008, java, maven 3.0.2
>            Reporter: Evina O. J. Cedric
>
> i cannot build a project with npanday 1.2.1 in visual 2008. the following output show the error : 
> {code}
> ------------------------------------------------------------------
> Executing Maven
> Pom File: C:\Documents and Settings\Cedric\Mes documents\Visual Studio 2008\Projects\tuto\tuto.core.contract\pom.xml
> Goal: compile
> Arguments: compile
> NPanday Command: D:\APPLI\Maven\apache-maven-3.0.2\bin\mvn.bat compile
> ------------------------------------------------------------------
> [INFO] Scanning for projects...
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for Maison.Tuto:tuto.core.contract:library:1.0-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for npanday.plugin:maven-compile-plugin is missing. @ line 16, 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 Maison.Tuto : tuto.core.contract 1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-compile-plugin:1.2.1:initialize (default-initialize) @ tuto.core.contract ---
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/sonatype/gossip/gossip/1.0/gossip-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/D:/MAVEN_REPO/org/slf4j/slf4j-jdk14/1.5.11/slf4j-jdk14-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-001: Adding data access object: Class Name = npanday.dao.impl.ProjectDaoImpl
> 26 janv. 2011 20:19:56 npanday.registry.ConnectionsRepository lazyLoad
> INFO: NPANDAY-080-004: Connection Start Up: Time = 375
> [INFO] Mojo Execution Time = 406
> [INFO] 
> [INFO] --- maven-resolver-plugin:1.2.1:resolve (default-resolve) @ tuto.core.contract ---
> [INFO] Mojo Execution Time = 16
> [INFO] 
> [INFO] --- NPanday.Plugin.Settings.JavaBinding:1.2.1:generate-settings (default-generate-settings) @ tuto.core.contract ---
> [INFO] La ligne entr‚e est trop longue.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.969s
> [INFO] Finished at: Wed Jan 26 20:20:00 WAT 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 tuto.core.contract: NPANDAY-xxx-000: NPANDAY-063-000: Execution Path = D:\pab\gac_msil\NPanday.Plugin.Runner\1.2.1__npanday.plugin, Command = [parameterFile=C:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml, assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll, mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo, startProcessAssembly=D:\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:\DOCUME~1\Cedric\LOCALS~1\Temp\Plugin5388494390348674626.xml assemblyFile=D:\pab\gac_msil\NPanday.Plugin.Settings\1.2.1__npanday.plugin\NPanday.Plugin.Settings.dll mojoName=NPanday.Plugin.Settings.SettingsGeneratorMojo startProcessAssembly=D:\pab\gac_msil\NPanday.Plugin.Loader\1.2.1__npanday.plugin\NPanday.Plugin.Loader.exe"", Result = 1 -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [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
> NPanday Execution Failed!, with exit code: 1
> {code}
> the system path is :
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\TortoiseSVN\bin;D:\APPLI\Maven\apache-maven-3.0.2\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\server\php;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Program Files\NUnit 2.5.9\bin\net-2.0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira