<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Java Blog - Java, J2EE, SOA, Spring and Hibernate &#187; Build</title>
	<link>http://javablog.info</link>
	<description></description>
	<pubDate>Thu, 17 Apr 2008 00:24:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Displaying Classpath in ANT</title>
		<link>http://javablog.info/2007/10/17/displaying-classpath-in-ant/</link>
		<comments>http://javablog.info/2007/10/17/displaying-classpath-in-ant/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 04:14:57 +0000</pubDate>
		<dc:creator>Ravi Nallakukkala</dc:creator>
		
		<category><![CDATA[Build]]></category>

		<guid isPermaLink="false">http://javablog.info/2007/10/17/displaying-classpath-in-ant/</guid>
		<description><![CDATA[Here&#8217;s a sample code by which one can display the classpath
&#60;path id=&#8221;test.classpath&#8220;&#62;
   &#60;path path=&#8221;${test.dir}&#8221;/&#62;
   &#60;fileset dir=&#8221;${config.dir}/lib&#8221;&#62;
    &#60;include name=&#8221;*-all.jar&#8221; /&#62;
   &#60;/fileset&#62;
  &#60;/path&#62;
  &#60;property name=&#8221;current.test.classpath&#8221; refid=&#8221;test.classpath&#8220;/&#62;
  
                &#60;echo level=&#8221;info&#8221;&#62; message=&#8221;test.classpath=${current.test.classpath}&#8221; &#60;/echo&#62;
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a sample code by which one can display the classpath</p>
<p>&lt;path id=&#8221;<strong>test.classpath</strong>&#8220;&gt;<br />
   &lt;path path=&#8221;${test.dir}&#8221;/&gt;<br />
   &lt;fileset dir=&#8221;${config.dir}/lib&#8221;&gt;<br />
    &lt;include name=&#8221;*-all.jar&#8221; /&gt;<br />
   &lt;/fileset&gt;<br />
  &lt;/path&gt;<br />
  &lt;property name=&#8221;<strong>current.test.classpath</strong>&#8221; refid=&#8221;<strong>test.classpath</strong>&#8220;/&gt;<br />
  <br />
                &lt;echo level=&#8221;info&#8221;&gt; message=&#8221;test.classpath=${<strong>current.test.classpath</strong>}&#8221; &lt;/echo&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://javablog.info/2007/10/17/displaying-classpath-in-ant/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Maven 2 : java.net.URISyntaxException : Illegal character in path at index 18:</title>
		<link>http://javablog.info/2007/03/25/maven-2-javaneturisyntaxexception-illegal-character-in-path-at-index-18/</link>
		<comments>http://javablog.info/2007/03/25/maven-2-javaneturisyntaxexception-illegal-character-in-path-at-index-18/#comments</comments>
		<pubDate>Sun, 25 Mar 2007 03:59:02 +0000</pubDate>
		<dc:creator>Ravi Nallakukkala</dc:creator>
		
		<category><![CDATA[Build]]></category>

		<guid isPermaLink="false">http://javablog.info/2007/03/25/maven-2-javaneturisyntaxexception-illegal-character-in-path-at-index-18/</guid>
		<description><![CDATA[Environment Maven 2.0/ Windows XP/ Java(TM) 2 Runtime Environment, Standard  Edition (build 1.5.0_09-b03)
I had a peculiar problem with Maven 2.0, my builds were working fine and one fine monday morning, I got a problem
Caused by: java.lang.RuntimeException: Not  a valid URL: file:/C:/Documents and  Settings/rnallakukkala/.m2
/repository/com/dpwn/newops/server/core/model/1.0-SNAPSHOT/model-  1.0-SNAPSHOT.jar
at  org.jboss.util.file.ArchiveBrowser.getBrowser(Unknown Source)
at  org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:588)
&#8230; 75 more
Caused [...]]]></description>
			<content:encoded><![CDATA[<p>Environment Maven 2.0/ Windows XP/ <span class="st" id="st" name="st">Java</span>(TM) 2 Runtime Environment, Standard  Edition (build 1.5.0_09-b03)</p>
<p>I had a peculiar problem with Maven 2.0, my builds were working fine and one fine monday morning, I got a problem</p>
<p>Caused by: <span class="st" id="st" name="st">java</span>.lang.RuntimeException: Not  a valid URL: file:/C:/Documents and  Settings/rnallakukkala/.m2</p>
<p id="mb_0"><wbr></wbr>/repository/com/dpwn/newops<wbr></wbr>/server/core/model/1.0-SNAPSHOT<wbr></wbr>/model-  1.0-SNAPSHOT.jar<br />
<span class="st" id="st" name="st">at</span>  org.jboss.util.file.ArchiveBrow<wbr></wbr>ser.getBrowser(Unknown Source)<br />
<span class="st" id="st" name="st">at</span>  org.hibernate.ejb.Ejb3Configura<wbr></wbr>tion.scanForClasses(Ejb3Configuration.<span class="st" id="st" name="st">java</span>:588)<br />
&#8230; 75 more<br />
Caused by: <span class="st" id="st" name="st">java</span>.<span class="st" id="st" name="st">net</span>.<span class="st" id="st" name="st">URISyntaxException</span> :  <span class="st" id="st" name="st">Illegal</span> <span class="st" id="st" name="st">character</span> <span class="st" id="st" name="st">in</span> <span class="st" id="st" name="st">path</span> <span class="st" id="st" name="st">at</span>  <span class="st" id="st" name="st">index</span> <span class="st" id="st" name="st">18</span>: file:/C:/Documents and  Settings/rnallakukkala/.m2<wbr></wbr>/repository/com/dpwn/newops<wbr></wbr>/server/core/model/1.0-SNAPSHOT<wbr></wbr>/model-1.0-SNAPSHOT.jar<br />
<span class="st" id="st" name="st">at</span> <span class="st" id="st" name="st">java</span>.<span class="st" id="st" name="st">net</span>.URI$Parser.fail(URI.<span class="st" id="st" name="st">java</span>:2816)<br />
<span class="st" id="st" name="st">at</span>  <span class="st" id="st" name="st">java</span>.<span class="st" id="st" name="st">net</span>.URI$Parser.checkChars(URI.<span class="st" id="st" name="st">java</span>:2989)<br />
<span class="st" id="st" name="st">at</span>  <span class="st" id="st" name="st">java</span>.<span class="st" id="st" name="st">net</span>.URI$Parser.parseHierar<wbr></wbr>chical(URI.<span class="st" id="st" name="st">java</span>:3073)<br />
<span class="st" id="st" name="st">at</span>  <span class="st" id="st" name="st">java</span>.<span class="st" id="st" name="st">net</span>.URI$Parser.parse(URI.<span class="st" id="st" name="st">java</span>:3021)<br />
<span class="st" id="st" name="st">at</span>  <span class="st" id="st" name="st">java</span>.<span class="st" id="st" name="st">net</span>.URI.&lt;init&gt;(URI.<span class="st" id="st" name="st">java</span>:578)</p>
<p id="mb_0">when trying to look for a dependency jar (this dependency jar is available in  my local repository)</p>
<p id="mb_0"><strong>Additional Information for this problem</strong></p>
<ul>
<li> Found that  this problem has been reported to maven <a href="http://issues.apache.org/jira/browse/TUSCANY-574?page=all" title="Here" target="_blank">here</a></li>
<li>Root problem is that there is a space in the maven repository path location.</li>
<li>Related bug has been raised in Java <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4466485" target="_blank">here</a>, unfortunately closed as &#8220;will not be fixed&#8221;.</li>
</ul>
<p><strong>Solution</strong></p>
<ul>
<li>Change the local repository location to a different path without spaces.</li>
</ul>
<p><strong>Configuring your Local Repository</strong></p>
<ul>
<li>You can specify your user configuration in  <tt>${user.home}/.m2/settings.xml</tt></li>
<li>Location can be modified through the following configuration changes (to the above file)</li>
</ul>
<p>&lt;settings&gt;</p>
<pre>  ...
  &lt;localRepository&gt;/path/to/local/repo/&lt;/localRepository&gt;
  ...
&lt;/settings&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://javablog.info/2007/03/25/maven-2-javaneturisyntaxexception-illegal-character-in-path-at-index-18/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
