-
1. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
rcernich Apr 9, 2012 7:22 PM (in response to jeffdelong)Hey Jeff,
Do you have any Maven projects in your workspace? The versions list is populated from the versions available in the Maven repositories. The SwitchYard tooling registers the JBoss Nexus repository, but, unfortunately, it does not get indexed until the Maven tooling is initialized. Could you please verify if this is the behavior you are seeing?
Existing JIRA: https://issues.jboss.org/browse/SWITCHYARD-598
Best,
Rob
-
2. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
jeffdelong Apr 9, 2012 7:32 PM (in response to rcernich)Yes, I have a SwitchYard 0.3 project that I created using Forge and imported several months ago. I re-installed Eclipse, added the Maven and SwitchYard (adn various JBoss Tools SOA plugins). I have tried "REbuild Index" on both my Local Repository and my JBOSS_NEXUS repository. I see for example, switchyard-api : 0.4.0.Final in my Local Repository. I don't see any switchyard jars in my JBOSS_NEXUS repository (all i see are apache, drools, and infinispan). There is nothing in my Custom Repositories.
-
3. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
jeffdelong Apr 10, 2012 1:18 AM (in response to jeffdelong)I re-installed Eclipse, Maven plugins, and SwitchYard / JBoss Tools with a new empty workspace. I then created a dummy Maven project. This created a Custom Repository with JBOSS_NEXUS. Then I created a new SwitchYard project, and 0.4.0 showed up in the list of runtimes.
-
4. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
kcbabo Apr 10, 2012 9:23 AM (in response to jeffdelong)Glad that worked, Jeff, but I'm hoping we can provide you (and others) some help here so that you don't have to take the 'nuclear' option to upgrade the SwitchYard version.
@Rob - I set the fix version for 598 to 0.5 so that we can do something about this in the current release. Since the Eclipse tooling will be taking a more prominent position in 0.5, we need to smooth out details like this. In cases where a code fix is not possible, we should at least document a process for resolving the problem.
-
5. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
rcernich Apr 10, 2012 10:34 AM (in response to kcbabo)Hey Keith, Jeff,
Regarding the nuclear option, I think there was a version of the 0.3 tools which did not include the custom repository definition. This should no longer be a problem (i.e. simply upgrading the SY tools to 0.4 or later should be enough).
Regarding the JIRA, this is a tough fix. The m2e initialization code includes a one second sleep, which is why I did not fix this earlier. Because of the sleep, there are two options that exist for the SY tooling:
- Force initialization of the Maven tooling at startup (slows down startup; still broken if the user is quick).
- Put a one second sleep in when displaying the SY runtime versions (adds a delay into the UI).
Neither of those options is very good. I can look at adding a patch to the m2e tools to at least expose a mutex or condition that we can wait on. Because that fix would be upstream, I don't think I can guarantee a fix for 0.5.
Best,
Rob
-
6. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
kcbabo Apr 11, 2012 8:01 PM (in response to rcernich)If a programmatic fix is not possible or practical, I'm fine with a documentation fix. We just need to make sure there's a smooth path here for people. I don't think we should invest a lot of time in fixing it if there's an effective process workaround.
-
7. Re: How do I get the Runtime Version to show up in Eclipse Project Wizard to be 0.4
jeffdelong Apr 11, 2012 8:12 PM (in response to kcbabo)So it turns out that I still don't see 0.4.0 FINAL in my drop down list. Rather it is 0.4.0-SNAPSHOT.