Hi,

I experienced a similar problem while running on win2003 server edition,
because the classpath made the command line exceeded 2000 characters which
is the limit in that OS cmd....XP AFAIK should not have the same problem
because it's cmd limit is 8000 char long...anyway workaround suggested is
shorten the classpath by repackaging jars and/or replacing the jar in a
smarter place in your disk...or something like this.

Anyway, post your exec plugin conf...you never know...

Hope this helps...



On Thu, May 29, 2008 at 9:18 AM, theunsgis <[EMAIL PROTECTED]> wrote:

>
> HI
> I think you are right. I created a bat file with the whole cmd string
> copied
> from NB.
> When i run it , it tries to display the command and end with "The input
> line
> is too long."
>
> I also do run it on a Win XP OS.
> Is there some way of getting arround this?
>
> Thanks
>
> --
> Daniele De Francesco
> Senior Java Architect
> Value Team Italia
>
>
> Milos Kleint wrote:
> >
> > Hello,
> >
> > maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this
> issue?
> >
> > Milos
> >
> > On 5/29/08, theunsgis <[EMAIL PROTECTED]> wrote:
> >>
> >>  HI
> >>  Thanks this help.
> >>
> >>  I still get the problem though , and i did upgrade to the latest maven
> >>  3.1.2,
> >>  Can you tel me what this means :
> >>
> >>
> >>  Result of  cmd.exe /X /C ""C:\Program
> >> Files\Java\jdk1.6.0_05\bin\java.exe"
> >>  -classpath "E:\Java Projects\Geotools Trunk
> >>  2.5\demo\example\target\classes;C:\Documents and
> >>  Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar;"
> >>
> >> org.geotools.demo.widgets.StreamWidgetsDemo"
> >>
> >>  Can i run tis command just like it is above in the cmd prompt? I
> >> truncated
> >>  the classpath a lot in the above example.
> >>
> >>  Thanks
> >>
> >>
> >>
> >>
> >>  Daniele De Francesco wrote:
> >>  >
> >>  > Hi,
> >>  >
> >>  > Sorry, I just told you the cmd m2 call...not the NB, so sorry...
> >>  > In order to build m2 projects on NB exists a plugin from update site
> >>  > (Maven
> >>  > 2 Integration), that allows to create m2 projects
> >>  >
> >>  > New--->Project---->Maven etc
> >>  >
> >>  > Done this you simply right-click on the project icon, click the
> >>  > Custom-->Goal item fill out the form that appears and put
> >>  >
> >>  >  goals ---> exec:exec
> >>  >
> >>  > and then just check the box called show debug output
> >>  >
> >>  > Hope this helps,
> >>  >
> >>  > --
> >>  > Daniele De Francesco
> >>  > Senior Java Architect
> >>  > Value Team Italia
> >>  >
> >>  > On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco <
> >>  > [EMAIL PROTECTED]> wrote:
> >>  >
> >>  >> Hi,
> >>  >>
> >>  >> You must have a running maven 2 installation from the cmd, which
> >>  >> generally
> >>  >> means setting the env vars JAVA_HOME, M2_HOME,PATH
> >>  >>
> >>  >> JAVA_HOME=</path/to/your/java/inst>
> >>  >> (which u should have set yet)
> >>  >>
> >>  >> M2_HOME=</path/to/your/m2/inst>
> >>  >> PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin
> >>  >>
> >>  >> >but how do i run mvn in NB with the -e switch?
> >>  >>
> >>  >> simply cd in your project root dir and then
> >>  >>
> >>  >> mvn -e exec:exec
> >>  >>
> >>  >>
> >>  >> BTW: have u checked plugin config??
> >>  >>
> >>  >> Regards,
> >>  >>
> >>  >> --
> >>  >> Daniele De Francesco
> >>  >> Senior Java Architect
> >>  >> Value Team Italia
> >>  >>
> >>  >>
> >>  >>
> >>  >> On Tue, May 27, 2008 at 4:30 PM, theunsgis <[EMAIL PROTECTED]>
> >> wrote:
> >>  >>
> >>  >>>
> >>  >>>
> >>  >>>
> >>  >>> Daniele De Francesco wrote:
> >>  >>> >
> >>  >>> > Hi,
> >>  >>> >
> >>  >>> > it looks like exec plugin could not run the app just compiled due
> >> to a
> >>  >>> bad
> >>  >>> > command line execution or maybe an incomplete or corrupted
> >> classpath
> >>  >>> > problem
> >>  >>> > ...why don't you try and run mvn -e exec:exec (eventually -X, but
> >> imho
> >>  >>> > it's
> >>  >>> > too much)?
> >>  >>> > I would check the plugin configuration carefully either...
> >>  >>> >
> >>  >>> >
> >>  >>>
> >>  >>> HI thanks for the reply
> >>  >>>
> >>  >>> Sorry to ask , i am new to Maven
> >>  >>> How do i run mvn -e exec:exec out of Netbeans?
> >>  >>>
> >>  >>> If i run the class from the cmd prompt in windows it does run fine
> ,
> >> it
> >>  >>> is
> >>  >>> just in NB it does not want to run.
> >>  >>> In the maven project in NB there is a few example classes with main
> >>  >>> methods
> >>  >>> , if you load the maven project and run it , it first ask you , to
> >>  >>> select
> >>  >>> the main class to run , then after that it gives the errors in the
> >>  >>> output.
> >>  >>>
> >>  >>> But if i can run maven with the -e switch out of NB , maybei can
> see
> >>  >>> something , but how do i run mvn in NB with the -e switch?
> >>  >>>
> >>  >>> Thanks
> >>  >>> Theuns
> >>  >>>
> >>  >>>
> >>  >>> --
> >>  >>> View this message in context:
> >>  >>> http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html
> >>  >>> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>  >>>
> >>  >>>
> >>  >>>
> >> ---------------------------------------------------------------------
> >>  >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>  >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>  >>>
> >>  >>>
> >>  >>
> >>  >
> >>  >
> >>
> >>
> >> --
> >>  View this message in context:
> >> http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html
> >>
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >>  ---------------------------------------------------------------------
> >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>  For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Maven-in-Netbeans-tp17489257p17529056.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to