[
https://issues.apache.org/jira/browse/MDEPLOY-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anusha Shetty updated MDEPLOY-294:
----------------------------------
Attachment: error1.PNG
> Maven deploy fails with the below issue M2:deploy-file:
> javax/xml/bind/JAXBException
> ------------------------------------------------------------------------------------
>
> Key: MDEPLOY-294
> URL: https://issues.apache.org/jira/browse/MDEPLOY-294
> Project: Maven Deploy Plugin
> Issue Type: Bug
> Components: deploy:deploy-file
> Affects Versions: 3.0.0-M2
> Reporter: Anusha Shetty
> Priority: Major
> Attachments: error.PNG, error1.PNG
>
>
> !image-2022-06-14-18-23-32-368.png!
> !image-2022-06-14-18-31-32-647.png!
>
> i am facing the above issue even after using the latest maven-deploy-plugin
> i.e 3.0.0-M2
> i understand that jaxb apis has been removed from jdk after java 11 and
> hence as mentioned in other solutions i had added the below dependencies to
> my pom.
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.jaxb</groupId>
> <artifactId>jaxb-runtime</artifactId>
> <version>2.3.0</version>
> </dependency>
> <dependency>
> <groupId>javax.activation</groupId>
> <artifactId>activation</artifactId>
> <version>1.1.1</version>
> </dependency>
> But still i am getting the same issue.
> i also tried adding the dependency within the plugin
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-deploy-plugin</artifactId>
> <version>3.0.0-M2</version>
> <dependencies>
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.3.0</version>
> </dependency>
> </dependencies>
> </plugin>
> i checked for jaxb-api jar and it was present with JAXException class.
> Inspite of adding all the above dependency maven deploy fails . Could you
> tell me what is that i am missing here.
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)