Is there a way I can configure maven to always download sources and javadocs? Specifying -DdownloadSources=true -DdownloadJavadocs=true
everytime (which usually goes along with running mvn compile twice because I forgot the first time) becomes rather tedious.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
On NetBeans : open your project explorer->Dependencies->[file.jar] rightclick->Download Javadoc
Open your settings.xml file
~/.m2/settings.xml
(create it if it doesn't exist). Add a section with the properties added. Then make sure the activeProfiles includes the new profile.In my case the "settings.xml" solution didn't work so I use this command in order to download all the sources:
You also can use it with other maven commands, for example:
To download all documentation, use the following command:
I think it can be done per plugin. See this chapter from the Maven book.
You might be able to configure the dependency plugin to download sources (even though I haven't tried it myself :-).
Just consolidating and prepared the single command to address source and docs download...
Answer for people from Google
In Eclipse you can automatically download javadoc and sources.
To do that, right click on the project and use