Maven Deploy Plugin
  1. Maven Deploy Plugin
  2. MDEPLOY-88

Artifacts with invalid id can be deployed with deploy:deploy-file.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: deploy:deploy-file
    • Labels:
      None

      Description

      Real world example: WebLogic delivers webserviceclient+ssl.jar.

      It is no problem to create a POM file for this artifact with as "weblogic:webserviceclient+ssl:9.2.1.0" and deploy this with the prepared POM into the repository. It is also no problem to deploy artifacts with a prepared POM that declare a dependency to this artifact. However, if this artifact is declared as direct dependency to a project the build fails immediately with :

      Validation Messages:
      
          [0]  'dependencies.dependency.artifactId' with value 'webserviceclient+ssl' does not match a valid id pattern.
      

      and worse, if the artifact is a transitive dep, you only get a non-explaining warning and all other dependencies of the "transitive artifact" are dropped:

      [WARNING] POM for 'com.company:artifact-name:pom:47.11:runtime' is invalid. It will be ignored for artifact resolution. Reason: F
      ailed to validate POM for project com.company:artifact-name at Artifact [com.company:artifact-name:pom:47.11:runtime]
      

      The deploy plugin has to validate the (also a generated) POM before deploying an artifact with deploy:deploy-file.

      BTW: I suppose the install plugin has the same issue with install:install-file. However, I also suppose the code is shared

        Issue Links

          Activity

          Joerg Schaible created issue -
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue relates to MINSTALL-59 [ MINSTALL-59 ]
          Benjamin Bentmann made changes -
          Component/s deploy:deploy-file [ 13808 ]
          Hide
          Benjamin Bentmann added a comment -

          Fixed in r756247.

          Show
          Benjamin Bentmann added a comment - Fixed in r756247 .
          Benjamin Bentmann made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 2.5 [ 14498 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:25:59 UTC 2015 [ 1428225959796 ]
          Mark Thomas made changes -
          Link This issue relates to MINSTALL-59 [ MINSTALL-59 ]
          Mark Thomas made changes -
          Workflow jira [ 12719327 ] Default workflow, editable Closed status [ 12761463 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:00:37 UTC 2015 [ 1428274837609 ]
          Mark Thomas made changes -
          Link This issue relates to MINSTALL-59 [ MINSTALL-59 ]
          Mark Thomas made changes -
          Workflow jira [ 12956795 ] Default workflow, editable Closed status [ 12993671 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          141d 13h 52m 1 Benjamin Bentmann 19/Mar/09 17:57

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Joerg Schaible
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development