Haha the plugin page needs to be updated:
http://mojo.codehaus.org/jboss-maven-plugin
the "fileName" configuration now "fileNames":
<fileNames>
<param>${project.build.directory}/${project.build.finalName}.${project.packaging}</param>
</fileNames>
FYI...
By default Jboss 4.2.0.GA uses the properties from
%JBOSS_HOME%server\default\conf\props\jmx-console-users.properties
which reads:
admin=admin
so now I have a server defined in maven with these settings defined in
jboss:
<server>
<id>default</id>
<username>admin</username>
<password>admin</password>
</server>
The plugin configuration is:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.3.2-SNAPSHOT</version>
<configuration>
<deployUrlPath>/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=</deployUrlPath>
<undeployUrlPath>/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0=</undeployUrlPath>
<serverName>jboss.default</serverName>
<port>8080</port>
<hostName>localhost</hostName>
<fileNames>
<param>${project.build.directory}/${project.build.finalName}.${project.packaging}</param>
</fileNames>
</configuration>
</plugin>
And I'm off to the races!
Cheers,
Christiaan
From: "MustafaSait Ãzen" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [mojo-user] jboss-maven-plugin-1.3.2-SNAPSHOT + Jboss-4.2.0.GA
+ Maven-2.0.7
Date: Mon, 6 Aug 2007 22:57:43 +0300
<jbossHome>/server/all/config/login-config.xml file may help you
On 06/08/07, Christiaan Veerman <[EMAIL PROTECTED]> wrote:
>
> Understood. I can go to the jmx-console and invoke some mbeans through
a
> browser without authentication. Why would the plugin need it? and where
is
> this username and password located in jboss?
>
> Christiaan
>
> l
> >From: "MustafaSait Ãzen" <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: Re: [mojo-user] jboss-maven-plugin-1.3.2-SNAPSHOT +
> Jboss-4.2.0.GA
> >+ Maven-2.0.7
> >Date: Mon, 6 Aug 2007 22:25:15 +0300
> >
> >No need to install tomcat. jboss:deploy works with jms as you
> know? Remote
> >deployment is done and Remoting needs a username/password-style
> >authentication mechanism similar to JNDI for situations that require
> secure
> >authentication. I do not understand the need of tomcat web container?
> >
> >On 06/08/07, Christiaan Veerman <[EMAIL PROTECTED]> wrote:
> > >
> > > Why do I have to authenticate with server?
> > >
> > > Where are these username's and password's defined in jboss?
> > >
> > > Does this mean I need to install a tomcat?
> > >
> > > <settings>
> > > <server>
> > > <id>default</id>
> > > <username>Your Username</username>
> > > <password>Your Password</password>
> > > </server>
> > > </settings>
> > >
> > >
> > >
> > > >From: "MustafaSait Ãzen" <[EMAIL PROTECTED]>
> > > >Reply-To: [email protected]
> > > >To: [email protected]
> > > >Subject: Re: [mojo-user] jboss-maven-plugin-1.3.2-SNAPSHOT +
> > > Jboss-4.2.0.GA
> > > >+ Maven-2.0.7
> > > >Date: Mon, 6 Aug 2007 19:53:11 +0300
> > > >
> > > >Have you looked at
> > > >jboss<http://mojo.codehaus.org/jboss-maven-plugin/deploy-mojo.html>
> > > >:deploy
> > > ><http://mojo.codehaus.org/jboss-maven-plugin/deploy-mojo.html
> >property?
> > > >You have to add "deployUrlPath"
> > > >and "server" tags to use this command. Server must also be
declared
> >in
> > > >.m2/settings.xml like
> > > >
> > > ><settings>
> > > > <server>
> > > > <id>default</id>
> > > > <username>Your Username</username>
> > > > <password>Your Password</password>
> > > > </server>
> > > ></settings>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >On 06/08/07, Christiaan Veerman <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hello:
> > > > >
> > > > > I am trying to use the jboss-maven-plugin with Jboss-4.2.0.GA
and
> > > Maven
> > > > > 2.0.7
> > > > >
> > > > > I am using an out-of-the-box jboss installation running the
> default
> > > > > server.
> > > > > I am confused by the serverName configuration as I don't think
by
> > > >default
> > > > > I
> > > > > need to authenticate to tomcat.
> > > > >
> > > > > I used this plugin a year ago and it was worked as planned but
now
> >I'm
> > > > > having problems.
> > > > >
> > > > > Only "mvn install jboss:harddeploy" works.
> > > > >
> > > > > The "mvn install jboss:deploy" says it's successful but the
jboss
> > > >instance
> > > > > is never invoked (at least the logs don't show invocation).
> > > > >
> > > > > The "mvn jboss:undeploy" exceptions is:
> > > > >
> > > > > ---
> > > > > [INFO] [jboss:undeploy]
> > > > > [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > [ERROR] FATAL ERROR
> > > > > [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > [INFO] null
> > > > > [INFO]
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > [INFO] Trace
> > > > > java.lang.NullPointerException
> > > > > at
> > > > >
org.codehaus.mojo.jboss.UndeployMojo.execute(UndeployMojo.java:42)
> > > > > at
> > > > >
> >org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> > > > > nManager.java:412)
> > > > > at
> > > > >
> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> > > > > ultLifecycleExecutor.java:534)
> > > > > at
> > > > >
> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> > > > > Goal(DefaultLifecycleExecutor.java:488)
> > > > > at
> > > > >
> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> > > > > ltLifecycleExecutor.java:458)
> > > > > at
> > > > >
> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> > > > > dleFailures(DefaultLifecycleExecutor.java:306)
> > > > > at
> > > > >
> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> > > > > ts(DefaultLifecycleExecutor.java:273)
> > > > > at
> > > > >
> >org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> > > > > fecycleExecutor.java:140)
> > > > > at
> > > >org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> > > > > at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java
> > > :115)
> > > > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >Method)
> > > > > at
> > > > >
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > > > java:39)
> > > > > at
> > > > >
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > > > sorImpl.java:25)
> > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > at
> > > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> > > > > at
> >org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > > at
> > > > >
> >org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > > at org.codehaus.classworlds.Launcher.main(Launcher.java
> :375)
> > > > >
> > > > >
> > > > > The plugin is configured as:
> > > > >
> > > > > <plugins>
> > > > > <plugin>
> > > > > <groupId>org.codehaus.mojo</groupId>
> > > > > <artifactId>jboss-maven-plugin</artifactId>
> > > > > <version>1.3.2-SNAPSHOT</version>
> > > > > <configuration>
> > > > > <serverName>default</serverName>
> > > > > <jbossHome>${env.JBOSS_HOME}</jbossHome>
> > > > > <port>8080</port>
> > > > > <hostName>localhost</hostName>
> > > > >
> > > > > <fileName>${project.build.directory}/${project.build.finalName
> > > > > }.war</fileName>
> > > > > </configuration>
> > > > > </plugin>
> > > > > </plugins>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > >From: "MustafaSait Ãâzen" <[EMAIL PROTECTED]>
> > > > > >Reply-To: [email protected]
> > > > > >To: [email protected]
> > > > > >Subject: Re: [mojo-user] jboss-maven-plugin-1.3.2-SNAPSHOT +
> > > > > Jboss-4.2.0.GA
> > > > > >+ Maven-2.0.7
> > > > > >Date: Thu, 2 Aug 2007 23:14:19 +0300
> > > > > >
> > > > > >use a configuration like this
> > > > > >
> > > > > > <configuration>
> > > > > > <serverName>default</serverName>
> > > > > >
> > > > > ><jbossHome>/Users/sait/Library/jboss-4.2.0.GA</jbossHome>
> > > > > >
> > > > > > <port>8080</port>
> > > > > > <hostName>localhost</hostName>
> > > > > > <fileName>
> > > > > >
> > > > > >${project.build.directory}/${project.build.finalName
> > > > > >}.war
> > > > > > </fileName>
> > > > > > </configuration>
> > > > > >
> > > > > >
> > > > > >
> > > > > >On 02/08/07, Christiaan Veerman <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > Hello:
> > > > > > >
> > > > > > > I am trying to use the jboss-maven-plugin for remote
> deployment
> >of
> > > > > > > Jboss-4.2.0.GA.
> > > > > > >
> > > > > > > Currently, I am using maven-2.0.7 and the
> > > > > > > jboss-maven-plugin-1.3.2-SNAPSHOT.
> > > > > > >
> > > > > > > The maven build does not fail; however the artifact does not
> get
> > > > > >deployed.
> > > > > > >
> > > > > > > The configuration is:
> > > > > > >
> > > > > > > <hostName>localhost</hostName>
> > > > > > >
> > > > > > > Any help would be greatly appreciated.
> > > > > > >
> > > > > > > Cheers,
> > > > > > >
> > > > > > > Christiaan
> > > > > > >
> > > > > > >
> >_________________________________________________________________
> > > > > > > Find a local pizza place, movie theater, and
moreââ¬Â¦.then
> >map
> > > >the best
> > > > > > > route!
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
http://maps.live.com/default.aspx?v=2&ss=yp.bars~yp.pizza~yp.movie%20theater&cp=42.358996~-71.056691&style=r&lvl=13&tilt=-90&dir=0&alt=-1000&scene=950607&encType=1&FORM=MGAC01
> > > > > > >
> > > > > > >
> > > > > > >
> > >
>---------------------------------------------------------------------
> > > > > > > To unsubscribe from this list please visit:
> > > > > > >
> > > > > > > http://xircles.codehaus.org/manage_email
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >--
> > > > > >Mustafa Sait ÃâZEN
> > > > > >Elektrik Elektronik Mühendisi -- Electrical Electronics
Engineer
> > > > > >Telefon - Phone: +90 222 335 05 80 - 1390
> > > > >
> > > > >
_________________________________________________________________
> > > > > Now you can see troubleâ¦before he arrives
> > > > >
> > > > >
> > > >
> > >
> >
>
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507
> > > > >
> > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > To unsubscribe from this list please visit:
> > > > >
> > > > > http://xircles.codehaus.org/manage_email
> > > > >
> > > > >
> > > >
> > > >
> > > >--
> > > >Mustafa Sait ÃZEN
> > > >Elektrik Elektronik Mühendisi -- Electrical Electronics Engineer
> > > >Telefon - Phone: +90 222 335 05 80 - 1390
> > >
> > > _________________________________________________________________
> > > A new home for Mom, no cleanup required. All starts here.
> > > http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > > http://xircles.codehaus.org/manage_email
> > >
> > >
> >
> >
> >--
> >Mustafa Sait ÃZEN
> >Elektrik Elektronik Mühendisi -- Electrical Electronics Engineer
> >Telefon - Phone: +90 222 335 05 80 - 1390
>
> _________________________________________________________________
> Puzzles, trivia teasers, word scrambles and more. Play for your chance
to
> win! http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
Mustafa Sait ÃZEN
Elektrik Elektronik Mühendisi -- Electrical Electronics Engineer
Telefon - Phone: +90 222 335 05 80 - 1390
_________________________________________________________________
Now you can see trouble
before he arrives
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email