首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Java-JBoss- Maven :获取jboss-as-client 5.0.1.GA Maven时出错

Java-JBoss- Maven :获取jboss-as-client 5.0.1.GA Maven时出错
EN

Stack Overflow用户
提问于 2010-12-08 19:21:29
回答 3查看 5.1K关注 0票数 4

我正在使用MavenServer5.0.1.GA、JBoss和Maven来编写JBoss客户端程序。

我在pom.xml中添加了以下几行代码:

代码语言:javascript
复制
<dependency>
  <groupId>org.jboss.jbossas</groupId>
  <artifactId>jboss-as-client</artifactId>
  <type>pom</type>
  <version>5.0.1.GA</version>
</dependency>

但现在我收到了这个错误消息:

代码语言:javascript
复制
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-client:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact cglib:cglib:jar:2.1.3:compile
08.12.10 11:41:58 MEZ: Missing artifact jacorb:jacorb:jar:2.3.0jboss.patch5-brew:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-iiop:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-server:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.microcontainer:jboss-kernel:jar:2.0.4.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-server:jar:client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact sun-jaxb:jaxb-api:jar:2.1.9:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-bootstrap:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.security:jbosssx:jar:2.0.2.SP6:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-system-jmx:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-system:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-security:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.javaee:jboss-jacc-api:jar:1.1.0.GA_SP1:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ws.native:jbossws-native-saaj:jar:3.0.5.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact javax.security:jaas:jar:1.0.01:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.javaee:jboss-jca-api:jar:1.5.0.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact jpl-util:jpl-util:jar:1.0:compile
08.12.10 11:41:58 MEZ: Missing artifact jpl-pattern:jpl-pattern:jar:1.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.naming:jnpserver:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact gnu-getopt:getopt:jar:1.0.12-brew:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss:jboss-common-core:jar:2.2.11.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.deployers:jboss-deployers-client-spi:jar:2.0.5.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.man:jboss-managed:jar:2.0.0.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.deployers:jboss-deployers-core-spi:jar:2.0.5.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-deployment:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-common:jar:client:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-core:jar:client:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.cache:jbosscache-core:jar:3.0.0.CR4:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.aspects:jboss-remoting-aspects:jar:1.0.1.CR4:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.aspects:jboss-transaction-aspects:jar:1.0.0.Beta1:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.aspects:jboss-security-aspects:jar:1.0.0.Beta1:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.cluster:jboss-ha-server-api:jar:1.1.0.CR4:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-async:jar:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-security:jar:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-proxy:jar:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-proxy-clustered:jar:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-transactions:jar:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-proxy:jar:client:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-proxy-clustered:jar:client:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.ejb3:jboss-ejb3-security:jar:client:1.0.0:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-cluster:jar:jboss-ha-legacy-client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.cluster:jboss-ha-server-cache-spi:jar:1.1.0.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.cluster:jboss-ha-server-cache-jbc:jar:1.1.0.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-iiop:jar:client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact apache-avalon:avalon-framework:jar:4.1.5:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.integration:jboss-classloading-spi:jar:5.0.3.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-main:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.integration:jboss-integration:jar:5.0.3.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-j2se:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.javaee:jboss-javaee:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-management:jar:jsr77-client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-cluster:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.logging:jboss-logging-jdk:jar:2.0.5.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-main:jar:client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss:jboss-mdr:jar:2.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact jboss.messaging:jboss-messaging:jar:1.4.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.remoting:jboss-remoting:jar:2.5.0.SP2:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.security:jboss-security-spi:jar:2.0.2.SP6:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-system:jar:client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.aop:jboss-aop:jar:2.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.integration:jboss-profileservice-spi:jar:5.0.3.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.man:jboss-metatype:jar:2.0.0.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.microcontainer:jboss-dependency:jar:2.0.4.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.microcontainer:jboss-aop-mc-int:jar:2.0.4.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-system-jmx:jar:client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-jmx:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-j2se:test-jar:tests:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-mbeans:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.test:jboss-test:jar:1.1.3.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact jboss.profiler.jvmti:jboss-profiler-jvmti:jar:1.0.0.CR5:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-server-manager:jar:1.0.0.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.security:jbosssx-client:jar:2.0.2.SP6:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.jbossas:jboss-as-server:jar:jmx-invoker-adaptor-client:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.naming:jnp-client:jar:5.0.1.GA:compile
08.12.10 11:41:58 MEZ: Missing artifact org.jboss.slf4j:slf4j-jboss-logging:jar:1.0.0.GA:compile

提前感谢您的帮助!

谨致问候,

丹尼尔

EN

回答 3

Stack Overflow用户

发布于 2011-03-15 01:13:38

在我的例子中,这适用于jboss4.2.3:

代码语言:javascript
复制
<repositories>
    <repository>
        <id>jboss-public-repository-group</id>
        <name>JBoss Public 
        Repository Group</name>
        <url>http://repository.jboss.org/nexus/content/groups/public/</url>
        <layout>default</layout>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
        </releases>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
        </snapshots>
    </repository>
    <repository>
        <id>jboss-deprecated</id>
        <name>JBoss Deprecated</name>
        <url>https://repository.jboss.org/nexus/content/repositories/deprecated/
        </url>
        <layout>default</layout>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>
票数 4
EN

Stack Overflow用户

发布于 2010-12-09 00:15:40

解决了..我添加了另外两个存储库。现在我的仓库列表如下所示:

代码语言:javascript
复制
    <repositories>
        <repository>
            <id>jboss-public-repository-group</id>
            <name>JBoss Public Repository Group</name>
            <url>http://repository.jboss.org/nexus/content/groups/public/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </snapshots>
        </repository>
        <repository>
            <id>jboss-deprecated</id>
            <name>JBoss Deprecated</name>
            <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>jboss-maven2-brew</id>
            <name>JBoss Maven 2 Brew Repository</name>
            <url>http://repository.jboss.org/maven2-brew/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>jboss-public-repository-group</id>
            <name>JBoss Public Repository Group</name>
            <url>http://repository.jboss.org/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
票数 1
EN

Stack Overflow用户

发布于 2010-12-08 19:57:12

尝试将此存储库https://repository.jboss.org/nexus/添加到您的pom.xml

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4386846

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档