Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is there a way I can configure maven to always download sources and javadocs?



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

Post New Answer

More Apache Maven Interview Questions

How to specify the sequence in which sub modules needs to be built?

1 Answers  


What is maven error “failure to transfer…”?

1 Answers  


What is the use of maven?

1 Answers  


What is the use of maven clean?

1 Answers  


What is the dependency scope? Name all the dependency scope.

1 Answers  


Mention the steps for installing maven on windows.

1 Answers  


Explain what is maven repository? What are their types?

1 Answers  


What is an artifact in maven?

1 Answers  


What are the types of maven repository?

1 Answers  


Where do you find the class files when you compile a Maven project?

1 Answers  


What are the types of maven plugins?

1 Answers  


How can I change the default location of the generated jar when I command "mvn package"?

1 Answers  


Categories