[
https://issues.apache.org/jira/browse/BUILDR-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Boisvert updated BUILDR-543:
---------------------------------
Affects Version/s: 1.4.3
Fix Version/s: 1.4.4
Summary: POMs are installed and uploaded twice when using
artifacts with classifier (was: poms get installed twice)
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.
boisv...@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
> POMs are installed and uploaded twice when using artifacts with classifier
> --------------------------------------------------------------------------
>
> Key: BUILDR-543
> URL: https://issues.apache.org/jira/browse/BUILDR-543
> Project: Buildr
> Issue Type: Bug
> Affects Versions: 1.4.3
> Reporter: Alex Boisvert
> Assignee: Alex Boisvert
> Fix For: 1.4.4
>
>
> step...@sh7 pageobjects master]$ buildr --version
> Buildr 1.4.3
> [step...@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
> [step...@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
> # 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'
> # 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.