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

Rasto Cesnek do-not-reply at jboss.com
Mon Jul 23 18:14:35 EDT 2012


Rasto Cesnek [https://community.jboss.org/people/erce] commented on

"JBoss Source Lookup"

To view all comments on this blog post, visit: https://community.jboss.org/community/tools/blog/2012/01/24/jboss-source-lookup#comment-10288

--------------------------------------------------
One other nice way how to debug JBoss & JBoss apps in Eclipse, is to create a simple project which depends on all your sources + JBoss build, e.g. something like:

<project xmlns=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/POM/4.0.0  http://maven.apache.org/maven-v4_0_0.xsd http://maven.apache.org/maven-v4_0_0.xsd">
          <modelVersion>4.0.0</modelVersion>
            <parent>
                    <groupId>yourgroup</groupId>
                    <artifactId>yourparent</artifactId>
                    <version>yourversion</version>
          </parent>
          <artifactId>yourapp-jboss-debug</artifactId>
          <name>yourproject: JBoss Debug Project</name>
          <description>yourproject: JBoss Debug Project</description>
          <packaging>jar</packaging>
          <!-- Dependency list -->
          <dependencies>
                    <!-- Dependency to JBoss build which brings all jars and sources -->
                    <dependency>
                              <groupId>org.jboss.as</groupId>
                              <artifactId>jboss-as-build</artifactId>
                              <version>7.1.1.Final</version>
                              <type>pom</type>
                    </dependency>
                    <!-- Dependency to yourapp build which brings all jars and sources -->
                    <dependency>
                              <groupId>yourgroup</groupId>
                              <artifactId>yourproject which builds all the sources and gets deployed - probably the ear</artifactId>
                              <version>${project.version}</version>
                              <type>pom</type>
                    </dependency>
          </dependencies>
</project>

Then you do "mvn clean install eclipse:eclipse -DdownloadSources=true" (of course with maven repo  http://repository.jboss.org/nexus/content/groups/public http://repository.jboss.org/nexus/content/groups/public configured in maven settings), import into Eclipse and configure your debug configuration in Eclipse to run in this project and voila, there it is, all the JBoss sources are attached!

 https://community.jboss.org/servlet/JiveServlet/showImage/105-10288-19091/jbossdebug.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/105-10288-19091/310-241/jbossdebug.png
--------------------------------------------------

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


More information about the jboss-user mailing list