If you want to go this way ill detail it later but why not using run goal?
Start + deploy is harder for a poor gain in your case
Le 3 déc. 2015 23:14, "MarkD" <[email protected]> a écrit :

> Ok, I have the plugin working. tomee:start gets the app running, however, I
> still have issues with the path for deploy and undeploy.
>
> I am using
>
> <path>C:\Users\Mark\Documents\Dev\Gen\test\untitled\target\untitled-1.0-SNAPSHOT.war</path>
>
>
> The following output is given:
>
> "C:\Program Files (x86)\Java\jdk1.8.0_66\bin\java" "-Dmaven.home=C:\Program
> Files (x86)\JetBrains\IntelliJ IDEA 15.0\plugins\maven\lib\maven3"
> "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA
> 15.0\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7533
> "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA
> 15.0\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files
> (x86)\JetBrains\IntelliJ IDEA
> 15.0\plugins\maven\lib\maven3\boot\plexus-classworlds-2.4.jar;C:\Program
> Files (x86)\JetBrains\IntelliJ IDEA 15.0\lib\idea_rt.jar"
> com.intellij.rt.execution.application.AppMain
> org.codehaus.classworlds.Launcher -Didea.version=15.0.1 tomee:undeploy -e
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building untitled 1.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- tomee-maven-plugin:1.7.2:undeploy (default-cli) @ untitled ---
> Dec 03, 2015 10:08:29 PM org.apache.openejb.client.EventLogger log
> INFO:
> RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb}
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2.262s
> [INFO] Finished at: Thu Dec 03 22:08:29 GMT 2015
> [INFO] Final Memory: 8M/19M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.openejb.maven:tomee-maven-plugin:1.7.2:undeploy (default-cli) on
> project untitled: Execution default-cli of goal
> org.apache.openejb.maven:tomee-maven-plugin:1.7.2:undeploy failed:
> /openejb/DeployerBusinessRemote does not exist in the system.  Check that
> the app was successfully deployed. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.openejb.maven:tomee-maven-plugin:1.7.2:undeploy
> (default-cli) on project untitled: Execution default-cli of goal
> org.apache.openejb.maven:tomee-maven-plugin:1.7.2:undeploy failed:
> /openejb/DeployerBusinessRemote does not exist in the system.  Check that
> the app was successfully deployed.
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-cli of goal
> org.apache.openejb.maven:tomee-maven-plugin:1.7.2:undeploy failed:
> /openejb/DeployerBusinessRemote does not exist in the system.  Check that
> the app was successfully deployed.
>         at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         ... 25 more
> Caused by: org.apache.openejb.maven.plugin.TomEEException:
> /openejb/DeployerBusinessRemote does not exist in the system.  Check that
> the app was successfully deployed.
>         at
>
> org.apache.openejb.maven.plugin.AbstractCommandMojo.lookup(AbstractCommandMojo.java:42)
>         at
> org.apache.openejb.maven.plugin.UnDeployMojo.execute(UnDeployMojo.java:37)
>         at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         ... 26 more
> Caused by: javax.naming.NameNotFoundException:
> /openejb/DeployerBusinessRemote does not exist in the system.  Check that
> the app was successfully deployed.
>         at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:452)
>         at javax.naming.InitialContext.lookup(InitialContext.java:417)
>         at
>
> org.apache.openejb.maven.plugin.AbstractCommandMojo.lookup(AbstractCommandMojo.java:40)
>         ... 28 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>
> Process finished with exit code 1
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/maven-plugin-error-tp4677110p4677128.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to