Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:24 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
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 14:11]

Report message to a moderator

Re: The filename or extension is too long [message #1819571 is a reply to message #1819569] Fri, 17 January 2020 12:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13637
Registered: July 2009
Senior Member
is there any reasons you use the fornax plugin?
did you try to run the maven build with -X?


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The filename or extension is too long [message #1819572 is a reply to message #1819571] Fri, 17 January 2020 12:31 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13637
Registered: July 2009
Senior Member
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The filename or extension is too long [message #1819577 is a reply to message #1819572] Fri, 17 January 2020 14:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
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 14:12 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
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 14:13 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
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 15:38 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
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 07:58 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 739
Registered: July 2009
Location: Dortmund, Germany
Senior Member

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 07:48 Go to previous message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
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: Sat Oct 24 09:39:43 GMT 2020

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

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

Back to the top