我怎样才能看到带有Maven的jboss控制台 [英] How can I see jboss console with maven

查看:99
本文介绍了我怎样才能看到带有Maven的jboss控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用maven2启动了jboss-5.1.0.GA服务器,有可能看到控制台中发生了什么.我正在使用eclipse插件运行maven.是否有可能在Eclipse或其他地方看到控制台?

I started jboss-5.1.0.GA server with maven2, is there a possibility that I can see what is happening in the console. I'm using eclipse plugin to run maven. Is it possible to see console in eclipse or elsewhere?

这就是控制台的意思:

是否可以在某处看到此输出?手动运行jboss时,我拍摄了此屏幕截图.

Is it possible to see this output somewhere? I took this screen shot when manually running jboss.

当我用maven启动服务器时,我得到的是:

When I start the server with maven here is what I get :

[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[snrf] in [C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in[337 msecs]
[INFO] Building war: C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT.war
[INFO] [jboss:hard-deploy]
[INFO] Copying C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT.war to C:\jboss-5.1.0.GA\server\default\deploy\0.0.1-SNAPSHOT.war
[INFO] [jboss:start]
[INFO] Starting JBoss...
[INFO] [install:install]
[INFO] Installing C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT.war to C:\HOME\c0mrade\.m2\repository\org\trialofmaven\0.0.1-SNAPSHOT\0.0.1-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------

就是这样.什么都没发生..

And that is it. nothing is happening..

谢谢

推荐答案

是否可以在某处看到此输出?手动运行jboss时,我拍摄了此屏幕截图.

Is it possible to see this output somewhere? I took this screen shot when manually running jboss.

我认为jboss-maven-plugin不会将日志重定向到任何地方,因此您可以在

I'm don't think that the jboss-maven-plugin redirects the logs anywhere so you'll find them in

$JBOSS_HOME/server/<your_server>/log

以防万一,请注意货物对此有支持(在这里,我在cargo.log中获得控制台输出):

Just in case, note that cargo has support for this (here, I'm getting the console output in cargo.log):

<plugin>    
  <groupId>org.codehaus.cargo</groupId>    
  <artifactId>cargo-maven2-plugin</artifactId>    
  <version>1.0</version>    
  <configuration>    
    <container>    
      <containerId>jboss5x</containerId>    
      <home>${jboss.home}</home>    
      <append>false</append>    
      <log>${basedir}/target/jboss5.x.logs/cargo.log</log>    
      <timeout>300000</timeout> <!-- 5 minutes -->    
    </container>    
    <configuration>    
      <type>existing</type>    
      <home>${jboss.home}/server/default</home>    
      <properties>    
        <cargo.jboss.configuration>default</cargo.jboss.configuration>    
        <cargo.rmi.port>1099</cargo.rmi.port>    
        <cargo.logging>high</cargo.logging>    
      </properties>    
    </configuration>    
    <wait>false</wait>    
  </configuration>    
  ...
</plugin>

P.S .:我真的很想知道为什么您不通过Eclipse的WTP启动JBoss.

P.S.: I really wonder why you don't start JBoss with the WTP from Eclipse by the way.

这篇关于我怎样才能看到带有Maven的jboss控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆