pom.xml만 있는데 메이븐으로 소스 내려받기

2021. 7. 6. 17:37java

728x90
반응형

https://stackoverflow.com/questions/11361331/how-to-download-sources-for-a-jar-with-maven

org.apache.maven.plugins maven-dependency-plugin 3.1.1 download-sources sources

How to download sources for a jar with Maven?

In my project I am using a JAR file provided via Maven. But what Maven gives me is only this jar - no javadocs and no sources. Pressing "Download Sources" has no effect: Eclipse still does not find...

stackoverflow.com

](https://stackoverflow.com/questions/11361331/how-to-download-sources-for-a-jar-with-maven)

Themaven dependency pluginshould be used whit thedependency:sourcesgoal:

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.1.1</version> <executions> <execution> <id>download-sources</id> <goals> <goal>sources</goal> </goals> <configuration> </configuration> </execution> </executions> </plugin>

org.apache.maven.plugins maven-dependency-plugin 3.1.1 download-sources sources This can also be run from the command line as:

mvn dependency:sources -Dsilent=true

728x90
반응형