You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anusha Shetty (Jira)" <ji...@apache.org> on 2022/06/14 13:11:00 UTC

[jira] [Updated] (MDEPLOY-294) Maven deploy fails with the below issue M2:deploy-file: javax/xml/bind/JAXBException

     [ https://issues.apache.org/jira/browse/MDEPLOY-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anusha Shetty updated MDEPLOY-294:
----------------------------------
             Language: java python
    Affects Version/s: 3.0.0-M2
          Description: 
!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.

 

> 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
>
> !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)