json-taglib-0.4.1 use IDEA in maven not turned into

We import pom file

      <dependency>
          <groupId>json-taglib</groupId>
          <artifactId>json-taglib</artifactId>
          <version>0.4.1</version>
      </dependency>

This can be seen

This is not to go in, maven repository without this package.

Solution:
1:

json-taglib dependency:

      <dependency>
          <groupId>atg.taglib.json</groupId>
          <artifactId>json-taglib</artifactId>
          <version>0.4.1</version>
      </dependency>

Designated warehouse:

    <repositories>
        <repository>
            <id>java.net</id>
            <url>http://maven.jahia.org/maven2</url>
        </repository>
    </repositories>

2:

Download your own json-taglib 0.4.1 jar package is installed in your local repository, the package will later lead pack from a local guide. (recommend)

Download: https://sourceforge.net/projects/json-taglib/

The following is a json import command packet may refer to:

(1. Install the specified file to the local repository command: mvn install: install-file
(2. -DgroupId = <groupId>: package name setting item code (generally organization name)
(3. -DartifactId = <artifactId>: Set project name or module name
(4. -Dversion = 1.0.0: version number
(5. -Dpackaging = jar: What type of file (jar package)
(6. -Dfile = <myfile.jar>: Specifies the path and file name of the jar file (the file with the directory name only)
(Example 7 installation command:
mvn install:install-file -DgroupId=<group_name> -DartifactId=<artifact_name> -Dversion=<version_no> -Dfile=<path_of_the_local_jar> -Dpackaging=jar 

Here is my setup command:

mvn install:install-file -Dfile=C:\Users\liweichuan\Downloads\json-taglib-0.4.1.jar  -DgroupId=json-taglib -DartifactId=json-taglib -Dversion=0.4.1 -Dpackaging=jar

Attach screenshot:

It can normally use.

Guess you like

Origin www.cnblogs.com/u-lianchen/p/10962402.html