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

package.sh should grep out "Download*" messages when determining version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • v0.7.2
    • v1.1, v1.4.0
    • Tools, Build and Test
    • None

    Description

      On a fresh box, "script/package.sh" fails with the following messages.

      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
      

      It's due to version is not dertermined correctly with the following code in package.sh.

      version=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
      

      Attachments

        1. KYLIN-982.0.7-staging.patch
          0.8 kB
          Dayue Gao
        2. KYLIN-982-0.7-staging.patch.2
          0.8 kB
          Dayue Gao
        3. KYLIN-982-0.8.patch
          0.8 kB
          Dayue Gao
        4. KYLIN-982-0.8.patch.2
          0.8 kB
          Dayue Gao

        Activity

          People

            mahongbin Hongbin Ma
            gaodayue Dayue Gao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: