Compile java and generate .jar

0

I have a well-structured maven project. I want to create .jar to run the application.

Inside the project, at the prompt, I did:

mvn clean install package

Returns the error:

  

C: \ sampleSpring \ portal-inscription \ portal-api> mvn package

     

[INFO] Scanning for projects ... [INFO] [INFO]   -------------------------------------------------- ---------------------- [INFO] Building Portal Api 0.0.1-SNAPSHOT [INFO]   -------------------------------------------------- ---------------------- [INFO] [INFO] --- maven-resources-plugin: 2.6: resources   (default-resources) @ portal-api --- [INFO] Using 'UTF-8' encoding to   copy filtered resources. Copying 1 resource [INFO]   resource [INFO] [INFO] --- maven-compiler-plugin: 3.1: compile   (default-compile) @ portal-api --- [INFO] Changes detected -   recompiling the module! [INFO] Compiling 65 source files to   C: \ exampleSpring \ portal-inscription \ portal-api \ target \ classes [INFO]   -------------------------------------------------- ---------------------- [INFO] BUILD FAILURE [INFO]   -------------------------------------------------- ---------------------- [INFO] Total time: 9.585 s [INFO] Finished at:   Final Memory: 10M / 25M [INFO] 2015-09-03T10: 39: 59-03: 00 [INFO]   -------------------------------------------------- ---------------------- [ERROR] Failed to execute goal   org.apache.maven.plugins: maven-compiler-plugin: 3. 1: compile   (default-compile) on project portal-api: Fatal error compiling: invali   d target release: 1.8 - > [Help 1] [ERROR] [ERROR] To see the full   stack trace of the errors, re-run Maven with the -e swit ch. [ERROR]   Re-run Maven using the -X switch to enable full debug logging. [ERROR]   [ERROR] For more information about the errors and possible solutions,   please re the following articles: [ERROR] [Help 1]    link   xception

     

C: \ exampleSpring \ portal-inscription \ portal-api>

    
asked by anonymous 03.09.2015 / 16:21

0 answers