You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Dayue Gao (JIRA)" <ji...@apache.org> on 2015/09/01 13:37:45 UTC

[jira] [Comment Edited] (KYLIN-982) package.sh should grep out "Download*" messages when determining version

    [ https://issues.apache.org/jira/browse/KYLIN-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14725237#comment-14725237 ] 

Dayue Gao edited comment on KYLIN-982 at 9/1/15 11:36 AM:
----------------------------------------------------------

Yeah, sorry for the late reply.

I think use a more specific pattern makes sense. But since version number and string like "incubating" will change in the future, maybe a pattern like {noformat}"^[0-9]+\.[0-9]+\.[0-9]+"{noformat} is more flexible?


was (Author: gaodayue):
Yeah, sorry for the late reply.

I think use a more specific pattern makes sense. But since version number and string like "incubating" will change in the future, maybe a pattern like "^[0-9]+\.[0-9]+\.[0-9]+" is more flexible?

> package.sh should grep out "Download*" messages when determining version
> ------------------------------------------------------------------------
>
>                 Key: KYLIN-982
>                 URL: https://issues.apache.org/jira/browse/KYLIN-982
>             Project: Kylin
>          Issue Type: Bug
>          Components: Tools, Build and Test
>    Affects Versions: v0.7.2
>            Reporter: Dayue Gao
>            Assignee: hongbin ma
>            Priority: Minor
>         Attachments: KYLIN-982-0.8.patch, KYLIN-982.0.7-staging.patch
>
>
> On a fresh box, "script/package.sh" fails with the following messages.
> {noformat}
> version Downloading: http://hostname:8081/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml
> Downloading: http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml
> Downloaded: http://hostname:8081/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml (24 KB at 8.0 KB/sec)
> Downloaded: http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml (10 KB at 1.8 KB/sec)
> Downloading: http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-help-plugin/maven-metadata.xml
> Downloaded: http://hostname:8081/nexus/content/groups/public/org/apache/maven/plugins/maven-help-plugin/maven-metadata.xml (501 B at 0.1 KB/sec)
> 0.7.3-incubating-SNAPSHOT
> copy lib file
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
>        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
>        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
>        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
>        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
> usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
>        cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
> {noformat}
> It's due to version is not dertermined correctly with the following code in package.sh.
> {code}
> version=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)