Closed dprotti closed 10 years ago
Under "what you'll need" it says maven 3.0+.
You are right.
However, the corresponding section is not being included in generated README's. I tried with both asciidoc and asciidoctor tools, and none of them include prereq_editor_jdk_buildtools.adoc file content correctly. Even when I didn't run neither of asciidoc nor asciidoctor in safe mode.
How do you process README.adoc to generate a complete README file?
The link above is broken (404). Anyway the generated guide it's OK and mentions Maven 3 as a prereq. I was just wondering how to generate it from the .adoc. Thanks.
That repo is private.
If app is generated in Linux with Maven 2.2.1 then it fails on execution. That's because generated jar does not have a /lib folder with app's dependencies.
$ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500) Java version: 1.7.0_25 $ mvn package && java -jar target/gs-spring-boot-0.1.0.jar Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) at java.lang.Class.getDeclaredMethod(Class.java:1992) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ... more traces
I suggest to explicitly request Maven 3.x in the Readme and guides.