<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Maven on cat /dev/snapshot</title><link>https://rumpf.eu/michael/tags/maven/</link><description>Recent content in Maven on cat /dev/snapshot</description><generator>Hugo -- 0.154.5</generator><language>en</language><lastBuildDate>Tue, 14 Aug 2012 14:09:00 +0200</lastBuildDate><atom:link href="https://rumpf.eu/michael/tags/maven/index.xml" rel="self" type="application/rss+xml"/><item><title>Use Java 7 on Buildhive</title><link>https://rumpf.eu/michael/posts/2012-08-14-use-java-7-on-buildhive/</link><pubDate>Tue, 14 Aug 2012 14:09:00 +0200</pubDate><guid>https://rumpf.eu/michael/posts/2012-08-14-use-java-7-on-buildhive/</guid><description>&lt;p&gt;Changing source and target version to 1.7 is not sufficient to enable Java 7 on Buildhive at the moment.&lt;br&gt;
Adding the following profile to your Maven POM makes sure that your local build is not affected by
the special configuration and when running on Buildhive, JDK 7 is used for both build and test-run.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;  &amp;lt;profiles&amp;gt;
    &amp;lt;profile&amp;gt;
      &amp;lt;id&amp;gt;buildhive&amp;lt;/id&amp;gt;
      &amp;lt;build&amp;gt;
        &amp;lt;plugins&amp;gt;
          &amp;lt;plugin&amp;gt;
            &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;
            &amp;lt;version&amp;gt;2.5.1&amp;lt;/version&amp;gt;
            &amp;lt;configuration&amp;gt;
              &amp;lt;source&amp;gt;1.7&amp;lt;/source&amp;gt;
              &amp;lt;target&amp;gt;1.7&amp;lt;/target&amp;gt;
              &amp;lt;showDeprecation&amp;gt;true&amp;lt;/showDeprecation&amp;gt;
              &amp;lt;showWarnings&amp;gt;true&amp;lt;/showWarnings&amp;gt;
              &amp;lt;encoding&amp;gt;UTF-8&amp;lt;/encoding&amp;gt;
              &amp;lt;executable&amp;gt;/opt/jdk/jdk1.7.0/bin/javac&amp;lt;/executable&amp;gt;
              &amp;lt;fork&amp;gt;true&amp;lt;/fork&amp;gt;
            &amp;lt;/configuration&amp;gt;
          &amp;lt;/plugin&amp;gt;
          &amp;lt;plugin&amp;gt;
            &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;maven-surefire-plugin&amp;lt;/artifactId&amp;gt;
            &amp;lt;configuration&amp;gt;
              &amp;lt;jvm&amp;gt;/opt/jdk/jdk1.7.0/bin/java&amp;lt;/jvm&amp;gt;
              &amp;lt;forkMode&amp;gt;once&amp;lt;/forkMode&amp;gt;
            &amp;lt;/configuration&amp;gt;
          &amp;lt;/plugin&amp;gt;
        &amp;lt;/plugins&amp;gt;
      &amp;lt;/build&amp;gt;
    &amp;lt;/profile&amp;gt;
  &amp;lt;/profiles&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The profile can be selected by adding the following line to the configuration of your Buildhive job:&lt;/p&gt;</description></item><item><title>Deploying weld-osgi to jcoderz.org repository</title><link>https://rumpf.eu/michael/posts/2011-12-31-for-deploying-weld-osgi-to-jcoderz/</link><pubDate>Sat, 31 Dec 2011 16:36:00 +0100</pubDate><guid>https://rumpf.eu/michael/posts/2011-12-31-for-deploying-weld-osgi-to-jcoderz/</guid><description>&lt;p&gt;For deploying weld-osgi to the jcoderz.org repository the following modifications to the &lt;code&gt;pom.xml&lt;/code&gt;
files are necessary (after applying the wagon-ssh extensions to the your Maven installation, see previous post):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Deploy the WELD API packages&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;git clone -b WELD-963 http://github.com/mathieuancelin/api.git WELD-963
cd WELD-963
vi pom.xml
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Add the following XMl fragment to the maven-deploy-plugin&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;   &amp;lt;build&amp;gt;
      &amp;lt;plugins&amp;gt;
         &amp;lt;plugin&amp;gt;
            &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
            &amp;lt;artifactId&amp;gt;maven-deploy-plugin&amp;lt;/artifactId&amp;gt;
            &amp;lt;configuration&amp;gt;
               &amp;lt;skip&amp;gt;true&amp;lt;/skip&amp;gt;
            &amp;lt;/configuration&amp;gt;
            &amp;lt;dependencies&amp;gt;
              &amp;lt;dependency&amp;gt;
                &amp;lt;groupId&amp;gt;org.apache.maven.wagon&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;wagon-ssh&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;2.2&amp;lt;/version&amp;gt;
              &amp;lt;/dependency&amp;gt;
            &amp;lt;/dependencies&amp;gt;
         &amp;lt;/plugin&amp;gt;
      &amp;lt;/plugins&amp;gt;
   &amp;lt;/build&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;mvn -e clean install -Dmaven.test.skip=true
mvn -e deploy -DaltDeploymentRepository=jcoderz-snapshots::default::scp://jcoderz.org/var/www/repos/maven2-snapshot/ -Dmaven.test.skip=true
cd ..
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt; &lt;br&gt;
2. Deploy the WELD OSGi packages&lt;/p&gt;</description></item><item><title>Maven 3: SSH deployment to foreign repository</title><link>https://rumpf.eu/michael/posts/2011-12-31-maven-3-ssh-deploy-to-foreign/</link><pubDate>Sat, 31 Dec 2011 16:08:00 +0100</pubDate><guid>https://rumpf.eu/michael/posts/2011-12-31-maven-3-ssh-deploy-to-foreign/</guid><description>&lt;p&gt;Using the maven-deploy-plugin to deploy artifacts to a repository that is not the
original target repository of a project is getting complicated with Maven 3 when
the wagon SSH provider is not part of the Maven distribution. The following JAR
files must be added to the Maven distribution into the &lt;code&gt;lib/ext&lt;/code&gt; extension folder:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;jsch-0.1.44-1.jar&lt;/li&gt;
&lt;li&gt;plexus-utils-3.0.jar&lt;/li&gt;
&lt;li&gt;plexus-interactivity-api-1.0-alpha-6.jar&lt;/li&gt;
&lt;li&gt;wagon-ssh-2.2.jar\n* wagon-ssh-external-2.2.jar&lt;/li&gt;
&lt;li&gt;wagon-ssh-common-2.2.jar&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then the parent &lt;code&gt;pom.xml&lt;/code&gt; of the project must be extended by the  following lines:&lt;/p&gt;</description></item><item><title>Building weld-osgi</title><link>https://rumpf.eu/michael/posts/2011-12-06-building-weld-osgi/</link><pubDate>Tue, 06 Dec 2011 23:11:00 +0100</pubDate><guid>https://rumpf.eu/michael/posts/2011-12-06-building-weld-osgi/</guid><description>&lt;p&gt;In case you want to use &lt;a href="http://seamframework.org/Weld"&gt;Weld&lt;/a&gt; inside your OSGi application you first need to compile a few branches on your own:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/mathieuancelin/api/tree/WELD-963"&gt;WELD-963&lt;/a&gt; branch of the weld/api project&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/mathieuancelin/core/tree/weld-osgi"&gt;weld-osgi&lt;/a&gt; branch from the weld/core project&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Those branches will soon be merged into the official Weld codebase. But in the meantime you need to follow the steps below in order to get the packages compiled.&lt;br&gt;
A prerequisite is that git and Maven 3 is available&lt;/p&gt;</description></item></channel></rss>