<?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: Executable .jar, with onejar-maven-plugin</title>
	<atom:link href="http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andrey</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-79018</link>
		<dc:creator>Andrey</dc:creator>
		<pubDate>Wed, 26 Oct 2011 11:52:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-79018</guid>
		<description>So cool!!! Thanks!</description>
		<content:encoded><![CDATA[<p>So cool!!! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JG</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-71642</link>
		<dc:creator>JG</dc:creator>
		<pubDate>Tue, 14 Dec 2010 20:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-71642</guid>
		<description>Hi,
I am using one jar plugin and I am able to get the jar compiled. However, the jars are nested. for example, I am trying to use org.acceleo.engine jar.

The jar is inside the lib folder and inside the jar again I have the jar.
During runtime, the application complains that it cannot find org.acceleo.engine.IModel class.

I have a bunch of such jars to be included. Can you help me resolve this nested jar packaging issue.

Best Regards,
Jyothi</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using one jar plugin and I am able to get the jar compiled. However, the jars are nested. for example, I am trying to use org.acceleo.engine jar.</p>
<p>The jar is inside the lib folder and inside the jar again I have the jar.<br />
During runtime, the application complains that it cannot find org.acceleo.engine.IModel class.</p>
<p>I have a bunch of such jars to be included. Can you help me resolve this nested jar packaging issue.</p>
<p>Best Regards,<br />
Jyothi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tonio</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-63823</link>
		<dc:creator>Tonio</dc:creator>
		<pubDate>Wed, 03 Nov 2010 20:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-63823</guid>
		<description>Great wonderful, really love this for utility projects awsome.
thanks a lot.</description>
		<content:encoded><![CDATA[<p>Great wonderful, really love this for utility projects awsome.<br />
thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lauri</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-60907</link>
		<dc:creator>Lauri</dc:creator>
		<pubDate>Mon, 18 Oct 2010 09:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-60907</guid>
		<description>What if I don&#039;t want the &#039;one-jar&#039; in the jar name? Is there a way to define the jar name?</description>
		<content:encoded><![CDATA[<p>What if I don&#8217;t want the &#8216;one-jar&#8217; in the jar name? Is there a way to define the jar name?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawid</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-45694</link>
		<dc:creator>Dawid</dc:creator>
		<pubDate>Tue, 06 Jul 2010 20:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-45694</guid>
		<description>Thanks Hugo for this post and the plugin. Great job !</description>
		<content:encoded><![CDATA[<p>Thanks Hugo for this post and the plugin. Great job !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Susan</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-40507</link>
		<dc:creator>Susan</dc:creator>
		<pubDate>Thu, 27 May 2010 21:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-40507</guid>
		<description>I&#039;m having trouble building. I get the error  Unrecognised tag: &#039;executions&#039; (position: START_TAG seen ...\r\n                </description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble building. I get the error  Unrecognised tag: &#8216;executions&#8217; (position: START_TAG seen &#8230;\r\n</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-36182</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-36182</guid>
		<description>I&#039;m sorry again. I&#039;m fighting with this message...

binlibs 
	fileSet
		directory 
                         ${project.build.directory}/tmp/lib 
                /directory
		includes 
			include
                                tools.jar
                        /include 
		/includes 
	/fileSet
/binlibs</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry again. I&#8217;m fighting with this message&#8230;</p>
<p>binlibs<br />
	fileSet<br />
		directory<br />
                         ${project.build.directory}/tmp/lib<br />
                /directory<br />
		includes<br />
			include<br />
                                tools.jar<br />
                        /include<br />
		/includes<br />
	/fileSet<br />
/binlibs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-36179</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-36179</guid>
		<description>Sorry for the last message...I want to write it:
&quot; 
	
		${project.build.directory}/tmp/lib
		 
			tools.jar 
		 
	
&quot;</description>
		<content:encoded><![CDATA[<p>Sorry for the last message&#8230;I want to write it:<br />
&#8221; </p>
<p>		${project.build.directory}/tmp/lib</p>
<p>			tools.jar </p>
<p>&#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-36178</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-36178</guid>
		<description>I want to do something like this:
 
  
    ${project.build.directory}/tmp/lib
       
        tools.jar 
       
  


the only thing that I want to change is the destiny folder into de one-jar file. I want to send &quot;tolls.jar&quot; into /lib. Exists any tag in the plugin to do this?

Thanks.</description>
		<content:encoded><![CDATA[<p>I want to do something like this:</p>
<p>    ${project.build.directory}/tmp/lib</p>
<p>        tools.jar </p>
<p>the only thing that I want to change is the destiny folder into de one-jar file. I want to send &#8220;tolls.jar&#8221; into /lib. Exists any tag in the plugin to do this?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-36158</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 26 Apr 2010 07:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-36158</guid>
		<description>Hi. 

I need your help. 

I have to include manually a jar-file into the one-jar file. I need to put this jar-file in the lib folder. How can I do it? The jar-file is an indirect dependency and the pluggin doesn&#039;t include it automatically

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi. </p>
<p>I need your help. </p>
<p>I have to include manually a jar-file into the one-jar file. I need to put this jar-file in the lib folder. How can I do it? The jar-file is an indirect dependency and the pluggin doesn&#8217;t include it automatically</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-35537</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Thu, 22 Apr 2010 22:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-35537</guid>
		<description>I provided a fix for the Spring component scanning problem at http://code.google.com/p/onejar-maven-plugin/issues/detail?id=12</description>
		<content:encoded><![CDATA[<p>I provided a fix for the Spring component scanning problem at <a href="http://code.google.com/p/onejar-maven-plugin/issues/detail?id=12" rel="nofollow">http://code.google.com/p/onejar-maven-plugin/issues/detail?id=12</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paddy Daly</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-30906</link>
		<dc:creator>Paddy Daly</dc:creator>
		<pubDate>Fri, 19 Mar 2010 10:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-30906</guid>
		<description>The shade maven plugin seems to handle spring 3 projects.
http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html</description>
		<content:encoded><![CDATA[<p>The shade maven plugin seems to handle spring 3 projects.<br />
<a href="http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html" rel="nofollow">http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kev</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-21947</link>
		<dc:creator>Kev</dc:creator>
		<pubDate>Tue, 12 Jan 2010 03:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-21947</guid>
		<description>Another confirmation that Spring component scanning doesn&#039;t work with onejar.  Bummer.  Confirmation of Ulrik and Stevo&#039;s findings.</description>
		<content:encoded><![CDATA[<p>Another confirmation that Spring component scanning doesn&#8217;t work with onejar.  Bummer.  Confirmation of Ulrik and Stevo&#8217;s findings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stevo Slavic</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-11488</link>
		<dc:creator>Stevo Slavic</dc:creator>
		<pubDate>Tue, 08 Sep 2009 12:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-11488</guid>
		<description>Just to confirm on what Ulrik wrote, component scanning doesn&#039;t work with onejar. Not sure yet whom to blame.</description>
		<content:encoded><![CDATA[<p>Just to confirm on what Ulrik wrote, component scanning doesn&#8217;t work with onejar. Not sure yet whom to blame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-6306</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Fri, 12 Jun 2009 02:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-6306</guid>
		<description>I just put in a defect here http://code.google.com/p/onejar-maven-plugin/issues/list.  Having a problem with the one-jar repository id and url with Nexus.</description>
		<content:encoded><![CDATA[<p>I just put in a defect here <a href="http://code.google.com/p/onejar-maven-plugin/issues/list" rel="nofollow">http://code.google.com/p/onejar-maven-plugin/issues/list</a>.  Having a problem with the one-jar repository id and url with Nexus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elisha</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-5739</link>
		<dc:creator>Elisha</dc:creator>
		<pubDate>Mon, 01 Jun 2009 15:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-5739</guid>
		<description>Hi Hugo,

Everything seems to be working now. It seems that it was unable to add the plugin repository because I was accessing my repository on another machine. It is now fine. I seem to be having another issue though when I try and execute the jar. I will open an issue on this one at the onejar-maven-plugin project page. 

Elisha</description>
		<content:encoded><![CDATA[<p>Hi Hugo,</p>
<p>Everything seems to be working now. It seems that it was unable to add the plugin repository because I was accessing my repository on another machine. It is now fine. I seem to be having another issue though when I try and execute the jar. I will open an issue on this one at the onejar-maven-plugin project page. </p>
<p>Elisha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo Josefson</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-5695</link>
		<dc:creator>Hugo Josefson</dc:creator>
		<pubDate>Mon, 01 Jun 2009 09:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-5695</guid>
		<description>@Elisha, thanks for your feedback!

I tried the same thing too, and it Works For Me (TM).

Please double-check the &lt;&lt;strong&gt;plugin&lt;/strong&gt;Repositories&gt; and &lt;&lt;strong&gt;plugin&lt;/strong&gt;Repository&gt; tags. If the error persists, please open an Issue at the onejar-maven-plugin project page, so we can help track down the problem. It will then help if you can attach your pom.xml to the issue.

Project issue tracker: http://code.google.com/p/onejar-maven-plugin/issues/list

/Hugo</description>
		<content:encoded><![CDATA[<p>@Elisha, thanks for your feedback!</p>
<p>I tried the same thing too, and it Works For Me (TM).</p>
<p>Please double-check the &lt;<strong>plugin</strong>Repositories&gt; and &lt;<strong>plugin</strong>Repository&gt; tags. If the error persists, please open an Issue at the onejar-maven-plugin project page, so we can help track down the problem. It will then help if you can attach your pom.xml to the issue.</p>
<p>Project issue tracker: <a href="http://code.google.com/p/onejar-maven-plugin/issues/list" rel="nofollow">http://code.google.com/p/onejar-maven-plugin/issues/list</a></p>
<p>/Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elisha</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-5688</link>
		<dc:creator>Elisha</dc:creator>
		<pubDate>Mon, 01 Jun 2009 08:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-5688</guid>
		<description>Hi, I tried using the one-jar plugin with maven 2 but I keep on getting the following error message when I run mv install:

Error message: Failed to resolve plugin for mojo binding: org.dstovall:onejar-maven-plugin:1.4.1:one-jar
Root error message: Unable to download the artifact from any repository


I added everything I should have using the example above. I don&#039;t understand how I&#039;m getting this error. Please help asap.</description>
		<content:encoded><![CDATA[<p>Hi, I tried using the one-jar plugin with maven 2 but I keep on getting the following error message when I run mv install:</p>
<p>Error message: Failed to resolve plugin for mojo binding: org.dstovall:onejar-maven-plugin:1.4.1:one-jar<br />
Root error message: Unable to download the artifact from any repository</p>
<p>I added everything I should have using the example above. I don&#8217;t understand how I&#8217;m getting this error. Please help asap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulrik Sandberg</title>
		<link>http://blog.jayway.com/2009/03/22/executable-jar-with-onejar-maven-plugin/comment-page-1/#comment-3788</link>
		<dc:creator>Ulrik Sandberg</dc:creator>
		<pubDate>Fri, 17 Apr 2009 08:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=972#comment-3788</guid>
		<description>If you run into problems when using onejar-maven-plugin in an annotation-based Spring project, chances are that it&#039;s the classpath scanning that is the problem.

I had the following setup:

Class:

&lt;pre&gt;
package com.example;

@Component(&quot;transformer&quot;)
public class MyTransformer {
&lt;/pre&gt;

Spring config:

&lt;pre&gt;
&lt;context:component-scan base-package=&quot;com.example&quot; /&gt;
&lt;/pre&gt;

Bootstrapping code:

&lt;pre&gt;
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(&quot;applicationContext.xml&quot;);
		MyTransformer transformer = (MyTransformer) context.getBean(&quot;transformer&quot;);
		transformer.run();
	}
&lt;/pre&gt;

I got the following exception:

&lt;pre&gt;
NoSuchBeanDefinitionException: No bean named &#039;transformer&#039; is defined
&lt;/pre&gt;

I then switched to this config, still using annotation-based dependency autowire, but requiring an explicit bean definition:

Spring config:

&lt;pre&gt;
&lt;context:annotation-config /&gt;
&lt;bean id=&quot;transformer&quot; class=&quot;com.example.MyTransformer&quot; /&gt;
&lt;/pre&gt;

</description>
		<content:encoded><![CDATA[<p>If you run into problems when using onejar-maven-plugin in an annotation-based Spring project, chances are that it&#8217;s the classpath scanning that is the problem.</p>
<p>I had the following setup:</p>
<p>Class:</p>
<pre>
package com.example;

@Component(&quot;transformer&quot;)
public class MyTransformer {
</pre>
<p>Spring config:</p>
<pre>
&lt;context:component-scan base-package=&quot;com.example&quot; /&gt;
</pre>
<p>Bootstrapping code:</p>
<pre>
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(&quot;applicationContext.xml&quot;);
		MyTransformer transformer = (MyTransformer) context.getBean(&quot;transformer&quot;);
		transformer.run();
	}
</pre>
<p>I got the following exception:</p>
<pre>
NoSuchBeanDefinitionException: No bean named 'transformer' is defined
</pre>
<p>I then switched to this config, still using annotation-based dependency autowire, but requiring an explicit bean definition:</p>
<p>Spring config:</p>
<pre>
&lt;context:annotation-config /&gt;
&lt;bean id=&quot;transformer&quot; class=&quot;com.example.MyTransformer&quot; /&gt;
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

