Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-294

Maven deploy fails with the below issue M2:deploy-file: javax/xml/bind/JAXBException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.0.0-M2
    • None
    • deploy:deploy-file
    • None

    Description

       

      i am facing the issue(PFA) 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.

       

      Attachments

        1. error.PNG
          77 kB
          Anusha Shetty
        2. error1.PNG
          118 kB
          Anusha Shetty

        Activity

          People

            Unassigned Unassigned
            Ap_shetty Anusha Shetty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: