Maven pom.xml ошибка jboss (файл быстрого запуска)
Я использую Redhat Developer Studio 12.0 и jboss EAP 7.1 для сервера. Сначала я пробую быстрый запуск (helloworld) (jboss), поэтому я буду знать, все ли работает нормально.
Я новичок в Jboss, это то, что я действительно мало знаю об этом.
это pom.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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>
<parent>
<groupId>org.jboss.eap.quickstarts</groupId>
<artifactId>quickstart-parent</artifactId>
<version>7.1.0.GA</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>helloworld</artifactId>
<packaging>war</packaging>
<name>${qs.name.prefix} helloworld</name>
<description>Helloworld</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<distribution>repo</distribution>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<dependencies>
<!-- Import the CDI API, we use provided scope as the API is included in WildFly -->
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- Import the Common Annotations API (JSR-250), we use provided scope
as the API is included in WildFly -->
<dependency>
<groupId>org.jboss.spec.javax.annotation</groupId>
<artifactId>jboss-annotations-api_1.2_spec</artifactId>
<scope>provided</scope>
</dependency>
<!-- Import the Servlet API, we use provided scope as the API is included in WildFly -->
<dependency>
<groupId>org.jboss.spec.javax.servlet</groupId>
<artifactId>jboss-servlet-api_3.1_spec</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
1 ответ
Ваш pom ищет другого родительского pom в верхнем каталоге
<parent>
<groupId>org.jboss.eap.quickstarts</groupId>
<artifactId>quickstart-parent</artifactId>
<version>7.1.0.GA</version>
<relativePath>../pom.xml</relativePath>
</parent>
Родительский проект должен существовать в пути, используемом <relativePath>
Надеюсь, поможет!