5 Replies Latest reply on Nov 18, 2015 11:06 AM by cweiler

    How to attach sources of WildFly 9.0.2 to debug

    cweiler

      How to attach sources of WildFly 9.0.2 to debug a Maven project.

       

      I've tried to add dependency to wildfly-parent 9.0.2 but it has no dependencies but checkstyle: Maven Repository: org.wildfly » wildfly-parent » 9.0.2.Final

       

      Maven structure for WildFly packages is too confusing, I cannot guest what is the correct dependency to add!

       

       

      Thanks!!!

       

      ---

      Eclipse Mars 1

      JBoss Tools 4.3.0

      WildFly 9.0.2

      ---

        • 1. Re: How to attach sources of WildFly 9.0.2 to debug
          ctomc

          well adding sources for parent-pom won't really do anything as that is just descriptor.

           

          Every maven artifact that you use, has also source artifact present in repository, than it is just configuration of IDE how to load that.

           

          what you could do is run

          mvn dependency:sources

          in your project, so you will get all the sources for all components your project uses.

           

          see http://stackoverflow.com/questions/2059431/get-source-jars-from-maven-repository for more details.

          • 2. Re: How to attach sources of WildFly 9.0.2 to debug
            cweiler

            Thanks Tomaz, but I have m2e configured to ever download sources and docs. In fact  with reference to wildfly-parent I got wildfly-checkstyle-config jar and source, but I want all dependencies related to WildFly 9.0.2 (undertow, hibernate, ...)

            • 3. Re: How to attach sources of WildFly 9.0.2 to debug
              ctomc

              Claudio Weiler wrote:

               

              but I want all dependencies related to WildFly 9.0.2 (undertow, hibernate, ...)

              Well I still don't know what are you expecting and where?

               

              If you just use wildfly-parent as dependency you wont see any sources or even jars.

               

              What do you want to do, that you cannot do now?

              If you want all sources you can grab them in https://github.com/wildfly/wildfly

              and open that in IDE.

              • 4. Re: How to attach sources of WildFly 9.0.2 to debug
                cweiler

                Tomaz Cerar escreveu:

                 

                Well I still don't know what are you expecting and where?

                 

                If you just use wildfly-parent as dependency you wont see any sources or even jars.

                 

                What do you want to do, that you cannot do now?

                If you want all sources you can grab them in https://github.com/wildfly/wildfly

                and open that in IDE.

                what are you expecting: add WildFly maven dependencies (with source).

                where: to a maven project,

                 

                If you just use wildfly-parent as dependency you wont see any sources or even jars.

                Exactly!! What is the correct dependency?

                 

                What do you want to do, that you cannot do now?

                I think that this a repetitive question, maybe the confusion is on how maven works?


                If you want all sources you can grab them

                I don't see why should I do that, could you explain it?

                Maven dependencies exists for this achievement, what you mean is that WildFly is not publish on maven repositories correctly?


                • 5. Re: How to attach sources of WildFly 9.0.2 to debug
                  cweiler

                  Ok, I really don't know if this is correct, but for ones looking for this, my solution:

                   

                  - Add wildfly-weld dependency, in my case 9.0.2.Final, done.

                   

                  I suppose that the "weld" means "cause to combine and form a harmonious or effective whole", as I'm not a native English speaker, this is a google translator guess...