maven 2 - Hot deployment to GlassFish using cargo-maven2-plugin, how to configure? -
Do I really believe that the Cargo Maven plugin does not support GlassFish 3.x for hot remote deployment? If I am wrong, then how can I configure it to support this type of operation?
Maybe I should use some other plugins? I want to be deployed in "hot" mode, through HTP, in the glassfish of telecommunications.
What I've done so far:
& Lt; Version & gt; 1.4 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Configuration & gt; & Lt; Functions & gt; & Lt; Tempfile property = "ant.temp-ears" deleteonexit = "true" destdir = "/ tmp" /> & Lt; Copy file = "$ {project.build.directory} / $ {project.build.finalName}. $ {Project.packaging}" tofile = "$ {ant.temp-ear}" verbose = "true" /> & Lt; Exec executable = "$ {glassfish.home} / glassfish / bin / asadmin" failonerror = "true" & gt; & Lt; Arg value = "- user = $ {glassfish.username}" /> & Lt; Arg value = "- passwordfile = $ {glassfish.passwordfile}" /> & Lt; Arg value = "- interactive = false" /> & Lt; Arg value = "- host = $ {glassfish.host}" /> & Lt; Arg value = "- port = $ {glassfish.adminport}" /> & Lt; Arg value = "deployed" /> & Lt; Arg value = "- force" /> & Lt; Arg value = "- name = $ {project.artifactId}" /> & Lt; Arg value = "$ {ant.temp-ear}" /> & Lt; / Executive & gt; & Lt; / Functions & gt; & Lt; / Configuration & gt; & Lt; Goals & gt; & Lt; Goal & gt; Run & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; / Plugin & gt;
works perfectly, but the asadmin
(and the whole glassfish, I believe) must be installed on the same machine where mvn
is executed.
Is it possible to do the same thing with the cargo plugin?
Comments
Post a Comment