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

Xiaoxiang Yu updated KYLIN-4591:
--------------------------------
    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.

{code:bash}
mvn release:prepare
{code}

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


{noformat}
[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]
{noformat}


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

As a workaround, I remove the "SNAPSHOT" and install "shaded-guava" locally. 
Finally I execute _mvn release:prepare_ command and everything look fine in my 
machine.

> Prepare shaded-guava artifact separately
> ----------------------------------------
>
>                 Key: KYLIN-4591
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4591
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Tools, Build and Test
>            Reporter: Xiaoxiang Yu
>            Assignee: Xiaoxiang Yu
>            Priority: Major
>
> 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.
> {code:bash}
> mvn release:prepare
> {code}
> And this maven-release-plugin will check a lot of pre-requirements, at the 
> end, it will throw an exception:
> {noformat}
> [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]
> {noformat}
> It means that a dependency which has a "SNAPSHOT" version and artifact/jar 
> cannot be built from source code is not forbidden.
> Unluckily, the "shaded-guava" is a "SNAPSHOT" dependency is in this case.
> As a workaround, I remove the "SNAPSHOT" and install "shaded-guava" locally. 
> Finally I execute _mvn release:prepare_ command and everything look fine in 
> my machine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to