Technically it should be possible, with something like:

uploadArchives {
    repositories.mavenDeployer {
        pom.withXml { provider -> 
            def builder = provider.asString()
            builder.length = 0 // delete previous content
            builder << project.file("pom.xml").getText("utf-8")
        }
    }
}

--
Peter Niederwieser
Principal Engineer, Gradleware 
http://gradleware.com
Creator, Spock Framework 
http://spockframework.org
Twitter: @pniederw


Brett Cave wrote:
> 
> Hi,
> 
> We have both gradle and maven build scripts for a project. Looking at the
> maven documentation, the pom will automatically be generated by gradle. Is
> there a way to configure a project to use an existing pom in the project
> root instead of generating one for upload tasks?
> 
> brett
> 


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Maven-plugin-use-existing-pom-xml-tp4748034p4753008.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to