<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automatically Generating a Maven POM file with ANT</title>
	<atom:link href="http://www.jonnyreeves.co.uk/2010/01/automatically-generating-a-maven-pom-file-with-ant/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonnyreeves.co.uk/2010/01/automatically-generating-a-maven-pom-file-with-ant/</link>
	<description>Actionscript, Flash, PHP and stuff</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:25:08 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Erik</title>
		<link>http://www.jonnyreeves.co.uk/2010/01/automatically-generating-a-maven-pom-file-with-ant/comment-page-1/#comment-8322</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.jonnyreeves.co.uk/?p=151#comment-8322</guid>
		<description>I think there might be a few gotchas that could get you on the right track. 

First, when creating the pom, you should use the distributionManagement element of the POM (see http://maven.apache.org/pom.html#Distribution_Management) for specifying repositories. The remoteRepository element that you specified is not a POM element but rather a sub element to the artifact:deploy ant task (which is how you correctly used it in the &quot;workaround&quot;). I agree that the error message you got is not crystal clear in that regard.

Also, if you specify the trim=&quot;false&quot; attribute on the writepom-task, it will write out the whole pom, by default it for some reason trims &quot;unnecessary&quot; information such as build configuration, repositories, and profiles. (See the bottom of http://maven.apache.org/ant-tasks/examples/write-pom.html for details).

Hope that helps.</description>
		<content:encoded><![CDATA[<p>I think there might be a few gotchas that could get you on the right track. </p>
<p>First, when creating the pom, you should use the distributionManagement element of the POM (see <a href="http://maven.apache.org/pom.html#Distribution_Management)" rel="nofollow">http://maven.apache.org/pom.html#Distribution_Management)</a> for specifying repositories. The remoteRepository element that you specified is not a POM element but rather a sub element to the artifact:deploy ant task (which is how you correctly used it in the &#8220;workaround&#8221;). I agree that the error message you got is not crystal clear in that regard.</p>
<p>Also, if you specify the trim=&#8221;false&#8221; attribute on the writepom-task, it will write out the whole pom, by default it for some reason trims &#8220;unnecessary&#8221; information such as build configuration, repositories, and profiles. (See the bottom of <a href="http://maven.apache.org/ant-tasks/examples/write-pom.html" rel="nofollow">http://maven.apache.org/ant-tasks/examples/write-pom.html</a> for details).</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
