You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Staszny Barnabás <st...@danubiusinfo.hu> on 2014/03/19 17:47:02 UTC
tomee undeploy with maven
Hi!
First of all, sorry for my bad english.
A would like to know,that could you help me out with undeploy problems.
I tried to deploy with maven install and it worked for me.
My pom.xml is some kind of that:
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<tomeeVersion>1.6.0</tomeeVersion>
<tomeeClassifier>plus</tomeeClassifier>
<tomeeHost>SOMEHOST</tomeeHost>
<tomeeHttpPort>8080</tomeeHttpPort>
<path>${project.build.directory}/${project.build.finalName}.ear</path>
<user>user</user>
<password>password</password>
</configuration>
</execution>
</executions>
===========================
It works me perfectly, deploy my application on tomee plus on remote host.
But I need somehow undeploy it with maven. I tried this (and so many other
configurations....and read a lot of forums about that with no success)
I don't understand why doesnt work this. :/ Maybe if you could tell me!?
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>undeploy</goal>
</goals>
<configuration>
<tomeeVersion>1.6.0</tomeeVersion>
<tomeeClassifier>plus</tomeeClassifier>
<tomeeHost>SOMEHOST</tomeeHost>
<tomeeHttpPort>8080</tomeeHttpPort>
<path>${project.build.directory}/${project.build.finalName}</path>
<user>user</user>
<password>password</password>
</configuration>
</execution>
</executions>
================================================
I use for run this in eclipse "run as Maven install", and at the end
eclipse logs "BUILD SUCCES", but the application still on my server.
I changed goal to "undeploy" and remove "ear" modifier from the end of me
deployment path (just as I read).
--
*Staszny Barnabás*
Rendszerintegrációs szakértő
Danubius Informatika
staszny.barnabas@danubiusinfo.hu
+36 20 2150436
Danubius Expert Zrt.
1042 Budapest, Árpád út 67. II. em.
Re: tomee undeploy with maven
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
patch is surely wrong and doesn't match the deployed application Id.
Maybe check through JMX which one is used (it should be in openejb
mbeans) or it is for sure in the logs
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-03-19 17:47 GMT+01:00 Staszny Barnabás <st...@danubiusinfo.hu>:
> Hi!
>
> First of all, sorry for my bad english.
>
> A would like to know,that could you help me out with undeploy problems.
>
> I tried to deploy with maven install and it worked for me.
>
> My pom.xml is some kind of that:
>
> <plugin>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>1.6.0</version>
> <executions>
> <execution>
> <phase>install</phase>
> <goals>
> <goal>deploy</goal>
> </goals>
> <configuration>
> <tomeeVersion>1.6.0</tomeeVersion>
> <tomeeClassifier>plus</tomeeClassifier>
> <tomeeHost>SOMEHOST</tomeeHost>
> <tomeeHttpPort>8080</tomeeHttpPort>
> <path>${project.build.directory}/${project.build.finalName}.ear</path>
> <user>user</user>
> <password>password</password>
> </configuration>
> </execution>
> </executions>
>
> ===========================
> It works me perfectly, deploy my application on tomee plus on remote host.
>
> But I need somehow undeploy it with maven. I tried this (and so many other
> configurations....and read a lot of forums about that with no success)
> I don't understand why doesnt work this. :/ Maybe if you could tell me!?
>
>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>1.6.0</version>
> <executions>
> <execution>
> <phase>install</phase>
> <goals>
> <goal>undeploy</goal>
> </goals>
> <configuration>
> <tomeeVersion>1.6.0</tomeeVersion>
> <tomeeClassifier>plus</tomeeClassifier>
> <tomeeHost>SOMEHOST</tomeeHost>
> <tomeeHttpPort>8080</tomeeHttpPort>
> <path>${project.build.directory}/${project.build.finalName}</path>
> <user>user</user>
> <password>password</password>
> </configuration>
> </execution>
> </executions>
>
> ================================================
>
> I use for run this in eclipse "run as Maven install", and at the end
> eclipse logs "BUILD SUCCES", but the application still on my server.
> I changed goal to "undeploy" and remove "ear" modifier from the end of me
> deployment path (just as I read).
> --
> *Staszny Barnabás*
>
> Rendszerintegrációs szakértő
> Danubius Informatika
> staszny.barnabas@danubiusinfo.hu
> +36 20 2150436
>
> Danubius Expert Zrt.
> 1042 Budapest, Árpád út 67. II. em.