<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just Java &#187; Maven</title>
	<atom:link href="http://blog.cedarsoft.com/category/java/maven-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cedarsoft.com</link>
	<description>A blog about Java and (related) Open Source tools...</description>
	<lastBuildDate>Wed, 25 Jan 2012 12:02:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing Maven Artifact: Jaxen</title>
		<link>http://blog.cedarsoft.com/2011/12/fixing-maven-artifact-jaxen/</link>
		<comments>http://blog.cedarsoft.com/2011/12/fixing-maven-artifact-jaxen/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 13:48:27 +0000</pubDate>
		<dc:creator>Johannes Schneider</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Jaxen]]></category>
		<category><![CDATA[JDOM]]></category>

		<guid isPermaLink="false">http://blog.cedarsoft.com/?p=499</guid>
		<description><![CDATA[I have created some utility classes for testing purposes. Those depend on JDOM (used for XML formatting).
And JDOM itself has a dependency on jaxen:jaxen. But unfortunately the artifact deployed to Maven Central is broken (at least kind of).
To work around those issues with Jaxen use the following excludes:
      &#60;dependency&#62;
  [...]]]></description>
			<content:encoded><![CDATA[<p>I have created some utility classes for testing purposes. Those depend on JDOM (used for XML formatting).</p>
<p>And JDOM itself has a dependency on jaxen:jaxen. But unfortunately the artifact deployed to Maven Central is broken (at least kind of).<br />
To work around those issues with Jaxen use the following excludes:</p>
<pre class="brush:xml">      &lt;dependency&gt;
        &lt;groupId&gt;jaxen&lt;/groupId&gt;
        &lt;artifactId&gt;jaxen&lt;/artifactId&gt;
        &lt;version&gt;1.1.3&lt;/version&gt;
        &lt;!--

http://jira.codehaus.org/browse/JAXEN-217

        --&gt;
        &lt;exclusions&gt;
          &lt;exclusion&gt;
            &lt;groupId&gt;maven-plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-cobertura-plugin&lt;/artifactId&gt;
          &lt;/exclusion&gt;
          &lt;exclusion&gt;
            &lt;groupId&gt;maven-plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-findbugs-plugin&lt;/artifactId&gt;
          &lt;/exclusion&gt;
        &lt;/exclusions&gt;
      &lt;/dependency&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.cedarsoft.com/2011/12/fixing-maven-artifact-jaxen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Nexus on Ubuntu/Debian</title>
		<link>http://blog.cedarsoft.com/2011/10/installing-nexus-on-ubuntudebian/</link>
		<comments>http://blog.cedarsoft.com/2011/10/installing-nexus-on-ubuntudebian/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 12:12:07 +0000</pubDate>
		<dc:creator>Johannes Schneider</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[DEB]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Nexus]]></category>

		<guid isPermaLink="false">http://blog.cedarsoft.com/?p=476</guid>
		<description><![CDATA[Installing Nexus manually is not a lot of fun. Thankfully a nice guy has created a working deb:
Repository:
http://build.discursive.com/apt/
It also configures Apache2 as proxy for the nexus instance.
]]></description>
			<content:encoded><![CDATA[<p>Installing Nexus manually is not a lot of fun. Thankfully a <a href="http://www.discursive.com/blog/4635">nice guy</a> has created a working deb:</p>
<p>Repository:<br />
<a href="http://build.discursive.com/apt/">http://build.discursive.com/apt/</a></p>
<p>It also configures Apache2 as proxy for the nexus instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cedarsoft.com/2011/10/installing-nexus-on-ubuntudebian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maven: Compiler Plugin configuration &#8211; showing compiler warnings on console</title>
		<link>http://blog.cedarsoft.com/2011/10/maven-compiler-plugin-configuration-showing-compiler-warnings-on-console/</link>
		<comments>http://blog.cedarsoft.com/2011/10/maven-compiler-plugin-configuration-showing-compiler-warnings-on-console/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 22:03:18 +0000</pubDate>
		<dc:creator>Johannes Schneider</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Jenkins]]></category>

		<guid isPermaLink="false">http://blog.cedarsoft.com/?p=469</guid>
		<description><![CDATA[The default compiler plugin configuration hides all warnings. To get all messages on the console, this configuration can be used:
&#60;plugin&#62;
  &#60;groupId&#62;org.apache.maven.plugins&#60;/groupId&#62;
  &#60;artifactId&#62;maven-compiler-plugin&#60;/artifactId&#62;
  &#60;version&#62;2.3.2&#60;/version&#62;
  &#60;configuration&#62;
    &#60;source&#62;1.6&#60;/source&#62;
    &#60;target&#62;1.6&#60;/target&#62;
    &#60;encoding&#62;${project.build.sourceEncoding}&#60;/encoding&#62;
    &#60;showWarnings&#62;true&#60;/showWarnings&#62;
    &#60;showDeprecation&#62;true&#60;/showDeprecation&#62;
    &#60;compilerArgument&#62;-Xlint:all&#60;/compilerArgument&#62;
  &#60;/configuration&#62;
&#60;/plugin&#62;
This configuration [...]]]></description>
			<content:encoded><![CDATA[<p>The default compiler plugin configuration hides all warnings. To get all messages on the console, this configuration can be used:</p>
<pre class="brush:xml">&lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.3.2&lt;/version&gt;
  &lt;configuration&gt;
    &lt;source&gt;1.6&lt;/source&gt;
    &lt;target&gt;1.6&lt;/target&gt;
    &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
    &lt;showWarnings&gt;true&lt;/showWarnings&gt;
    &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
    &lt;compilerArgument&gt;-Xlint:all&lt;/compilerArgument&gt;
  &lt;/configuration&gt;
&lt;/plugin&gt;</pre>
<p>This configuration is for example useful if you want to use &#8220;Compiler Warnings Plugin&#8221; for Jenkins/Hudson.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cedarsoft.com/2011/10/maven-compiler-plugin-configuration-showing-compiler-warnings-on-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Maven + Git] Releasing and Branching done right&#8230;</title>
		<link>http://blog.cedarsoft.com/2010/08/maven-git-relasing-and-branching-done-right/</link>
		<comments>http://blog.cedarsoft.com/2010/08/maven-git-relasing-and-branching-done-right/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 21:02:47 +0000</pubDate>
		<dc:creator>Johannes Schneider</dc:creator>
				<category><![CDATA[Maven]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[vcs]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://blog.cedarsoft.com/?p=407</guid>
		<description><![CDATA[Maven is really awful. I hate it.
But it is by far the best tool available&#8230; Therefore I am using it for several years now. And since it is a tool one has to struggle with, I have invested a lot of time into optimizing my build environment. So I know Maven quite well now &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Maven is really awful. I hate it.</p>
<p>But it is by far the best tool available&#8230; Therefore I am using it for several years now. And since it is a tool one has to struggle with, I have invested a lot of time into optimizing my build environment. So I know Maven quite well now &#8211; better than I wanted&#8230;</p>
<p>And of course I am using Git. And I really love it. But unfortunately Git is just a second class citizen in Maven land. The basic things work, but other things don&#8217;t (like <a href="http://jira.codehaus.org/browse/MRELEASE-579">mvn release:branch</a>).</p>
<p>I have created this checklist for doing a release. Just take a look and compare it with the steps you are doing. I&#8217;d like to hear some opinions and ideas for improvements.</p>
<h3>Small scripts</h3>
<p>I use some scripts that make my life easier:</p>
<ul>
<li><a href="http://git-wt-commit.rubyforge.org/git-publish-branch">git-publish-branch</a></li>
</ul>
<h1>The setup</h1>
<h3>The version numbers</h3>
<p>The upcoming release will be 1.0.0 (the first release for this project). Therefore no maintenance branches exist yet.</p>
<p>Currently the master branch is set to 1.0.0-SNAPSHOT.</p>
<h3>The branches</h3>
<table>
<thead>
<tr>
<th>Branch</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>master</td>
<td>Contains the current development version (that will be released as next major release).</p>
<p>(I have an additional <em>pu</em> branch that is merged to master automatically when all tests have been run successfully, but that doesn&#8217;t matter for this entry)</td>
</tr>
<tr>
<td>next</td>
<td>Contains some experimental code (that will be merged to master one day)</td>
</tr>
<tr>
<td>maint-[VERSION]</td>
<td>Maintenance branches for every version. Just bugfixes are commited here and merged up.</td>
</tr>
</tbody>
</table>
<h1>Release: What has to be done</h1>
<p>The master branch contains the latest peace of software that shall be released (that means that all bugfixes have been merged in from the maint* branches).</p>
<ul>
<li>Tag for the release</li>
<li>Creating a new maint-* branch with updated version number</li>
<li>Updating the version number for master</li>
<li>Probably updated the version number for next, too</li>
</ul>
<p>And: Of course release one version of our software&#8230;</p>
<h1>The Checklist</h1>
<h3>1: Ensure all bugfixes have been merged into master</h3>
<pre class="brush:shell">git log master..maint-[VERSION]</pre>
<h3>2: Creating the maint-branch</h3>
<pre class="brush:shell">git checkout master
git checkout -b maint-1.0.0
git publish-branch</pre>
<h3>3: Releasing on maint</h3>
<pre class="brush:shell">mvn release:prepare
mvn release:perform</pre>
<h3>4: Merging maint to master</h3>
<pre class="brush:shell">git checkout master
git merge maint-1.0.0</pre>
<h3>5: Updating the version on master</h3>
<pre class="brush:shell">mvn versions:set -DnewVersion=1.1.0-SNAPSHOT -DgenerateBackupPoms=false
git commit -a -m "preparing for next major release: updated version in master"
</pre>
<h3>6: Merging master to next</h3>
<pre class="brush:shell">git checkout next
git merge master</pre>
<p>That merge has probably one merge conflict: The version in the pom.xml. Just keep the value of the next branch.</p>
<h3>7: Updating the version for next (optional/if necessary)</h3>
<pre class="brush:shell">mvn versions:set -DnewVersion=2.0.0-SNAPSHOT -DgenerateBackupPoms=false
git commit -a -m "preparing release: updated version in next"</pre>
<h3>8: Pushing the changes</h3>
<pre class="brush:shell">git push</pre>
<h2>The result</h2>
<p>Now there are three branches with different version numbers:</p>
<table>
<thead>
<tr>
<th>Branch</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>maint-1.0.0</td>
<td>1.0.1-SNAPSHOT</td>
</tr>
<tr>
<td>master</td>
<td>1.1.0-SNAPSHOT</td>
</tr>
<tr>
<td>next</td>
<td>2.0.0-SNAPSHOT</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.cedarsoft.com/2010/08/maven-git-relasing-and-branching-done-right/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Maven: Fixing table bug for site plugin 2.1</title>
		<link>http://blog.cedarsoft.com/2010/07/maven-fixing-table-bug-for-site-plugin-2-1/</link>
		<comments>http://blog.cedarsoft.com/2010/07/maven-fixing-table-bug-for-site-plugin-2-1/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 14:56:35 +0000</pubDate>
		<dc:creator>Johannes Schneider</dc:creator>
				<category><![CDATA[Maven]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://blog.cedarsoft.com/?p=372</guid>
		<description><![CDATA[Some time ago a new big release for the site plugin has been done.
Unfortunately they have introduced a small bug:
The table tags now contain the alignment attribute set to &#8220;left&#8221;.
This results to some strange bugs. Take a look at that page:
http://fest.easytesting.org/javafx/maven/compile-mojo.html

Look at the background of the table.  The following h3 gets resized and its [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago a new big release for the site plugin has been done.<br />
Unfortunately they have introduced a small bug:</p>
<p>The table tags now contain the alignment attribute set to &#8220;left&#8221;.</p>
<p>This results to some strange bugs. Take a look at that page:<br />
<a href="http://fest.easytesting.org/javafx/maven/compile-mojo.html">http://fest.easytesting.org/javafx/maven/compile-mojo.html</a></p>
<p><a href="http://blog.cedarsoft.com/wp-uploads/2010/07/Screenshot-Maven-JavaFX-Compiler-Plugin-javafxccompile-Mozilla-Firefox.png"><img src="http://blog.cedarsoft.com/wp-uploads/2010/07/Screenshot-Maven-JavaFX-Compiler-Plugin-javafxccompile-Mozilla-Firefox-300x81.png" alt="Table Bug in maven-site-plugin:2.1" title="Table Bug in maven-site-plugin:2.1" width="300" height="81" class="alignnone size-medium wp-image-375" /></a></p>
<p>Look at the background of the table.  The following h3 gets resized and its background is drawn behind the table&#8230;</p>
<p>To fix it, just add those lines to the CSS:<br />
[cc lang="css"]<br />
table {<br />
  float: none;<br />
}[/cc]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cedarsoft.com/2010/07/maven-fixing-table-bug-for-site-plugin-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Splitting up your pom.xml into multiple files</title>
		<link>http://blog.cedarsoft.com/2007/09/splitting-up-your-pom-xml-into-multiple-files/</link>
		<comments>http://blog.cedarsoft.com/2007/09/splitting-up-your-pom-xml-into-multiple-files/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 22:35:00 +0000</pubDate>
		<dc:creator>Johannes Schneider</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://blog.cedarsoft.com/?p=3</guid>
		<description><![CDATA[Ever had to deal with a really, really huge pom.xml? As soon as you start not only to declare the dependencies but also to add informations about the distribution (repositories, site), mailinglists or developers, the pom.xml starts to become really huge.
It is hard to find the informations you search. And it is much harder to [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had to deal with a really, really huge pom.xml? As soon as you start not only to declare the dependencies but also to add informations about the distribution (repositories, site), mailinglists or developers, the pom.xml starts to become really huge.</p>
<p>It is hard to find the informations you search. And it is much harder to find that revision a dependecy has changed if there is so much noise due to changes in other sections.<br />
Many applications with huge configuration files started to convert their files into directories over the last years. Apache now has its &#8220;conf.d&#8221; directory, crontab uses &#8220;cron.d&#8221; and so on.</p>
<p>Why not take the same step, too? Why not split up the pom.xml into several files that are placed within a directory called &#8220;pom.d&#8221;?<br />
So I have created a <a title=" Optional support for splitting up pom.xml in multiple files" href="http://docs.codehaus.org/display/MAVENUSER/Optional+support+for+splitting+up+pom.xml+in+multiple+files" target="_blank">proposal for Maven 2.1</a>.</p>
<p>What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cedarsoft.com/2007/09/splitting-up-your-pom-xml-into-multiple-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

