`
dearshor
  • 浏览: 39109 次
  • 性别: Icon_minigender_1
  • 来自: 无锡
社区版块
存档分类
最新评论

在 maven 中使用 Jboss AS

阅读更多

近来尝试在maven中使用jboss AS(4.2.2.GA),尝试的插件有:  maven jboss plugin & Cargo Maven 2 Plugin,detail如下:

============================

[INFO] org.codehaus.mojo:jboss-maven-plugin:1.3.1

Name: Maven JBoss plugin
Description: (no description available)
Group Id: org.codehaus.mojo
Artifact Id: jboss-maven-plugin
Version: 1.3.1
Goal Prefix: jboss

This plugin has 6 goals:
[...]
---------------------------------------------------

[INFO] org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-6

Name: Cargo Maven 2 Plugin
Description: Cargo Maven 2 Plugin
Group Id: org.codehaus.cargo
Artifact Id: cargo-maven2-plugin
Version: 1.0-alpha-6
Goal Prefix: cargo
============================

 

我用org.codehaus.cargo:cargo-maven2-plugin:1.0-alpha-6启动jboss成功了

使用的是 Existing Local Configuration

 

$ mvn cargo:start
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO] ------------------------------------------------------------------------
[INFO] Building seam practice app1 ear module
[INFO]    task-segment: [cargo:start]
[INFO] ------------------------------------------------------------------------
[INFO] [cargo:start]
[INFO] [stalledLocalDeployer] Deploying [D:\...\seam-app1-ear\target\seam-app1-ear-1.0.0-SNAPSHOT.ear] to [D:/jboss-4.2.2.GA/server/dev-practice/deploy]...

[INFO] [talledLocalContainer] Parsed JBoss version = [4.2.2]
[INFO] [talledLocalContainer] JBoss 4.2.2 starting...
[INFO] [talledLocalContainer] JBoss 4.2.2 started on port [8080]
[INFO] Press Ctrl-C to stop the container...

 

配置如下:

<plugin>
     <groupId>org.codehaus.cargo</groupId>
     <artifactId>cargo-maven2-plugin</artifactId>
     <!-- <version>0.3.1</version> -->
     <configuration>
         <container>
             <containerId>jboss4x</containerId>
             <home>D:/jboss-4.2.2.GA</home>
             <output>${project.build.directory}/jboss4x.log</output>
             <!-- <log>${project.build.directory}/cargo.log</log> -->
         </container>
         <configuration>
             <type>existing</type>
             <home>D:/jboss-4.2.2.GA/server/dev-practice</home>
             <properties>
                <cargo.jboss.configuration>dev-practice</cargo.jboss.configuration>
             </properties>
         </configuration>                
     </configuration>
 </plugin>

 

Standalone Local Configuration  没试成功。

 

org.codehaus.mojo:jboss-maven-plugin:1.3.1 也没试成功(提示说jboss已启动,但实际上没有发现jboss进程)。

 

 

如有试成功的朋友,敬请告知,不胜感激。

 

【相关链接】

http://cargo.codehaus.org/Maven2+plugin

http://mojo.codehaus.org/jboss-maven-plugin/index.html

1
1
分享到:
评论
3 楼 demojava 2011-06-13  
哥们我的成功了
http://demojava.iteye.com/blog/1083826
你去看看 用的是 org.codehaus.mojo
2 楼 demojava 2011-03-03  
顶!哥们成功了吗
1 楼 triff 2010-11-05  
我也遇到过同样的问题,但是在运行jboss:run之后jboss确实应该是启动了,因为在浏览器中是可以打开的

相关推荐

Global site tag (gtag.js) - Google Analytics