The description of the package is found here when configuring the Pom.xml dependency package:
http://search.maven.org/#browse
Java is the root directory.
MVN archtype:generate-dgroupid=zttc.itat.maven-dartifactid=maven-ch03-dversion=1.0.0
Configure maven/bin/.conf, change the M2 file path to Maven/repos
Preferences->maven-installation, replacing the default mvn
Replace default Usersettings.xml
New Maven Project-->quickstart, another commonly used is webapp.
Add Dependency:
Www.mvnrepository.com
Preference->editor->content Assistant->auto Activation:auto Activation for Java: [email protected]
Preference->editor->content Assistant->auto Activation:auto Activation for Java: #
Right-click Project->run As->build->clean Install
Several good Java classes, jar packages, and their dependent lookup sites:
http://search.maven.org/
http://mvnrepository.com/
http://mvnbrowser.com/
http://www.sonatype.org/
http://www.findjar.com/index.x
http://www.jarvana.com/jarvana/(highly recommended, the interface is good, and the information is very detailed, is currently found the best!!!) But how can I not open it ... )
MAVEN coordinates and dependencies, including any trust, plug-in and build, such as Log4j.jar, Maven-compiler-plugin,account-email.jar.
Find the local warehouse and find the remote repository first.
Save time by creating a local area network
In addition to the central warehouse, there are other public warehouses: http://download.java.net/maven/2/, Http:/repository.jboss.com/maven2
Warehouse Path Profile: ~/.m2/setting.xml, this file does not exist by default and needs to be copied from $m2_home/conf/setting.xml.
Install to copy the built-in jar package to the local repository directory.
Central Warehouse:
<repositories>
<repository>
<id>central</id>
<name>maven Repository switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
Central Warehouse may not meet demand, need to configure another remote warehouse
<repositories>
<repository>
<id>jboss</id>
<name>jboss repository</name>
<url>http://repository.jboss.com/maven2/</url>
<releases>
<updatePolicy>daily</updatePolicy><!--never,always,interval N--
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy><!--Fail,ignore--
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<layout>default</layout>
</repository>
</repositories>
List a few common Maven repository, share it, and prevent it from forgetting for a long time:
<repositories>
<repository>
<id>jboss-cache</id>
<name>jboss-cache</name>
<url>http://repository.jboss.org/maven2</url>
</repository>
<repository>
<id>mvnsearch</id>
<name>mvnsearch Maven repository</name>
<url>http://www.mvnsearch.org/maven2</url>
</repository>
<repository>
<id>ibiblio</id>
<name>ibiblio Maven repository</name>
<url>http://www.ibiblio.org/maven2</url>
</repository>
<repository>
<id>mirrors.ibiblio</id>
<name>mirrors.ibiblio Maven repository</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</repository>
<repository>
<id>repo.springsource.org</id>
<name>repo.springsource.org-releases</name>
<url>http://repo.springsource.org/libs-milestone-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
In the two search jar package, MAVEN relies on a common address:
http://search.maven.org/
http://mvnrepository.com/
The primary role is to deploy third-party artifacts, including artifacts generated within the enterprise and artifacts that cannot be obtained directly from an external warehouse.
MAVEN compiles, tests, packages, and deploys build builds to the warehouse.
Distributionmanagement has release and snapshot two versions, each with Id,name,url three items, corresponding to the remote unique warehouse:
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
MVN clean Deploy builds the output to the remote repository after configuration is complete.
The snapshot version has a timestamp, and MAVEN checks the timestamp every day to update, forcing the update with MVN clean install-u.
Mirror with:
<mirrors>
<mirror>
<id>internal-repository</id>
<name>internal Repository manager</name>
<url>http://192.168.1.1/maven2/</url>
<mirrofOf>*</mirrorOf>
</mirror>
</mirrors>
Warehouse Search Service:
Sonatype Nexus is the most popular warehouse management software: https://repository.sonatype.org/, support keywords, class name search, coordinate search, inspection and search functions. 、
jarvana.com/supports keyword, class name search, component download, and dependency declaration fragments
http://mvnbrowser.com/
http://mvnrepository.com/
Maven Warehouse Summary