Results 1 to 2 of 2
  1. #1
    rgdoms is offline Member
    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0

    Default Maven run : CreateProcess error=206, The filename or extension is too long

    Hi. I've a maven project, that from a moment to another started giving this error.
    Java Code:
    Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.1.6.RELEASE:run (default-cli) on project wsdl-presentation: 
    Could not exec java: Cannot run program "C:\Program Files\Java\jdk1.8.0\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
    I've checked online and this is related with the amount of dependencies my project have. It causes a huge class path, which is too large for windows command line chars limit.

    I couldn't find an efective solution, for maven projects.
    I found theses flags "repositoryLayout useWildcardClassPath", but it only makes sense on appassembler-maven-plugin, as far as I could reasoning about.

    Someone knows any workaround for this issue?

    Thanks in advance.
    rui domingues

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    25

    Default Re: Maven run : CreateProcess error=206, The filename or extension is too long

    Forum Rules

    The other thread you started has been closed.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 12
    Last Post: 10-11-2016, 09:32 PM
  2. Replies: 0
    Last Post: 12-30-2013, 07:01 AM
  3. maven build error for JSP files
    By devip in forum Apache Maven
    Replies: 0
    Last Post: 01-22-2013, 08:59 AM
  4. Replies: 12
    Last Post: 10-04-2012, 09:40 AM
  5. Replies: 3
    Last Post: 04-10-2008, 09:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •