写道
[ERROR] Failed to execute goal on project zookeeper: Could not resolve dependencies for project com.zqz:zookeeper:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: javax.jms:jms:jar:1.1
, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connecto
r available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Could not transfer artifact javax.jms:jms:jar:1.1 from/to java.net (https://maven-repository.dev.java.net/nonav/repository): No connecto
r available to access repository java.net (https://maven-repository.dev.java.net/nonav/repository) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
总体上是说在install 这个项目的时候,有三个包jmxri, jmxtools, 和jms不能从远程仓库下载。
另外发现这三个包也没有必要加进来,所以在pom.xml中去掉这三个jar包就可以了。
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.zqz</groupId> <artifactId>zookeeper</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>zookeeper</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.4.5</version> <exclusions> <exclusion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> </exclusion> <exclusion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> </exclusion> <exclusion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </project>
相关推荐
mvn install单独jar到仓库使用方法举例
遍历文件夹及子文件夹下得pom文件,自动清理、编译、安装。适合批量编译多个maven工程
【标题】:“canal文件,下载后直接mvn_install即可使用.zip” 【描述】:这段描述反复提到了“canal文件”以及“下载后直接mvn_install即可使用”,这意味着我们讨论的是一个关于Canal项目的软件包,这个包是用ZIP...
master运行mvn install报错:Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.19:validate (default) on project spring-petclinic: Formatting violations found in the ...
maven将jar包安装到本地仓库的小工具,可批量导入,需配置好JAVA_HOME和MAVEN_HOME环境
标题 "test-mvn clean install -Dmaven.test.skip=true dependency:sources" 指的是一个常见的Maven命令,用于构建Java项目。这个命令包含了几个关键的Maven生命周期阶段和选项,下面会详细解释。 首先,`mvn clean...
在使用Maven构建Java项目时,可能会遇到这样一个错误:“Failed to execute goal on project …: Could not resolve dependencies for project …”。这个错误通常表明Maven在构建过程中遇到了依赖解析问题,无法...
mvn install:install-file \ -Dfile=~/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar \ -DgroupId=log4j \ -DartifactId=log4j \ -Dversion=1.2.17 \ -Dpackaging=jar ``` 运行这个脚本,`log4j.jar`...
自定义一个插件,继承AbstractMojo,实现execute方法,引入该自定义插件,执行mvn install,报错 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default -...
The project is based on Maven 3. In order to build it you need to install Apache Maven and run 'mvn install' command. Some modules of project contain dependencies not included in Maven Central - to ...
mvn install:install-file -DgroupId=org.hyperic -DartifactId=sigar-dist -Dversion=1.6.3.82 -Dpackaging=jar -Dfile=C:\Users\XXXXX\Desktop\sigar-dist-1.6.3.82.zip mvn install:install-file -DgroupId=org....
mvn install:install-file -Dfile=D:\xxxx\Dm7JdbcDriver15.jar -DgroupId=com.dm -DartifactId=dmJDBC -Dversion=7.6.15 -Dpackaging=jar mvn install:install-file -Dfile=D:\xxxx\Dm7JdbcDriver16.jar -...
This project uses the Encryption class from: http://www.java2s.com/Code/Android/Security/AESEncryption.htm Gives an implementation of SharedPreferences, which encrypts given values with AES. ...