Discussion:
can't stop tomee with maven plugin
mauro2java2011
2018-11-22 13:20:48 UTC
Permalink
Hi all.
I not can stop tomee with command of maven plugin:

tomee:stop
From ide netbeans i get errors.
So i ask : when i use the command of maven :

package tomee:run

I get deployed on tomee the web app and started tomee.
But tomee started with maven plugin remain in running state?

How i can stop it without get any errors ?

Mauro



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-11-22 13:27:01 UTC
Permalink
Hi Mauro:

just type "quit" or "exit" in the console for "run". Stop is intended for
"start" only (as in tomcat).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by mauro2java2011
Hi all.
tomee:stop
From ide netbeans i get errors.
package tomee:run
I get deployed on tomee the web app and started tomee.
But tomee started with maven plugin remain in running state?
How i can stop it without get any errors ?
Mauro
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
mauro2java2011
2018-11-22 13:50:42 UTC
Permalink
Sorry but what you mean with:

Stop is intended for "start" only as in tomcat. ???

From the page

http://tomee.apache.org/tomee-maven-plugin.html
<http://tomee.apache.org/tomee-maven-plugin.html>

Exist the command tomee:stop

Sorry for my confusion



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-11-22 14:13:35 UTC
Permalink
Stop a TomEE started with start command.
means you can use tomee:stop to stop an instance launched with tomee:start.
tomee:run blocks in the contextual shell and is stopped typing "exit" in
the shell (it is a kind of command line interface)

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by mauro2java2011
Stop is intended for "start" only as in tomcat. ???
From the page
http://tomee.apache.org/tomee-maven-plugin.html
<http://tomee.apache.org/tomee-maven-plugin.html>
Exist the command tomee:stop
Sorry for my confusion
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
César Hernández Mendoza
2018-11-22 19:24:46 UTC
Permalink
Hi Mauro,

The options Romain mentioned worked fine on my side, it can be divided into
two groups:

If you start from the command line using: mvn tomee:run
From the same terminal you can do the following options to stop it:

- exit
- quit
- crtl + c


If you start from the command line using: mvn tomee:start
From the same terminal you can do the following option to stop it:

- mvn tomee:stop
Post by Romain Manni-Bucau
Stop a TomEE started with start command.
means you can use tomee:stop to stop an instance launched with tomee:start.
tomee:run blocks in the contextual shell and is stopped typing "exit" in
the shell (it is a kind of command line interface)
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <
https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<
https://www.packtpub.com/application-development/java-ee-8-high-performance
Post by mauro2java2011
Stop is intended for "start" only as in tomcat. ???
From the page
http://tomee.apache.org/tomee-maven-plugin.html
<http://tomee.apache.org/tomee-maven-plugin.html>
Exist the command tomee:stop
Sorry for my confusion
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
--
Atentamente:
César Hernández Mendoza.
Loading...