Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4591

Artifact shaded-guava break release:prepare

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Workaround
    • Affects Version/s: None
    • Fix Version/s: Future
    • Component/s: Tools, Build and Test
    • Labels:
      None

      Description

      Let me try to explain the problem I faced:

      As I am the release manager of kylin 3.1.0, I am trying to use following command to do the release.

      mvn release:prepare
      

      And this maven-release-plugin will check a lot of pre-requirements, at the end, it will throw an exception:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project kylin: Can't release project due to non released dependencies :
      [ERROR]     org.apache.kylin:kylin-shaded-guava:jar:3.1.0-SNAPSHOT:compile
      [ERROR] in project 'Apache Kylin - Core Common' (org.apache.kylin:kylin-core-common:jar:3.1.0-SNAPSHOT)
      [ERROR] -> [Help 1]
      

      It means that a dependency which has a "X.Y.Z-SNAPSHOT" version and its artifact/jar cannot be built from source code is forbidden.
      Unluckily, the "shaded-guava" is in this case.

      As a workaround, I remove the "SNAPSHOT" postfix for this "shaded-guava", and install "shaded-guava" locally. After that, I execute mvn release:prepare command and everything look fine in my machine.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hit_lacus Xiaoxiang Yu
                Reporter:
                hit_lacus Xiaoxiang Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: