<?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>Christophe Hamerling [Archive] &#187; maven</title>
	<atom:link href="http://planet.petalslink.com/home/chamerling/tag/maven/feed/" rel="self" type="application/rss+xml" />
	<link>http://planet.petalslink.com/home/chamerling</link>
	<description>Things around SOA, Web Services, Open Source and more...</description>
	<lastBuildDate>Wed, 07 Oct 2009 13:16:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Maven est ton ami #1 : Dependency tree</title>
		<link>http://planet.petalslink.com/home/chamerling/2009/07/22/maven-est-ton-ami-1-dependency-tree/</link>
		<comments>http://planet.petalslink.com/home/chamerling/2009/07/22/maven-est-ton-ami-1-dependency-tree/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 12:58:28 +0000</pubDate>
		<dc:creator>Christophe Hamerling</dc:creator>
				<category><![CDATA[maven]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://blog.ebmwebsourcing.com/home/chamerling/?p=146</guid>
		<description><![CDATA[Someones are saying that Maven is hard to domesticate&#8230; That&#8217;s true but when you you become Maven aware it really facilitate the developer&#8217;s life. More posts will come later on Maven&#8230; For now just an answer to guys who are always asking me (and others): &#171;&#160;Hey! Which module include this dependency? I need to update [...]]]></description>
			<content:encoded><![CDATA[<p>Someones are saying that Maven is hard to domesticate&#8230; That&#8217;s true but when you you become Maven aware it really facilitate the developer&#8217;s life. More posts will come later on Maven&#8230; For now just an answer to guys who are always asking me (and others):</p>
<blockquote><p>&laquo;&nbsp;Hey! Which module include this dependency? I need to update the version but I can not find where it is defined?!&nbsp;&raquo;</p></blockquote>
<p><em>(Dédicace à Nico Jr <img src='http://planet.petalslink.com/home/chamerling/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</em></p>
<blockquote><p>mvn dependency:tree</p></blockquote>
<p>This plugin will give you the complete dependency tree of the current module. Thanks Maven!</p>
]]></content:encoded>
			<wfw:commentRss>http://planet.petalslink.com/home/chamerling/2009/07/22/maven-est-ton-ami-1-dependency-tree/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Proxify Web Services in PEtALS with Maven</title>
		<link>http://planet.petalslink.com/home/chamerling/2009/06/02/proxify-web-services-in-petals-with-maven/</link>
		<comments>http://planet.petalslink.com/home/chamerling/2009/06/02/proxify-web-services-in-petals-with-maven/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 14:16:21 +0000</pubDate>
		<dc:creator>Christophe Hamerling</dc:creator>
				<category><![CDATA[PEtALS]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[WebService]]></category>

		<guid isPermaLink="false">http://blog.ebmwebsourcing.com/home/chamerling/?p=124</guid>
		<description><![CDATA[This is quite the same thing than the previous post where I introduced how to expose JAXWS service in PEtALS ESB with Maven. This time, let&#8217;s proxify a Web service in PEtALS with Maven. Here is the Maven descriptor snippet : &#60;build&#62; &#60;plugins&#62; &#60;plugin&#62; &#60;groupId&#62;org.ow2.petals&#60;/groupId&#62; &#60;artifactId&#62;maven-petals-wsproxy&#60;/artifactId&#62; &#60;version&#62;1.0-SNAPSHOT&#60;/version&#62; &#60;executions&#62; &#60;execution&#62; &#60;id&#62;generate-jbi&#60;/id&#62; &#60;phase&#62;package&#60;/phase&#62; &#60;configuration&#62; &#60;wsdl&#62; http://localhost:8080/Service?wsdl &#60;/wsdl&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>This is quite the same thing than the previous post where I introduced how to expose JAXWS service in <a href="http://petals.ow2.org">PEtALS ESB</a> with Maven. This time, let&#8217;s proxify a Web service in PEtALS with Maven.</p>
<p>Here is the Maven descriptor snippet :</p>
<pre>
&lt;build&gt;
	&lt;plugins&gt;
		&lt;plugin&gt;
			&lt;groupId&gt;org.ow2.petals&lt;/groupId&gt;
			&lt;artifactId&gt;maven-petals-wsproxy&lt;/artifactId&gt;
			&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
			&lt;executions&gt;
				&lt;execution&gt;
					&lt;id&gt;generate-jbi&lt;/id&gt;
					&lt;phase&gt;package&lt;/phase&gt;
					&lt;configuration&gt;
						&lt;wsdl&gt;

http://localhost:8080/Service?wsdl

						&lt;/wsdl&gt;
					&lt;/configuration&gt;
					&lt;goals&gt;
						&lt;goal&gt;wsproxy&lt;/goal&gt;
					&lt;/goals&gt;
				&lt;/execution&gt;
			&lt;/executions&gt;
		&lt;/plugin&gt;
	&lt;/plugins&gt;
&lt;/build&gt;
</pre>
<p>This will generate a JBI Service Assembly that you can then deploy intoo PEtALS to proxify the service defined in http://localhost:8080/Service?wsdl</p>
<p>You can give it a try, the snapshot version is available on the <a href="http://maven.ow2.org">OW2 Maven repository</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://planet.petalslink.com/home/chamerling/2009/06/02/proxify-web-services-in-petals-with-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easily expose JAXWS in PEtALS with Maven</title>
		<link>http://planet.petalslink.com/home/chamerling/2009/05/26/easily-expose-jaxws-in-petals-with-maven/</link>
		<comments>http://planet.petalslink.com/home/chamerling/2009/05/26/easily-expose-jaxws-in-petals-with-maven/#comments</comments>
		<pubDate>Tue, 26 May 2009 12:04:29 +0000</pubDate>
		<dc:creator>Christophe Hamerling</dc:creator>
				<category><![CDATA[PEtALS]]></category>
		<category><![CDATA[jaxws]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://blog.ebmwebsourcing.com/home/chamerling/?p=118</guid>
		<description><![CDATA[Since I am always using command line tools such as Maven or Ant to create my project and to package them, I have just created a new Maven plugin to easily and quickly expose a JAXWS service in PEtALS with Maven. This plugin will generate the JBI Service Unit and Service Assembly from a Maven [...]]]></description>
			<content:encoded><![CDATA[<p>Since I am always using command line tools such as Maven or Ant to create my project and to package them, I have just created a new Maven plugin to easily and quickly expose a JAXWS service in PEtALS with Maven. This plugin will generate the JBI Service Unit and Service Assembly from a Maven java project with just a few lines of Maven settings&#8230;</p>
<p>As an example, the following interface :</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">org.ow2.petals</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.jws.WebMethod</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.jws.WebService</span><span style="color: #339933;">;</span>
&nbsp;
@WebService
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">interface</span> Service <span style="color: #009900;">&#123;</span>
&nbsp;
	@WebMethod
	<span style="color: #003399;">String</span> ping<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>and its implementation :</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">org.ow2.petals</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ServiceImpl <span style="color: #000000; font-weight: bold;">implements</span> Service <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> ping<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> input<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> input<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>will generate a Service Assembly idirectly deployable to PEtALS by the help of the Maven plugin :</p>
<pre>
&lt;build&gt;
	&lt;plugins&gt;
		&lt;plugin&gt;
			&lt;groupId&gt;org.ow2.petals&lt;/groupId&gt;
			&lt;artifactId&gt;maven-petals-jaxws2jbi&lt;/artifactId&gt;
			&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
			&lt;executions&gt;
				&lt;execution&gt;
					&lt;id&gt;generate-jbi&lt;/id&gt;
					&lt;phase&gt;package&lt;/phase&gt;
					&lt;configuration&gt;
						&lt;className&gt;
							org.ow2.petals.ServiceImpl
						&lt;/className&gt;
					&lt;/configuration&gt;
					&lt;goals&gt;
						&lt;goal&gt;java2jbi&lt;/goal&gt;
					&lt;/goals&gt;
				&lt;/execution&gt;
			&lt;/executions&gt;
		&lt;/plugin&gt;
	&lt;/plugins&gt;
&lt;/build&gt;
</pre>
<p>The plugin takes the Service class, generates its associated WSDL file and the JBI descriptor and then package all into a Service Assembly.</p>
]]></content:encoded>
			<wfw:commentRss>http://planet.petalslink.com/home/chamerling/2009/05/26/easily-expose-jaxws-in-petals-with-maven/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

