Buildr
  1. Buildr
  2. BUILDR-543

POMs are installed and uploaded twice when using artifacts with classifier

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.3
    • Fix Version/s: 1.4.4
    • Component/s: None
    • Labels:
      None

      Description

      stephen@sh7 pageobjects master]$ buildr --version
      Buildr 1.4.3

      [stephen@sh7 pageobjects master]$ buildr clean install
      (in /home/stephen/exigence/pageobjects, development)
      Cleaning pageobjects
      Building pageobjects
      [ivy_resolve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
      [ivy_resolve] :: loading settings :: file = /home/stephen/exigence/pageobjects/ivysettings.xml
      [ivy_resolve] :: resolving dependencies :: com.bizo#pageobjects;1.0-SNAPSHOT
      [ivy_resolve] confs: [default, compile, sources]
      [ivy_resolve] found org.seleniumhq.selenium#selenium;r9790 in default
      [ivy_resolve] found com.google.guava#guava;r07 in public
      [ivy_resolve] found org.json#json;20090211 in public
      [ivy_resolve] found junit#junit;4.8.1 in default
      [ivy_resolve] :: resolution report :: resolve 2670ms :: artifacts dl 13ms
      ---------------------------------------------------------------------

        modules artifacts
      conf number search dwnlded evicted number dwnlded

      ---------------------------------------------------------------------

      default 4 2 0 0 4 0
      compile 4 2 0 0 4 0
      sources 2 2 0 0 2 0

      ---------------------------------------------------------------------
      Calling '0' post_resolve tasks for 'pageobjects'
      Ivy adding compile dependencies 'compile' to project 'pageobjects'
      Compiling pageobjects into /home/stephen/exigence/pageobjects/target/classes
      Ivy adding test dependencies ', compile' to project 'pageobjects'
      Adding manifest entries to package '/home/stephen/exigence/pageobjects/target/pageobjects-1.0-SNAPSHOT.jar'
      Packaging pageobjects
      Packaging pageobjects-1.0-SNAPSHOT.jar
      Packaging pageobjects-1.0-SNAPSHOT-sources.jar
      Running integration tests...
      Installing packages from pageobjects
      Installed /home/stephen/exigence/pageobjects/target/pageobjects-1.0-SNAPSHOT.pom to /home/stephen/.m2/repository/com/bizo/pageobjects/1.0-SNAPSHOT/pageobjects-1.0-SNAPSHOT.pom
      Installed /home/stephen/exigence/pageobjects/target/pageobjects-1.0-SNAPSHOT.jar to /home/stephen/.m2/repository/com/bizo/pageobjects/1.0-SNAPSHOT/pageobjects-1.0-SNAPSHOT.jar
      Installed /home/stephen/exigence/pageobjects/target/pageobjects-1.0-SNAPSHOT.pom to /home/stephen/.m2/repository/com/bizo/pageobjects/1.0-SNAPSHOT/pageobjects-1.0-SNAPSHOT.pom
      Installed /home/stephen/exigence/pageobjects/target/pageobjects-1.0-SNAPSHOT-sources.jar to /home/stephen/.m2/repository/com/bizo/pageobjects/1.0-SNAPSHOT/pageobjects-1.0-SNAPSHOT-sources.jar
      Completed in 5.576s

      [stephen@sh7 pageobjects master]$ cat buildfile

      require 'buildr/ivy_extension'

      VERSION_NUMBER = ENV['revision'] || '1.0-SNAPSHOT'

      repositories.remote << "http://www.ibiblio.org/maven2/"
      repositories.release_to = 'sftp://joist.ws/var/joist.repo'
      repositories.release_to[:permissions] = 0644

      1. be nice if this was the default...
        Buildr.settings.build['ivy'] = {}
        Buildr.settings.build['ivy']['home.dir'] = "# {ENV['HOME']}

        /.ivy2"
        Buildr.settings.build['ivy']['settings.file'] = 'ivysettings.xml'

      2. to resolve the $ {revision}

        in the ivy.xml
        Java.java.lang.System.setProperty("revision", VERSION_NUMBER)

      define "pageobjects" do
      project.version = VERSION_NUMBER
      project.group = 'com.bizo'
      ivy.compile_conf('compile')

      package_with_sources

      package(:jar).pom.tap do |pom|
      pom.enhance [task('ivy:makepom')]
      pom.from 'target/pom.xml'
      end
      end

        Activity

        Hide
        Alex Boisvert added a comment -

        Ok, fixed.

        I've changed things such that Buildr will only implicitly install and upload poms along with the main artifact (i.e., an artifact without classifier).

        For the cases where only artifacts with classifiers are used, the POM must be explicitly installed/uploaded if desired.

        boisvert@smudge:~/git/buildr$ git svn dcommit
        Committing to https://svn.apache.org/repos/asf/buildr/trunk ...
        M CHANGELOG
        M lib/buildr/packaging/artifact.rb
        M spec/packaging/artifact_spec.rb
        Committed r1026628

        Show
        Alex Boisvert added a comment - Ok, fixed. I've changed things such that Buildr will only implicitly install and upload poms along with the main artifact (i.e., an artifact without classifier). For the cases where only artifacts with classifiers are used, the POM must be explicitly installed/uploaded if desired. boisvert@smudge:~/git/buildr$ git svn dcommit Committing to https://svn.apache.org/repos/asf/buildr/trunk ... M CHANGELOG M lib/buildr/packaging/artifact.rb M spec/packaging/artifact_spec.rb Committed r1026628
        Hide
        Hudson added a comment -

        Integrated in Buildr-ci-build #235 (See https://builds.apache.org/job/Buildr-ci-build/235/)

        Show
        Hudson added a comment - Integrated in Buildr-ci-build #235 (See https://builds.apache.org/job/Buildr-ci-build/235/ )

          People

          • Assignee:
            Alex Boisvert
            Reporter:
            Alex Boisvert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development