Failed to complete the project goal. Could not find POM in project

I am trying to create an application that has the following dependency.

<properties> <version.jboss.as>7.5.0.Final-redhat-21</version.jboss.as> </properties> <dependencies> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-jms-client-bom</artifactId> <version>${version.jboss.as}</version> <type>pom</type> </dependency> </dependencies> 

This is an example that I found on the Red Hat website - http://www.jboss.org/quickstarts/eap/helloworld-jms/

I am using Netbeans 8.0.2 (also tried it with the Maven command in dos and eclipse). I get an error while building and the following is the log:

 Building JBoss EAP Quickstart: helloworld-jms 6.4.0.GA ------------------------------------------------------------------------ Downloading: http://repo.maven.apache.org/maven2/org/jboss/as/jboss-as-jms-client-bom/7.5.0.Final-redhat-21/jboss-as-jms-client-bom-7.5.0.Final-redhat-21.pom The POM for org.jboss.as:jboss-as-jms-client-bom:pom:7.5.0.Final-redhat-21 is missing, no dependency information available ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 7.268s Finished at: Thu Jun 18 13:27:43 IST 2015 Final Memory: 6M/121M ------------------------------------------------------------------------ Failed to execute goal on project jboss-helloworld-jms: Could not resolve dependencies for project org.jboss.quickstarts.eap:jboss-helloworld-jms:jar:6.4.0.GA: Failure to find org.jboss.as:jboss-as-jms-client-bom:pom:7.5.0.Final-redhat-21 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] 

I can find the file in the following path:

https://maven.repository.redhat.com/techpreview/all/org/jboss/as/jboss-as-jms-client-bom/7.5.0.Final-redhat-21/jboss-as-jms-client- bom-7.5.0.Final-redhat-21.pom

+2
source share
1 answer

You need to add rephat rephat to pom.xml or setting.xml . Install and use the Maven repository

eg:

  <repositories> <repository> <id>jboss-enterprise-techpreview-group</id> <name>JBoss Enterprise Technology Preview Maven Repository Group</name> <url>http://maven.repository.redhat.com/techpreview/all/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories> 
+3
source

Source: https://habr.com/ru/post/989181/


All Articles