0

My pom contains:

    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-core</artifactId>
        <version>2.3.0.1</version>
    </dependency>

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

    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.3.1</version>
    </dependency>

But when I run mvn deploy, it fails with:

[ERROR] Failed to execute goal com.github.seanroy:lambda-maven-plugin:2.3.2:deploy-lambda (default) on project California_GIS_Services: Execution default of goal com.github.seanroy:lambda-maven-plugin:2.3.2:deploy-lambda failed: A required class was missing while executing com.github.seanroy:lambda-maven-plugin:2.3.2:deploy-lambda: javax/xml/bind/JAXBException

Is there something different that needs to be done to get the plugin to use the compile dependencies?

1 Answer 1

2

Solved by adding a dependency to the plug-in:

        <plugin>
            <groupId>com.github.seanroy</groupId>
            <artifactId>lambda-maven-plugin</artifactId>
            <version>2.3.3</version>
            <dependencies>
                <dependency>
                    <groupId>javax.xml.bind</groupId>
                    <artifactId>jaxb-api</artifactId>
                    <version>2.3.1</version>
                </dependency>
            </dependencies>
            ....
        </plugin>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.