我正在将已经存在的maven JBOS Fuse 6.3 camel项目导入到Jboss Developer Studio中。在成功导入后,我得到以下错误,
我在父POM中发现了这个错误
项目构建错误:无法解析org.jboss.quickstarts.eap:jboss-quickstart-parent:6.4.0.GA:的父POM无法传输org.jboss:jboss- parent :pom:8已缓存在本地存储库中,直到jboss-ga存储库的更新间隔过后或强制更新后,才会重新尝试解析。原始错误:无法从/向jboss-ga存储库(http://maven.repository.redhat.com/技术预览/全部)传输工件org.jboss:jboss-parent: POM :8 : maven.repository.redhat.com和'parent.relativePath‘点没有本地POM
父POM.xml
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.--> ">http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 org.jboss jboss-parent 8 org.jboss.quickstarts.eap
<artifactId>jboss-quickstart-parent</artifactId>
<version>6.4.0.GA</version>
<packaging>pom</packaging>
<name>JBoss EAP Quickstart: Parent</name>
<description>JBoss EAP Quickstarts Parent</description>
<url>http://www.jboss.org/jdf/quickstarts/get-started/</url>
<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>
<properties>
<!-- A base list of dependency and plugin version used in the various quick starts. -->
<version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>
<!-- other plugin versions -->
<version.com.mycyla.license>2.5</version.com.mycyla.license>
</properties>
<build>
<plugins>
<!-- The JBoss AS plugin deploys your apps to a local JBoss EAP container -->
<!-- Disabling it here means that we don't try to deploy this POM! -->
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>${version.jboss.maven.plugin}</version>
<inherited>true</inherited>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${version.com.mycyla.license}</version>
<configuration>
<header>${basedir}/dist/license.txt</header>
<aggregate>true</aggregate>
<strictCheck>true</strictCheck>
<excludes>
<exclude>target/**</exclude>
<exclude>.clover/**</exclude>
<exclude>**/*.sql</exclude>
<exclude>**/LICENSE*</exclude>
<exclude>**/license*</exclude>
<!-- Exclude specific Quickstarts -->
<exclude>petclinic-spring/**</exclude>
<!-- Javascrip Libraries -->
<exclude>**/jquery*</exclude>
<exclude>**/angular*</exclude>
<exclude>**/qunit*</exclude>
<exclude>**/backbone*</exclude>
<exclude>**/lodash*</exclude>
<exclude>**/modernizr*</exclude>
<exclude>**/yepnope*</exclude>
<exclude>**/mobile-nav*</exclude>
<!--Other libraries -->
<exclude>**/*glyphicons*/**</exclude>
<exclude>**/*cordova*/**</exclude>
</excludes>
<encoding>UTF-8</encoding>
<headerDefinitions>
<headerDefinition>dist/headerdefinition.xml</headerDefinition>
</headerDefinitions>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- All the modules that require nothing but JBoss Enterprise
Application Platform or JBoss EAP -->
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>default</name>
<value>!disabled</value>
</property>
</activation>
<modules>
<!-- All the modules that require nothing but JBoss Enterprise
Application Platform or JBoss EAP -->
<module>app-client</module>
<module>bean-validation</module>
<module>bean-validation-custom-constraint</module>
<module>bmt</module>
<module>cdi-alternative</module>
<module>cdi-decorator</module>
<module>cdi-interceptors</module>
<module>cdi-injection</module>
<module>cdi-portable-extension</module>
<module>cdi-stereotype</module>
<module>cdi-veto</module>
<module>ejb-asynchronous</module>
<module>ejb-in-ear</module>
<module>ejb-in-war</module>
<module>ejb-remote</module>
<module>ejb-security</module>
<module>ejb-security-interceptors</module>
<module>ejb-throws-exception</module>
<module>ejb-timer</module>
<module>ejb-multi-server</module>
<module>greeter</module>
<module>helloworld</module>
<module>helloworld-jms</module>
<module>helloworld-mbean</module>
<module>helloworld-mdb</module>
<module>helloworld-mdb-propertysubstitution</module>
<module>helloworld-rs</module>
<module>helloworld-singleton</module>
<module>helloworld-ws</module>
<module>hibernate3</module>
<module>hibernate4</module>
<module>kitchensink</module>
<module>kitchensink-ear</module>
<module>kitchensink-jsp</module>
<module>kitchensink-ml</module>
<module>kitchensink-ml-ear</module>
<module>log4j</module>
<module>logging</module>
<module>logging-tools</module>
<module>mail</module>
<module>numberguess</module>
<module>payment-cdi-event</module>
<module>picketlink-sts</module>
<module>servlet-async</module>
<module>servlet-filterlistener</module>
<module>servlet-security</module>
<module>shopping-cart</module>
<module>tasks</module>
<module>tasks-jsf</module>
<module>tasks-rs</module>
<module>temperature-converter</module>
<module>websocket-hello</module>
<module>xml-dom4j</module>
<module>xml-jaxp</module>
</modules>
</profile>
<profile>
<!-- All the quickstarts that require Postgres to be running -->
<id>requires-postgres</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>requires-postgres</name>
<value>!disabled</value>
</property>
</activation>
<modules>
<module>cmt</module>
<module>jts</module>
</modules>
</profile>
<profile>
<!-- All the quickstarts that have weird requirements around deployment that Maven can't handle -->
<id>complex-dependencies</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>complex-dependencies</name>
<value>!disabled</value>
</property>
</activation>
<modules>
<module>cluster-ha-singleton</module>
<module>inter-app</module>
<module>jax-rs-client</module>
<module>jts</module>
</modules>
</profile>
<profile>
<!-- All the quickstarts that require the "standalone-full" profile
to be in use -->
<id>requires-full</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>requires-full</name>
<value>!disabled</value>
</property>
</activation>
<modules>
<module>helloworld-mbean</module>
<module>helloworld-mdb</module>
<module>helloworld-mdb-propertysubstitution</module>
<module>jta-crash-rec</module>
</modules>
</profile>
<profile>
<!-- All the quickstarts that require the xts to be enabled -->
<id>requires-xts</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>requires-xts</name>
<value>!disabled</value>
</property>
</activation>
<modules>
<module>wsat-simple</module>
<module>wsba-coordinator-completion-simple</module>
<module>wsba-participant-completion-simple</module>
</modules>
</profile>
<profile>
<!-- All the quickstarts that don't actually use Maven. Don't
activate this profile! We just include this for completeness. -->
<id>non-maven</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<modules>
<module>forge-from-scratch</module>
<module>h2-console</module>
<module>jts-distributed-crash-rec</module>
</modules>
</profile>
</profiles>
发布于 2017-10-13 09:27:26
可以尝试几个想法:-尝试从命令行构建项目,以确保一切正常。-看起来你正在使用“快速入门”,这是一个很好的想法。如果它们在原始目录中(与其他快速入门的其他快速入门程序一起),它们的工作效果最好,它有助于获得正确的父分辨率。
发布于 2017-10-13 14:15:38
jboss-parent pom可以通过https://repo.maven.apache.org/maven2/org/jboss/jboss-parent/8/上的Maven Central获得
我想知道为什么它不能为你解决。也许可以尝试像前面建议的那样在命令行上构建,并强制Maven更新。
https://stackoverflow.com/questions/46712473
复制相似问题