Hello Dave,
              
              If you want to deploy and run jobss then you could use mvn
jboss:start with the following settings in your pom file.

<build>
         <plugins>
                        <plugin>
                                                
<groupId>org.codehaus.mojo</groupId>
                                                
<artifactId>jboss-maven-plugin</artifactId>
                                                <version>1.4</version>
                                                <configuration>
                                                        <jbossHome>jboss home 
path</jbossHome>
                                                        <serverName>your server 
name</serverName>
                                                </configuration>
                                                <executions>
                                                        <execution>
                                                                
<phase>install</phase>
                                                                <goals>
                                                                        
<goal>harddeploy</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                </plugins>
</build>

The jboss starts as background process. You will notice a java process when
it has started, but again it automatically gets stopped.

I am not sure about your requirement. I hope the above solution will give
you some direction.

Somehow the mvn jboss:start-and-wait does not work even I have tried, even
after putting the username and password in the settings.xml file.

Cheers

Saniel.




dahoffer wrote:
> 
> Using:
> 
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>jboss-maven-plugin</artifactId>
>                 <version>1.4</version>
>                 <configuration>
>                     <jbossHome>C:\JBoss\jboss-5.1.0.GA-cdf</jbossHome>
>                     <serverName>default</serverName>
>                     <hostName>localhost</hostName>
>                     <port>8080</port>
> 
> <fileName>${project.build.directory}/${project.build.finalName}.${project.packaging}</fileName>
>                     <unpack>true</unpack>
>                 </configuration>
> </plugin>
> 
> Running mvn jboss:start-and-wait
> 
> I get:
> 
> C:\svn\COREFX\trunk\corefx-webapp-jboss>mvn jboss:start-and-wait
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building corefx-webapp-jboss Flex
> [INFO]    task-segment: [jboss:start-and-wait] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [jboss:start-and-wait]
> [INFO] Starting JBoss...
> [INFO] Waiting to retrieve JBoss JMX MBean connection...
> [INFO] Waiting to retrieve JBoss JMX MBean connection...
> [INFO] Waiting to retrieve JBoss JMX MBean connection...
> [INFO] Waiting to retrieve JBoss JMX MBean connection...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to get JBoss JMX MBean connection: null
> 
> no protocol: and
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 22 seconds
> [INFO] Finished at: Mon Feb 01 08:31:35 MST 2010
> [INFO] Final Memory: 16M/39M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> What am I missing?
> 
> -Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/jboss-maven-plugin-can%27t-start-jboss-tp27406431p27512166.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to