You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Behrooz Nobakht <no...@gmail.com> on 2011/12/22 12:28:27 UTC

Geronimo 3.0-beta-1 Maven Plugin

Hello,

I've been trying to use the Geronimo Maven Plugin:

            <plugin>
                <groupId>org.apache.geronimo.buildsupport</groupId>
                <artifactId>geronimo-maven-plugin</artifactId>
                <configuration>

<geronimoHome>/my/path/to/geronimo-jetty8-javaee6-3.0-beta-1</geronimoHome>
                    <logOutput>true</logOutput>

<assemblyArchive>${project.build.directory}/${project.build.finalName}-geronimo.zip</assemblyArchive>
                </configuration>
            </plugin>

When I start the Geronimo server before running the goal "geronimo:start",
I get the following output:

[INFO] --- geronimo-maven-plugin:3.0-M1:start (default-cli) @
deployment-control ---
[org.codehaus.mojo.pluginsupport.logging.Logging] : Initialized
[INFO] Using pre-installed assembly:
/fh/osgi/geronimo-jetty8-javaee6-3.0-beta-1
[INFO] Installation type is pre-existing; skipping installation
[INFO] Starting Geronimo server...
[INFO] Redirecting output to:
/fh/workspaces/controller/controller/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartMojo.log
[INFO] Waiting for Geronimo server...
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized with
URL: service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector,
environment: {jmx.remote.credentials=[Ljava.lang.String;@7947016c}
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to:
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connected
[INFO] Geronimo server started in 0:00:00.109
[INFO] Waiting for Geronimo server to shutdown...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.794s
[INFO] Finished at: Thu Dec 22 12:17:23 CET 2011
[INFO] Final Memory: 14M/212M
[INFO]
------------------------------------------------------------------------

Which actually seems to do nothing! And, I also see nothing as logs on the
server log output. And, when I *do not* start the server before running the
Maven goal, the log will be like:

[INFO] --- geronimo-maven-plugin:3.0-M1:start (default-cli) @
deployment-control ---
[org.codehaus.mojo.pluginsupport.logging.Logging] : Initialized
[INFO] Using pre-installed assembly:
/fh/osgi/geronimo-jetty8-javaee6-3.0-beta-1
[INFO] Installation type is pre-existing; skipping installation
[INFO] Starting Geronimo server...
[INFO] Redirecting output to:
/fh/workspaces/controller/controller/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartMojo.log
[INFO] Waiting for Geronimo server...
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized with
URL: service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector,
environment: {jmx.remote.credentials=[Ljava.lang.String;@3370ec9d}
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to:
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connection
failure; ignoring: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
    java.net.ConnectException: Connection refused]
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to:
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector
[org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connected
[INFO] Geronimo server started in 0:00:15.123
[INFO] Waiting for Geronimo server to shutdown...
.......................................................................................................................................
AFTER A LONG TIME

Nothing happens!

Is there anything reference documentation for this plugin? What am I doing
wrong?
Maybe it is good to mention that the assembly required is properly prepared
for the plugin.

Thanks in advance,
Behrooz