[jboss-user] [JBoss Tools] - JBoss Source Lookup

Snjezana Peco do-not-reply at jboss.com
Tue Jan 24 18:07:13 EST 2012


Snjezana Peco [https://community.jboss.org/people/snjeza] modified the blog post:

"JBoss Source Lookup"

To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/01/24/jboss-source-lookup

--------------------------------------------------------------
The JBoss Tools Source Lookup plugin automatically adds a source attachment when debugging JBoss AS servers. 
The plugin has been tested with JBoss AS 7.x and JBoss AS 6.1. 

h4. Installing the JBoss Source Lookup plugin

* install JBoss Tools 3.3, as described in   https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee-6-quickly-using-jboss-central Learn Java EE 6 quickly using JBoss Central
* call Help>Install New Software..., click the Add button and enter the following update site: 
 https://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/org.jboss.tools.as.sourcelookup.updatesite/ https://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/org.jboss.tools.as.sourcelookup.updatesite/
 https://community.jboss.org/servlet/JiveServlet/showImage/38-4482-17822/lookupblog1.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/38-4482-17822/450-382/lookupblog1.png 
Install the JBoss Tools Source Lookup category and restart Eclipse.

h4. Using the JBoss Source Lookup plugin

* set up the central JBoss Maven repository as explained in:  https://community.jboss.org/docs/DOC-15169 Maven Getting Started - Users
* create the jboss-as-helloworld project by following the instructions in  https://community.jboss.org/community/tools/blog/2011/12/18/learn-java-ee-6-quickly-using-jboss-central Learn Java EE 6 quickly using JBoss Central. 
* wait for Maven to refresh indexes. 

The use and debugging of this plugin is demonstrated in the following screencast:  http://screencast.com/t/i6k9hzkjViOs Debugging JBoss AS server.

The JBoss Source Lookup plugin enhances source attachment in the following way: 

* archive file doesn't have to be in the maven classpath
* archive file doesn't have to be included in the classpath (jbossweb-*.jar, for instance). The JBoss Source Lookup plugin will find a class within a JBoss AS distribution and, if it is a Maven artifact, the plugin will attach the corresponding source.
* archive file doesn't have to be in the m2e index (jbossjts-4.16.0.Final.jar, for instance)

You don't have to add any JBoss AS Runtime to the classpath. I have added it in order to ensure the classes within the runtime are included in the Java Search and in order to be easier to add a breakpoint.
--------------------------------------------------------------

Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/01/24/jboss-source-lookup]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120124/1f49ebdf/attachment.html 


More information about the jboss-user mailing list