Skip to main content



      Home
Home » Modeling » TMF (Xtext) » The filename or extension is too long(Mvn build fails)
The filename or extension is too long [message #1819569] Fri, 17 January 2020 07:24 Go to next message
Eclipse UserFriend
Hi,

In my project I have several xtext plugins that are build by mvn on a windows machine.

One of them fails during the build with this error:
[INFO] --- fornax-oaw-m2-plugin:3.6.0:run-workflow (run-mwe2-code-generator) @ com.asml.asome.tsp.forcewhitespace ---
[INFO] Fornax Model Workflow Maven2 Plugin V3.6.0
[INFO] Executing workflow in forked mode.
[ERROR] BuildException occurred while running workflow: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_172\jre\bin\java.exe" (in directory "P:\asome\fixes\com.tsp.forcewhitespace"): CreateProcess error=206, The filename or extension is too long
[INFO] ------------------------------------------------------------------------
[


Any ideas on how to find out what exactly is on that command line? Adding -X to mvn does not help.

Regards,
Wilbert.

[Updated on: Fri, 17 January 2020 09:11] by Moderator

Re: The filename or extension is too long [message #1819571 is a reply to message #1819569] Fri, 17 January 2020 07:27 Go to previous messageGo to next message
Eclipse UserFriend
is there any reasons you use the fornax plugin?
did you try to run the maven build with -X?
Re: The filename or extension is too long [message #1819572 is a reply to message #1819571] Fri, 17 January 2020 07:31 Go to previous messageGo to next message
Eclipse UserFriend
you might also try to find the code somewhere and debug
https://github.com/lunifera/fornax-toolsupport-oaw-m2-plugin/blob/005aff49e4f7a8e6d50e2517cf99ac69a331a03a/src/main/java/org/fornax/toolsupport/maven2/WorkflowMojo.java#L763
Re: The filename or extension is too long [message #1819577 is a reply to message #1819572] Fri, 17 January 2020 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi

You file name doesn't look that long but a double dot looks very smelly. I suspect that "com..tsp.forcewhitespace" has confused something.

Regards

Ed Willink
Re: The filename or extension is too long [message #1819579 is a reply to message #1819571] Fri, 17 January 2020 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Thanks for the reply. I inherited the build configuration so I don't know what the rationale was to use this plugin.

And yes, I ran mvn -X but that did not give any clue regarding the content of the command line.

Thanks,
Wilbert.
Re: The filename or extension is too long [message #1819580 is a reply to message #1819577] Fri, 17 January 2020 09:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

The double dot was there (edited by me) because I used some inadequate name that I didn't want to expose. It is (and was) a valid java package name though.

Regards,
Wilbert.
Re: The filename or extension is too long [message #1819586 is a reply to message #1819580] Fri, 17 January 2020 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I guess validity (like beauty) is in the eye of the beholder.

IMHO a blank Java package name is only valid as the root default package. However that does not mean that some tools may not give an illusion of treating it more generously. There is no specification that requires all tools to have precisely the same perverse corner case validity checking.

Regards

Ed Willink
Re: The filename or extension is too long [message #1819640 is a reply to message #1819569] Mon, 20 January 2020 02:58 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
And yes, I ran mvn -X but that did not give any clue regarding the content of the command line.

IIRC the fornax plugin prints out the command line on debug level. It will get too long when you have too many dependencies. Moving the Maven repo dir from your user directory to the drive's root shortens the paths to a large degree. You may use
-Dmaven.repo.local=C:/.m2/repo


Also you can investigate your dependencies and exclude transitive dependencies that are not needed.
Re: The filename or extension is too long [message #1820637 is a reply to message #1819640] Fri, 24 January 2020 02:48 Go to previous message
Eclipse UserFriend
Hi Karsten,

Thanks, that did the trick. I now can see the command line and try to see how to reduce the length of it.

Furthermore, I will investigate replacing the usage of the fornax plugin by the way it is describe d here: https://www.eclipse.org/Xtext/documentation/350_continuous_integration.html

Thanks for all help!

Regards,
Wilbert
Previous Topic:Cross-reference without dot symbol
Next Topic:Debugging a DSL with spaces in its path
Goto Forum:
  


Current Time: Tue Jul 15 06:17:54 EDT 2025

Powered by FUDForum. Page generated in 0.03732 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top