[ 
https://issues.apache.org/jira/browse/BUILDR-500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904755#action_12904755
 ] 

Alex Boisvert commented on BUILDR-500:
--------------------------------------

There are two ways,

 package(:jar).pom.from _("path/to/pom.xml")

or,

 package(:jar).pom.content xml

where "xml" is any content that can be converted to a string with to_s()

e.g.

  xml = Builder::XmlMarkup.new(:indent=>2)
  xml.project do
    pkg = package(:jar)
    xml.modelVersion '4.0.1'
    xml.groupId pkg.group
    xml.artifactId pkg.id
    xml.version pkg.version
  end
  package(:jar).pom.content xml

Sadly, both of these require Buildr 1.4.2 (unreleased) or SVN trunk since I 
fixed BUILDR-488 "artifact poms not reinstalled" only recently.

> Document Uploading of custom POM files
> --------------------------------------
>
>                 Key: BUILDR-500
>                 URL: https://issues.apache.org/jira/browse/BUILDR-500
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Packaging
>    Affects Versions: 1.4.1
>            Reporter: Paul Walker
>            Priority: Minor
>
> Please provide documentation on how to upload custom pom files rather than 
> those generated by buildr.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to