Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

[ERROR] COMPILATION ERROR  #77

@nyck33

Description

@nyck33

I tried mvn jetty:run but could not as it gave me the following error trace:

howcase (master) $ mvn jetty:run
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.springframework.samples:spring-mvc-showcase:war:1.0.0-BUILD-SNAPSHOT
[WARNING] 'dependencies.dependency.version' for org.apache.logging.log4j:log4j-core:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 48, column 13
[WARNING] 'dependencies.dependency.version' for org.apache.logging.log4j:log4j-slf4j-impl:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 53, column 13
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 183, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ----------< org.springframework.samples:spring-mvc-showcase >-----------
[INFO] Building spring-mvc-showcase 1.0.0-BUILD-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:9.4.8.v20171121:run (default-cli) > test-compile @ spring-mvc-showcase >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-mvc-showcase ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ spring-mvc-showcase ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 40 source files to /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/target/classes
[INFO] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/form/FormBean.java: Some input files use or override a deprecated API.
[INFO] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/form/FormBean.java: Recompile with -Xlint:deprecation for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/messageconverters/JavaBean.java:[4,33] package javax.xml.bind.annotation does not exist
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/messageconverters/JavaBean.java:[6,2] cannot find symbol
  symbol: class XmlRootElement
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/mapping/JavaBean.java:[3,33] package javax.xml.bind.annotation does not exist
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/mapping/JavaBean.java:[5,2] cannot find symbol
  symbol: class XmlRootElement
[INFO] 4 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.383 s
[INFO] Finished at: 2019-03-31T09:31:00+07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project spring-mvc-showcase: Compilation failure: Compilation failure: 
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/messageconverters/JavaBean.java:[4,33] package javax.xml.bind.annotation does not exist
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/messageconverters/JavaBean.java:[6,2] cannot find symbol
[ERROR]   symbol: class XmlRootElement
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/mapping/JavaBean.java:[3,33] package javax.xml.bind.annotation does not exist
[ERROR] /media/nobu/Ubuntu Backup/Comp Sci/Web/Java/spring-mvc-showcase/src/main/java/org/springframework/samples/mvc/mapping/JavaBean.java:[5,2] cannot find symbol
[ERROR]   symbol: class XmlRootElement
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions