forget to attach the pom
On Thu, Dec 22, 2011 at 8:19 AM, Forrest Xia <[email protected]> wrote:
> Here is an instruction for your reference:
> 1. put the attached pom in a folder
> 2. then go to that folder with a terminal or dos window open, execute this
> command
> mvn -DgeronimoHome=path2geronimoHome
> org.apache.geronimo.buildsupport:geronimo-maven-plugin:3.0-beta-1:start-server
>
>
> On Thu, Dec 22, 2011 at 7:53 PM, Behrooz Nobakht <[email protected]> wrote:
>
>> 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
>>
>
>
>
> --
> Thanks!
>
> Regards, Forrest
>
>
--
Thanks!
Regards, Forrest
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!-- $Rev: 782833 $ $Date: 2009-06-08 20:12:50 -0400 (Mon, 08 Jun 2009) $ -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>6</version>
</parent>
<groupId>org.apache.geronimo</groupId>
<artifactId>usegmp</artifactId>
<name>usegmp</name>
<packaging>pom</packaging>
<version>1.0</version>
<description>
Verify geronimo-maven-plugin usage
</description>
</project>