first, to solve the associated third-party jar source code
In the Pom file, add:
XML code
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactid>maven-eclipse-plugin</artifactid>
- <version>2.9</version>
- <configuration>
- <additionalprojectnatures>
- <projectnature>org.eclipse.jdt.core.javanature</projectnature>
- <projectnature>org.eclipse.m2e.core.maven2nature</projectnature>
- <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature >
- </additionalprojectnatures>
- <additionalbuildcommands>
- <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
- <buildcommand>org.eclipse.m2e.core.maven2builder</buildcommand>
- <buildcommand>org.springframework.ide.eclipse.core.springbuilder</Buildcommand >
- </additionalbuildcommands>
- </configuration>
- </plugin>
- </plugins>
- </Build>
executed under the project:
Java code
- MVN dependency:sources
And then do it again:
Java code
- 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