[Go] about maven Tomcat plugin Debug Source Solution

Source: Internet
Author: User

first, to solve the associated third-party jar source code

In the Pom file, add:

XML code
  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.apache.maven.plugins</groupId>
  5. <artifactid>maven-eclipse-plugin</artifactid>
  6. <version>2.9</version>
  7. <configuration>
  8. <additionalprojectnatures>
  9. <projectnature>org.eclipse.jdt.core.javanature</projectnature>
  10. <projectnature>org.eclipse.m2e.core.maven2nature</projectnature>
  11. <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature >
  12. </additionalprojectnatures>
  13. <additionalbuildcommands>
  14. <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
  15. <buildcommand>org.eclipse.m2e.core.maven2builder</buildcommand>
  16. <buildcommand>org.springframework.ide.eclipse.core.springbuilder</Buildcommand >
  17. </additionalbuildcommands>
  18. </configuration>
  19. </plugin>
  20. </plugins>
  21. </Build>

executed under the project:

Java code
    1. MVN dependency:sources

And then do it again:

Java code
    1. MVN Eclipse:eclipse

Basically the third-party jar is associated with the source code.

second, the source of the related projects

Debug as---debug Configuration--Select source-->add-->project in the right panel

Choose your own project below, add in, all the way ok,apply on the line

Note: when debugging is associated with the project source code, eclipse may pop up the error prompt, just click OK to ignore it.

----------------------------------------------------------

Turn from: About maven Tomcat plugin Debug Source Solution

[Go] about maven Tomcat plugin Debug Source Solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.