处理 POM 时遇到了一些问题:[error] non resolvable import POM
some problems were encountered while processing the POMs: [error] non resolvable import POM
我想开始一个新的 Jersey 项目,但我在第一步中失败了,因为 pom.xml 显示了一些错误并且无法构建项目。
错误:
some problems were encountered while processing the POMs:
[error] non resolvable import POM: Could not transfer artifact org.glassfish.jersey: jersey-bom:pom...."
这是我的 pom.xml :
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>JERSEYProject</groupId>
<artifactId>JERSEYProject</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>simple-service-webapp</name>
<build>
<finalName>simple-service-webapp</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<inherited>true</inherited>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey</groupId>
<artifactId>jersey-bom</artifactId>
<version>${jersey.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
</dependency>
</dependencies>
你能帮我解决这个问题吗?我尝试了很多配置,但 none 的主题有效。我不知道我的 IDE 配置 (IntelliJ) 是否有问题。
谢谢!!
您需要直接指定 glassfish.Either 的版本或使用给定名称 jersey.version
作为变量
我想开始一个新的 Jersey 项目,但我在第一步中失败了,因为 pom.xml 显示了一些错误并且无法构建项目。 错误:
some problems were encountered while processing the POMs:
[error] non resolvable import POM: Could not transfer artifact org.glassfish.jersey: jersey-bom:pom...."
这是我的 pom.xml :
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>JERSEYProject</groupId>
<artifactId>JERSEYProject</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>simple-service-webapp</name>
<build>
<finalName>simple-service-webapp</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<inherited>true</inherited>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey</groupId>
<artifactId>jersey-bom</artifactId>
<version>${jersey.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
</dependency>
</dependencies>
你能帮我解决这个问题吗?我尝试了很多配置,但 none 的主题有效。我不知道我的 IDE 配置 (IntelliJ) 是否有问题。 谢谢!!
您需要直接指定 glassfish.Either 的版本或使用给定名称 jersey.version