Example
Org. jvnet. localizer is only applicable to the java.net resource library.
Pom. xml
<dependency> <groupId>org.jvnet.localizer</groupId> <artifactId>localizer</artifactId> <version>1.8</version></dependency>
If not stated, an error will be reported.
Declare the java.net Repository
Tell Maven to obtain java.net dependencies. You need to declare the remote repository in the Pom. xml file as follows:
Pom. xml
<repositories><repository> <id>java.net</id> <url>https://maven.java.net/content/repositories/public/</url></repository> </repositories>
Now, the maven dependent database query order is changed:
- Search for the maven local resource library. If not found, go to step 2. Otherwise, exit.
- Search for the maven central repository. If not found, go to step 2. Otherwise, exit.
- Search for the remote repository of java.net maven. If no information is found, an error message is displayed. Otherwise, exit.
Download from Maven remote Repository