Is there a way I can configure maven to always download sources and javadocs?
Answer / Omendra Yadav
Yes, you can configure Maven to download sources and Javadocs by default using the `~/.m2/settings.xml` file:n```xmln<profiles>n <profile>n <id>download-source</id>n <activation>n <activeByDefault>true</activeByDefault>n </activation>n <build>n <plugins>n <plugin>n <groupId>org.apache.maven.plugins</groupId>n <artifactId>maven-dependency-plugin</artifactId>n <version>3.1.2</version>n <executions>n <execution>n <id>get-sources</id>n <goals>n <goal> sources </goal>n </goals>n </execution>n <execution>n <id>get-javadoc</id>n <goals>n <goal> jar </goal>n </goals>n </execution>n </executions>n </plugin>n </plugins>n </build>n </profile>n</profiles>```
| Is This Answer Correct ? | 0 Yes | 0 No |
How to specify the sequence in which sub modules needs to be built?
What is maven error “failure to transfer…”?
What is the use of maven?
What is the use of maven clean?
What is the dependency scope? Name all the dependency scope.
Mention the steps for installing maven on windows.
Explain what is maven repository? What are their types?
What is an artifact in maven?
What are the types of maven repository?
Where do you find the class files when you compile a Maven project?
What are the types of maven plugins?
How can I change the default location of the generated jar when I command "mvn package"?