This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 189137 - "The command line is too long." when trying to debug or run Maven project from the IDE
Summary: "The command line is too long." when trying to debug or run Maven project fro...
Status: RESOLVED DUPLICATE of bug 188864
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-02 18:06 UTC by alnikolov
Modified: 2010-08-02 19:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alnikolov 2010-08-02 18:06:05 UTC
When trying to run or debug a Maven project from the IDE, the execution fails with "The command line is too long." error. The reason for that is that the class path will be appended with all the project's dependencies.

Thou there are couple of workarounds for this issue, the root of the problem is in the version of the "exec-maven-plugin" Maven plug-in, that the IDE uses to execute the debugger or the project.

The plug-in is explicitly specified on the command line passed to the system as:
org.codehaus.mojo:exec-maven-plugin:1.1.1:exec, this way even if I have the latest version of this plug-in installed, the IDE will not use it but will use version 1.1.1 instead. 

The above mentioned problem is fixed in the versions 2+ of the exec-maven-plugin.
It could be that a simple update would fix the problem.
Comment 1 Jesse Glick 2010-08-02 19:38:07 UTC

*** This bug has been marked as a duplicate of bug 188864 ***