On Mon, Aug 29, 2011 at 11:49 AM, davide.cavestro < [email protected]> wrote:
> Hi guys, > I used *jar.enabled = true* on a web application project that uses the war > plugin. I want to produce a jar archive for project java code, but I've not > yet found a way to publish the jar (unless obviously splitting the project > into two sub-projects). > I'd like to publish on install on local maven cache at least the jar > (better > if both), but when I add the jar to the /archives/ closure this way > > the build fails complaining /org.gradle.api.InvalidUserDataException: A POM > can not have multiple main artifacts. Already have MavenArtifact > coreapp:war:war:null, trying to add MavenArtifact coreapp:jar:jar:null/. > Perhaps a combination of using maven pom customization with filters in the upload task - see http://gradle.org/maven_plugin.html -> "Generation of multiple poms" would work for you. > > Any idea on how to install on local maven cache both the war and jar? > Cheers > Davide > > -- > View this message in context: > http://gradle.1045684.n5.nabble.com/War-plugin-and-maven-how-to-publish-both-war-and-jar-tp4745667p4745667.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 > > > -- Brett Cave Jemstep, Inc www.jemstep.com
