解决maven jmxtools 缺失的问题

原因:有版权,所以maven仓库基本都下架了jmxtool。

目前可用的,我就找到了wso2这家,配置如下:

 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 2          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 3     <modelVersion>4.0.0</modelVersion>
 4 
 5     <groupId>win.larryzeal.jmx</groupId>
 6     <artifactId>jmx-demo</artifactId>
 7     <version>1.0-SNAPSHOT</version>
 8     <packaging>jar</packaging>
 9 
10     <name>jmx-demo</name>
11     <url>http://maven.apache.org</url>
12 
13     <properties>
14         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15     </properties>
16     <repositories>
17         <repository>
18             <id>dist.wso2.org/maven2</id>
19             <name>wso2.org Maven Repository</name>
20             <url>http://dist.wso2.org/maven2/</url>
21         </repository>
22     </repositories>
23 
24     <dependencies>
25         <dependency>
26             <groupId>junit</groupId>
27             <artifactId>junit</artifactId>
28             <version>4.12</version>
29             <scope>test</scope>
30         </dependency>
31         <dependency>
32             <groupId>com.sun.jdmk</groupId>
33             <artifactId>jmxtools</artifactId>
34             <version>1.2.1</version>
35         </dependency>
36     </dependencies>
37 
38     <build>
39         <plugins>
40             <plugin>
41                 <groupId>org.apache.maven.plugins</groupId>
42                 <artifactId>maven-compiler-plugin</artifactId>
43                 <configuration>
44                     <source>1.8</source>
45                     <target>1.8</target>
46                 </configuration>
47             </plugin>
48         </plugins>
49     </build>
50 </project>
View Code

 

posted on 2017-08-17 19:54  LarryZeal  阅读(706)  评论(0编辑  收藏  举报

导航