lambda-maven-plugin
lambda-maven-plugin copied to clipboard
A required class was missing while executing com.github.seanroy:lambda-maven-plugin
Just trying out this plugin for the first time.
However, when I try and perform a deployment I get the following error:
A required class was missing while executing com.github.seanroy:lambda-maven-plugin:2.3.3:deploy-lambda: javax/xml/bind/JAXBException
Solved by adding a dependency as follows:
<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>
This is due to JAXB being removed in JDK 11. I got the same error after upgrading the JDK on a project.