Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-543

POMs are installed and uploaded twice when using artifacts with classifier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.3
    • 1.4.4
    • None
    • 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

      Attachments

        Activity

          People

            boisvert Alex Boisvert
            boisvert Alex Boisvert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: