-
1. AS7 source code check out and setup in eclipse
henk53 Apr 12, 2011 6:53 AM (in response to thunder.farmer)For the record, I'm very interested in this as well.
For the previous versions of JBoss AS this always has been troublesome. AS5 had a complete source archive published, but it's internal structure was different from the compiled download. In Eclipse you had to attach each individual jar, meaning it took you several hours to attach source for the most important parts (and if you changed to another workspace, you had to redo all that work).
AS6 is even worse, as the published source archive only contains a small selection of the source that makes up AS6.
Maybe AS7 will be better and hopefully there will be some effort going on to improve this.
-
2. AS7 source code check out and setup in eclipse
jaikiran Apr 12, 2011 7:41 AM (in response to henk53)I know one of the JBoss AS developers recently set it up with Eclipse + m2eclipse. Let me see if he can add those details to the wiki. I use IntelliJ so can't help much.
-
3. AS7 source code check out and setup in eclipse
henk53 Apr 12, 2011 7:49 AM (in response to jaikiran)That would be a help already, thanks Jaikiran!
Ideally is a complete source archive that JBoss tools knows how to attach. (With JBoss tools I more specifically mean the server runtime provider that also puts the libraries of JBoss AS on the classpath).
As much as is reasonably possible I try to avoid using maven directly and especially m2eclipse, but I'm of course willing to experiment
-
4. AS7 source code check out and setup in eclipse
thunder.farmer Apr 12, 2011 8:11 AM (in response to henk53)Expecting update on this.
At same time, I am trying with m2eclipse plugin from eclipse, will update if I make any progress...
-
5. AS7 source code check out and setup in eclipse
kabirkhan Apr 12, 2011 12:56 PM (in response to thunder.farmer)This is what I do:
- Install m2eclipse. m2eclipse from the official sonatype site might have problems opening all the projects. The latest version there is 0.12.x. The cutting-edge 0.13 release performs a lot better. To get m2eclipse 0.13, add http://download.eclipse.org/technology/m2e/updates/M as an update site in Eclipse (If you just go to that address in a browser it 404s). I needed to uninstall my m2eclipse 0.12.x first.
- Follow the steps to check out the project to /some/where/as7/git.
- Open Eclipse with the workspace as /some/where/as7/eclipse.
- Import/"Existing Maven Projects"
- Set /some/where/as7/git as the root dir and choose all the projects.
You might get some errors wrt the lookup attribute of the @Resource annotations, simply go to that project's properties and change the orders of the imports so that the maven deps have a higher precedence than the JRE ones.
-
6. AS7 source code check out and setup in eclipse
kabirkhan Apr 12, 2011 1:12 PM (in response to kabirkhan)This is what I do:
- Install m2eclipse. m2eclipse from the official sonatype site might have problems opening all the projects. The latest version there is 0.12.x. The cutting-edge 0.13 release performs a lot better. To get m2eclipse 0.13, add http://download.eclipse.org/technology/m2e/updates/M as an update site in Eclipse (If you just go to that address in a browser it 404s). I needed to uninstall my m2eclipse 0.12.x first.
- Follow the steps to check out the project to /some/where/as7/git.
- Open Eclipse with the workspace as /some/where/as7/eclipse.
- Import/"Existing Maven Projects"
- Set /some/where/as7/git as the root dir and choose all the projects.
You might get some errors wrt the lookup attribute of the @Resource annotations, simply go to that project's properties and change the orders of the imports so that the maven deps have a higher precedence than the JRE ones.
-
7. AS7 source code check out and setup in eclipse
kabirkhan Apr 12, 2011 1:13 PM (in response to kabirkhan)Kabir Khan wrote:
- Follow the steps to check out the project to /some/where/as7/git.
These steps http://community.jboss.org/wiki/HackingonAS7
-
8. AS7 source code check out and setup in eclipse
thunder.farmer Apr 14, 2011 10:58 PM (in response to thunder.farmer)With above guidelines, I managed to setup the sourcecode in eclipse.
List the versions of eclipse and plugins used for anyone else who is insteresting in this.
Eclipse 3.6 Helios Service Release 2
m2eclipse 0.13.0.201103151108
Eclipse JGit 0.11.3 -- EGit -- http://download.eclipse.org/egit/updates
A pretty good article for EGit http://www.vogella.de/articles/EGit/article.html
a trick, maybe you need to setup the maven for m2eclipse in eclipse window-->preferences-->maven.
setup the maven home, setting files and local maven repository.
-
9. AS7 source code check out and setup in eclipse
kabirkhan Apr 15, 2011 4:40 AM (in response to kabirkhan)Kabir Khan wrote:
You might get some errors wrt the lookup attribute of the @Resource annotations, simply go to that project's properties and change the orders of the imports so that the maven deps have a higher precedence than the JRE ones.
I have not tried this yet but there are some new plugins to deal with this situation
-
10. AS7 source code check out and setup in eclipse
henk53 Apr 15, 2011 5:29 AM (in response to kabirkhan) -
11. AS7 source code check out and setup in eclipse
brian.stansberry Apr 15, 2011 2:27 PM (in response to henk53)Just an FYI, AFAIK the folks working on AS 7 on a day-to-day basis are managing git from the command line, not the IDE. I believe this is true for both those using Eclipse and those using IDEA.
When we started with git, I thought I'd hate not using the IDE for source control, but I've found I don't mind at all.
-
12. Re: AS7 source code check out and setup in eclipse
thunder.farmer Apr 19, 2011 1:00 AM (in response to brian.stansberry)I think comand line makes JBoss born, IDEs and plugins make JBoss survive,
-
13. Re: AS7 source code check out and setup in eclipse
brian.stansberry Apr 19, 2011 1:43 AM (in response to thunder.farmer)If EGit works well for folks, great, I'd love to hear more about it.
-
14. Re: AS7 source code check out and setup in eclipse
kabirkhan Apr 21, 2011 6:29 AM (in response to kabirkhan)Kabir Khan wrote:
This is what I do:
- Install m2eclipse. m2eclipse from the official sonatype site might have problems opening all the projects. The latest version there is 0.12.x. The cutting-edge 0.13 release performs a lot better. To get m2eclipse 0.13, add http://download.eclipse.org/technology/m2e/updates/M as an update site in Eclipse (If you just go to that address in a browser it 404s). I needed to uninstall my m2eclipse 0.12.x first.
More frequent (nightly) releases can be found here: Go to https://repository.sonatype.org//content/sites/forge-sites/m2e/0.13.0/N/
and look at the releases and add the one you're interested in as an update site, e.g. I just added https://repository.sonatype.org//content/sites/forge-sites/m2e/0.13.0/N/0.13.0.201104201706/. There is a new 'Offline' option that significantly improves the speed of importing the project (and updating the project configuration) as long as you have already build from the command-line so everything is available in your local repository.