我想使用Java和JMX来监控WebLogic。我需要使用WebLogic lib目录中提供的wlclient.jar。
是否有任何Maven仓库可以用来下载wlclient.jar? 我找到的唯一方法是手动将jar文件导入我的存储库,但这对我来说不是一个选项。
是否有任何Maven仓库可以用来下载wlclient.jar? 我找到的唯一方法是手动将jar文件导入我的存储库,但这对我来说不是一个选项。
<repositories>
<repository>
<id>lib</id>
<name>In Project Repo</name>
<url>file://${basedir}/lib</url>
</repository>
</repositories>
mvn install:install-file -Dfile=myArtifact.jar -DgroupId=x.y.z -DartifactId=${artifactId} -Dversion=${version} -Dpackaging=jar -DgeneratePom=true
<dependencies>
....
<dependency>
<groupId>x.y.z</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
</dependency>
</dependencies>
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=path-to\wlclient.jar -DgroupId=weblogic -DartifactId=wlclient -Dversion=1.0.0 -Dpackaging=jar
<dependency>
<groupId>weblogic</groupId>
<artifactId>wlclient</artifactId>
<version>1.0.0</version>
<systemPath>${basedir}/path/to/library/wlclient-1.0.0.jar</systemPath>
<scope>system</scope>
</dependency>