Guest User

Untitled

a guest
Jun 25th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Issue: CreateProcess error=206, The filename or extension is too long
  2.  
  3. Root cause: Classpath too long when specified in -cp. Putting classpath into META-INF/MANIFEST.MF solves the issue by adding below snippet into pom.xml.
  4.  
  5. ```xml
  6. <plugin>
  7. <groupId>org.apache.maven.plugins</groupId>
  8. <artifactId>maven-war-plugin</artifactId>
  9. <version>2.6</version>
  10. <configuration>
  11. <failOnMissingWebXml>false</failOnMissingWebXml>
  12. <archive>
  13. <manifest>
  14. <addClasspath>true</addClasspath>
  15. </manifest>
  16. </archive>
  17. </configuration>
  18. </plugin>
  19. ```
Add Comment
Please, Sign In to add comment