Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling issue #20

Open
celiajmd opened this issue Aug 12, 2022 · 1 comment
Open

Compiling issue #20

celiajmd opened this issue Aug 12, 2022 · 1 comment

Comments

@celiajmd
Copy link

Hi,

I meet the following error when I run 'mvn pacage' after I download the repo. Could you please help?

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users//xml-avro-master/src/ly/stealth/xmlavro/DatumBuilder.java:[9,22] package javax.xml.bind does not exist
[ERROR] /Users/
/xml-avro-master/src/ly/stealth/xmlavro/DatumBuilder.java:[158,22] cannot find symbol
symbol: variable DatatypeConverter
location: class ly.stealth.xmlavro.DatumBuilder
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.506 s
[INFO] Finished at: 2022-08-12T14:17:03-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project xml-avro: Compilation failure: Compilation failure:
[ERROR] /Users//xml-avro-master/src/ly/stealth/xmlavro/DatumBuilder.java:[9,22] package javax.xml.bind does not exist
[ERROR] /Users/
/xml-avro-master/src/ly/stealth/xmlavro/DatumBuilder.java:[158,22] cannot find symbol
[ERROR] symbol: variable DatatypeConverter
[ERROR] location: class ly.stealth.xmlavro.DatumBuilder
[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

@tomvanoppens
Copy link

add

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.0</version>
</dependency>

into your pom.xml file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants