[jbosstools-issues] [JBoss JIRA] (JBIDE-18623) Examples are not working in offline mode

Radim Hopp (JIRA) issues at jboss.org
Tue Oct 14 11:00:37 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011634#comment-13011634 ] 

Radim Hopp commented on JBIDE-18623:
------------------------------------

I was also asked to provide exact steps to reproduce this issue:
Prereq: groovy  ver>=2.1.x, redhat enterprise maven repo defined in settings.xml
1. Go to Preferences  -> JBoss Tools-> Project Examples ->Offline support
2. Execute groovy command in terminal (outside eclipse) (this takes a long time) - it should generate "offline/" directory
3. Edit your maven settings.xml to use local repository "offline/.m2/repository"
4. disconnect from internet (on linux systems should be this command enough: `sudo unshare -n -- sh -c 'ifconfig lo up;su <USERNAME> -c xterm' ` this shoud open new xterm with access only to localhost
5. Start JBDS/JBT, go to  Preferences  -> JBoss Tools-> Project Examples ->Offline support
6. Check "Enable offline mode for project examples" and in Offline directory textfield fill "offline/.jbosstools/cache"
7. "OK"
8. All project examples should be working now even without internet access

> Examples are not working in offline mode
> ----------------------------------------
>
>                 Key: JBIDE-18623
>                 URL: https://issues.jboss.org/browse/JBIDE-18623
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central, project-examples
>    Affects Versions: 4.2.0.CR2
>         Environment: JBT 4.2.0.CR2a, JBDS 8.0.0.CR2a
>            Reporter: Radim Hopp
>            Assignee: Fred Bricon
>
> After executing offline groovy script and configuring JBT/JBDS to use generated examples and maven repository, project examples are not shown in JBoss Central.
> Warning is logged, when user tries to refresh "Start from sample" section (this one is from JBDS):
> {noformat}Invalid URL: http://download.jboss.org/jbosstools/examples/project-examples-jbds80.Beta3.xml{noformat}
> Groovy script has errors generating few examples (JBIDE-18582), but I think this is not relevant to this issue. What can be relevant is PR from JBIDE-18589 - switching descriptors from Beta3 to GA.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list