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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different ways to convert an inputstream to a sting?

208