I actually have not yet tried to run in offline mode<br><br><div class="gmail_quote">On Tue, May 17, 2011 at 1:52 PM, Rodney Russ <span dir="ltr">&lt;<a href="mailto:rruss@redhat.com">rruss@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Koen, Weren&#39;t you just having some issues with Forge running in offline mode?<br>
<br>
----- &quot;Tim Pedone&quot; &lt;<a href="mailto:macdude357@gmail.com">macdude357@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: &quot;Tim Pedone&quot; &lt;<a href="mailto:macdude357@gmail.com">macdude357@gmail.com</a>&gt;<br>
&gt; To: &quot;forge-dev List&quot; &lt;<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a>&gt;<br>
&gt; Sent: Monday, May 16, 2011 9:33:00 AM GMT -07:00 US/Canada Mountain<br>
&gt; Subject: Re: [forge-dev] Unit Test failures<br>
<div><div></div><div class="h5">&gt;<br>
&gt; The offline flag is getting read from ForgeEnvironmentImpl:<br>
&gt;<br>
&gt;    public boolean isOnline()<br>
&gt;    {<br>
&gt;       Object offline = shell.getProperty(ShellImpl.OFFLINE_FLAG);<br>
&gt;       return offline == null ? false :<br>
&gt; !Boolean.parseBoolean(offline.toString());<br>
&gt;    }<br>
&gt;<br>
&gt; By default, it seems that the OFFLINE_FLAG property is not set<br>
&gt; resulting in isOnline() returning &quot;false&quot;, so either other devs have<br>
&gt; this set somehow or, the artifacts that are being tested are already<br>
&gt; in their local repos.  If you have a chance, remove the<br>
&gt; prettyfaces-jsf2 folders from your local repo and see if you can<br>
&gt; reproduce the problem.<br>
&gt;<br>
&gt; On Sun, May 15, 2011 at 10:03 PM, Lincoln Baxter, III<br>
&gt; &lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt; wrote:<br>
&gt; &gt; Interesting... I&#39;m willing to bet this is a maven bug, but then<br>
&gt; again, I can<br>
&gt; &gt; check our usage of the APIs. Thanks for looking in to this.<br>
&gt; &gt;<br>
&gt; &gt; It&#39;s surprising that the tests are being run in offline mode. Did<br>
&gt; you set<br>
&gt; &gt; that in your settings.xml? I don&#39;t think other devs are having this<br>
&gt; issue,<br>
&gt; &gt; so I&#39;m wondering if there&#39;s something specific about your<br>
&gt; environment.<br>
&gt; &gt;<br>
&gt; &gt; ~Lincoln<br>
&gt; &gt;<br>
&gt; &gt; On Mon, May 16, 2011 at 12:43 AM, Tim Pedone &lt;<a href="mailto:macdude357@gmail.com">macdude357@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I did a bit more digging around this and found out a couple of<br>
&gt; things.<br>
&gt; &gt;&gt;  It seems that the tests are run in offline mode so the maven<br>
&gt; runtime<br>
&gt; &gt;&gt; in the shell won&#39;t fetch any remote dependencies.  Another thing I<br>
&gt; &gt;&gt; found out was that if the maven code cannot load the<br>
&gt; &gt;&gt; maven-metadata.xml file, then the dependency resolution fails.<br>
&gt;  This<br>
&gt; &gt;&gt; explains why the tests failed even when I had the prettyfaces-jsf2<br>
&gt; &gt;&gt; jars in my local repo; I didn&#39;t have a maven-metadata.xml file.<br>
&gt;  And<br>
&gt; &gt;&gt; since the tests are running in offline mode, it wouldn&#39;t fetch the<br>
&gt; &gt;&gt; metadata from the remote repo so it failed.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Thu, May 12, 2011 at 11:56 AM, Tim Pedone &lt;<a href="mailto:macdude357@gmail.com">macdude357@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt; &gt; Yes, my machine is connected to the internet.  It downloads all<br>
&gt; the<br>
&gt; &gt;&gt; &gt; plugins, compile time dependencies, etc.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; On Thu, May 12, 2011 at 11:12 AM, Lincoln Baxter, III<br>
&gt; &gt;&gt; &gt; &lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt; Do you have an internet connection when you are running the<br>
&gt; tests?<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; On Thu, May 12, 2011 at 1:21 AM, Tim Pedone<br>
&gt; &lt;<a href="mailto:macdude357@gmail.com">macdude357@gmail.com</a>&gt;<br>
&gt; &gt;&gt; &gt;&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; My first thought would be to test out of a separate local repo<br>
&gt; but<br>
&gt; &gt;&gt; &gt;&gt;&gt; that might really slow down the tests.<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; BTW, I still can&#39;t get the tests to pass.  The artifacts in<br>
&gt; question<br>
&gt; &gt;&gt; &gt;&gt;&gt; (com.ocpsoft:prettyfaces-jsf2, etc.) we not in my local repo at<br>
&gt; all.<br>
&gt; &gt;&gt; &gt;&gt;&gt; I tried adding them to the pom so they&#39;d get downloaded and I<br>
&gt; also<br>
&gt; &gt;&gt; &gt;&gt;&gt; tried wiping out my entire local repo but neither seemed to<br>
&gt; work.  I<br>
&gt; &gt;&gt; &gt;&gt;&gt; guess I&#39;ll just ignore the tests for now.  I was looking at<br>
&gt; enhancing<br>
&gt; &gt;&gt; &gt;&gt;&gt; the maven support so I really would like to get those tests<br>
&gt; working at<br>
&gt; &gt;&gt; &gt;&gt;&gt; some point though.<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; On Wed, May 11, 2011 at 1:32 PM, Lincoln Baxter, III<br>
&gt; &gt;&gt; &gt;&gt;&gt; &lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; Otherwise, I&#39;d just skip this test for now. It&#39;s known to<br>
&gt; cause<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; issues<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; sometimes.<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; On Wed, May 11, 2011 at 4:31 PM, Lincoln Baxter, III<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; &lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; Hi Tim! Yes, you&#39;ve encountered one of my more annoying<br>
&gt; issues with<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; testing Maven. These tests seem to be pretty &quot;tempermental&quot;<br>
&gt; at<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; best, so<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; my<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; first suggestion would be to try deleting the parts of your<br>
&gt; maven<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; repo<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; that<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; the test uses for its work (delete as high up as you are<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; comfortable,)<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; then<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; try again. I know this is a bit of a ... lame... suggestion,<br>
&gt; but<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; there&#39;s not<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; really a good way to test this stuff other than actually<br>
&gt; hitting<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; the<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; internet. If you have any ideas on how to improve this, I<br>
&gt; would be<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; in<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; your<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; debt.<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; ~Lincoln<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; On Wed, May 11, 2011 at 4:18 PM, Tim Pedone<br>
&gt; &lt;<a href="mailto:macdude357@gmail.com">macdude357@gmail.com</a>&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; wrote:<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; First off, I think Forge is totally cool.  So much so, that<br>
&gt; I&#39;d<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; like<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; to contribute in some way.  So I&#39;ve forked the repo in<br>
&gt; GitHub and<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; am<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; trying to build it but am getting a few unit test failures<br>
&gt; in<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; RepositoryLookupTest.testResolveVersions() and a few<br>
&gt; others. In<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; stepping through the code, it seems like the Aether code<br>
&gt; isn&#39;t<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; working<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; properly. I assume this must be something unique to my<br>
&gt; setup:<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;  MacOS<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; 10.6 + JDK 1.6.0_24, Maven 3.0.3, JBoss Dev Studio 4.0.<br>
&gt;  The tests<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; fail on both the command line and in Dev Studio.<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Any ideas?<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Thanks,<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Tim<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; forge-dev mailing list<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; --<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; Lincoln Baxter, III<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;&gt; &quot;Keep it Simple&quot;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; --<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; Lincoln Baxter, III<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; &quot;Keep it Simple&quot;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; _______________________________________________<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; forge-dev mailing list<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; &gt;&gt;&gt; forge-dev mailing list<br>
&gt; &gt;&gt; &gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; &gt;&gt; &gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; --<br>
&gt; &gt;&gt; &gt;&gt; Lincoln Baxter, III<br>
&gt; &gt;&gt; &gt;&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; &gt;&gt; &gt;&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &gt;&gt; &gt;&gt; &quot;Keep it Simple&quot;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; &gt;&gt; forge-dev mailing list<br>
&gt; &gt;&gt; &gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; &gt;&gt; &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;&gt;<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; forge-dev mailing list<br>
&gt; &gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Lincoln Baxter, III<br>
&gt; &gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; &gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &gt; &quot;Keep it Simple&quot;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; forge-dev mailing list<br>
&gt; &gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; forge-dev mailing list<br>
&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div></div></blockquote></div><br>