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