From: Siegfried G. <wd...@us...> - 2005-06-23 15:36:53
|
wdsgoe 05/06/23 08:36:47 Modified: weblogic/xdocs goals.xml properties.xml weblogic plugin.jelly plugin.properties project.properties project.xml Log: Committing the changes from Scott Ryan Revision Changes Path 1.2 +101 -15 maven-plugins/weblogic/xdocs/goals.xml Index: goals.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/weblogic/xdocs/goals.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- goals.xml 28 Oct 2004 10:01:15 -0000 1.1 +++ goals.xml 23 Jun 2005 15:36:46 -0000 1.2 @@ -1,43 +1,129 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> +<?xml version="1.0" encoding="UTF-8"?> + <document> <properties> - <title>Maven WebLogic Plugin Goals</title> - <author email="sie...@it...">Siegfried Goeschl</author> + <title>BEA WebLogic Plug-in Goals</title> </properties> <body> <goals> <goal> - <name>weblogic:info</name> - <description>Print configuration information about the plugin</description> + <name>weblogic:appc</name> + <description>Run appc on an ear</description> + </goal> + <goal> + <name>weblogic:appcwar</name> + <description>Run appc on a war</description> + </goal> + <goal> + <name>weblogic:clusterstart</name> + <description>Start all servers in a cluster</description> + </goal> + <goal> + <name>weblogic:clusterstate</name> + <description>Show the state of the cluster</description> + </goal> + <goal> + <name>weblogic:clusterstop</name> + <description>Stop all servers in a cluster</description> + </goal> + <goal> + <name>weblogic:connect</name> + <description>Connect to a server to test availability</description> </goal> <goal> <name>weblogic:deploy</name> - <description>Deploys an application</description> + <description>Deploys an application EAR</description> </goal> <goal> - <name>weblogic:undeploy</name> - <description>Undeploys an application</description> + <name>weblogic:deploywar</name> + <description>Deploys an application war. When deploying a war we do an upload operation as if the +server was remote. This is to get around an issue where the server will lock the war and you cannot rebuild unless +you restart your server. We noticed this during our cactus debugging.</description> </goal> <goal> - <name>weblogic:safe-undeploy</name> - <description>Undeploys safely an application and ignores any errors</description> + <name>weblogic:deploywip</name> + <description>Deploys an application war in place</description> </goal> <goal> - <name>weblogic:redeploy</name> - <description>Redeploys an application</description> + <name>weblogic:forceshutdown</name> + <description>Force the shutdown of a server</description> + </goal> + <goal> + <name>weblogic:getstate</name> + <description>Output the operational state of a server.</description> + </goal> + <goal> + <name>weblogic:info</name> + <description>Prints the configuration</description> + </goal> + <goal> + <name>weblogic:jnditree</name> + <description>Output the JNDI tree beginning from the node.</description> </goal> <goal> <name>weblogic:listapps</name> <description>List the applications on the server</description> </goal> <goal> + <name>weblogic:prepare-deploy</name> + <description>Hook for deployment</description> + </goal> + <goal> + <name>weblogic:redeploy</name> + <description>Redeploys an application EAR/WAR</description> + </goal> + <goal> + <name>weblogic:remotedeploy</name> + <description>Deploys an application EAR on a remote server</description> + </goal> + <goal> + <name>weblogic:remotedeploywar</name> + <description>Deploys an application war to a remote admin server</description> + </goal> + <goal> + <name>weblogic:serverlog</name> + <description>Output the server log</description> + </goal> + <goal> + <name>weblogic:shutdown</name> + <description>Shutdown a server</description> + </goal> + <goal> <name>weblogic:start</name> - <description>Start an application on the server</description> + <description>Start an application</description> </goal> <goal> <name>weblogic:stop</name> - <description>Stop an application on the server</description> + <description>Stop an application</description> + </goal> + <goal> + <name>weblogic:threaddump</name> + <description>Cause a threaddump to output to standard output of the server.</description> + </goal> + <goal> + <name>weblogic:undeploy</name> + <description>Undeploys an application EAR/WAR</description> + </goal> + <goal> + <name>weblogic:version</name> + <description>Output the version of weblogic on the server</description> + </goal> + <goal> + <name>weblogic:workshopbuild</name> + <description>Build a workshop project.</description> + </goal> + <goal> + <name>weblogic:workshopclean</name> + <description>Clean a workshop project.</description> + </goal> + <goal> + <name>weblogic:workshopdeploy</name> + <description>Deploys the workshop ear to the remote repository</description> + </goal> + <goal> + <name>weblogic:workshopinstall</name> + <description>Install the workshop ear in the local repository</description> </goal> </goals> </body> -</document> +</document> \ No newline at end of file 1.2 +156 -35 maven-plugins/weblogic/xdocs/properties.xml Index: properties.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/weblogic/xdocs/properties.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- properties.xml 28 Oct 2004 10:01:15 -0000 1.1 +++ properties.xml 23 Jun 2005 15:36:46 -0000 1.2 @@ -1,69 +1,190 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<document> +<?xml version="1.0" encoding="UTF-8"?> +<document> <properties> - <title>Maven WebLogic Plug-in Properties</title> - <author email="sie...@it...">Siegfried Goeschl</author> + <title>BEA WebLogic Plug-in Properties</title> </properties> - <body> - <section name="Maven WebLogic Plug-in Properties"> - - <p> - This parameters are used to configure the plugin - </p> - + <section name="BEA WebLogic Plug-in Settings"> <table> - <tr><th>Property</th><th>Optional?</th><th>Default Value</th><th>Description</th></tr> <tr> - <td>maven.weblogic.username</td> - <td>No</td> - <td></td> + <th>Property</th> + <th>Optional?</th> + <th>Description</th> + </tr> + <tr> + <td>maven.weblogic.workshop.server.classpath</td> + <td>Yes</td> <td> - The Administrator username + <p>This is the classpath to the libraries used for weblogic workshop operations. Default value is + <code>${maven.weblogic.javahome}/jre/lib/rt.jar;${maven.weblogic.javahome}/lib/tools.jar;${maven.weblogic.home}/server/lib/knex.jar;${maven.weblogic.home}/common/lib/log4j.jar;${maven.weblogic.home}/server/lib/debugging.jar;${maven.weblogic.home}/javelin/lib/javelin.jar;${maven.weblogic.home}/server/lib/wlw-lang.jar;${maven.weblogic.home}/server/lib/weblogic.jar;${maven.weblogic.home}/common/eval/pointbase/lib/pbserver44.jar;${maven.weblogic.home}/common/eval/pointbase/lib/pbclient44.jar;${maven.weblogic.home}/server/lib/webservices.jar;${maven.weblogic.home}/server/lib/webserviceclient.jar;${maven.weblogic.home}/server/lib/webserviceclient+ssl.jar;${maven.weblogic.home}/server/lib/xbean.jar;${maven.weblogic.home}/server/lib/wlxbean.jar;${maven.weblogic.home}/server/lib/xqrl.jar;${maven.weblogic.home}/server/lib/netui/netui-compiler.jar</code>.</p> </td> </tr> <tr> - <td>maven.weblogic.password</td> - <td>No</td> - <td></td> + <td>maven.weblogic.verbose</td> + <td>Yes</td> <td> - The password of the Administrator user. + <p>A flag to indicate if the Weblogic operations should output verbose informational logging. Default value is + <code>true</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.war.src</td> + <td>Yes</td> + <td> + <p>This is the location of the war file source that is to be deployed when using the wip or war in place option. Default value is + <code>${maven.src.dir}/webapp</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.home</td> + <td>Yes</td> + <td> + <p>This is the location of the BEA Home location. Default value is + <code>/bea/wlserver8.1</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.debug</td> + <td>Yes</td> + <td> + <p>True if debugging information should be displayed during execution of any command. Default value is + <code>true</code>.</p> </td> </tr> <tr> <td>maven.weblogic.targets</td> - <td>No</td> - <td></td> + <td>Yes</td> <td> - A comma-separated list of the target servers and/or cluster names + <p>The target servers seperated by commas that any code is to be deployed to. Default value is + <code>myServer + </code>.</p> </td> </tr> <tr> - <td>maven.weblogic.adminurl</td> - <td>No</td> - <td>http://localhost:7001</td> + <td>maven.weblogic.war</td> + <td>Yes</td> <td> - The URL of the Administration Server + <p>The location of the war file to be deployed. Default value is + <code>${maven.build.dir}/${maven.final.name}.war</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.jndi.node</td> + <td>Yes</td> + <td> + <p>The beginning node to be dumped out when running the command to display the JNDI tree. Default value is + <code> + </code>.</p> </td> </tr> <tr> <td>maven.weblogic.name</td> - <td>No</td> - <td></td> + <td>Yes</td> + <td> + <p>This is the name that is used to deploy an ear or war file to the server. This name will be displayed in the +deployment listing. Default value is + <code>${maven.final.name}</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.ear</td> + <td>Yes</td> + <td> + <p>This is the name of the ear file to deploy. Default value is + <code>${maven.build.dir}/${maven.final.name}.ear</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.workshop.jar.location</td> + <td>Yes</td> + <td> + <p>The location of the weblogic workshop main jar. Default value is + <code>${maven.weblogic.home}/workshop/wlw-ide.jar</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.remote</td> + <td>Yes</td> + <td> + <p>This indicates whether the server to be deployed to is remote or local. Default value is + <code>false</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.javahome</td> + <td>Yes</td> + <td> + <p>The location of the java installation to be used for this plugin. Default value is + <code>${maven.weblogic.home}/../jdk142_05</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.connect.count</td> + <td>Yes</td> + <td> + <p>The number of connections to be attempted during the connect goal. Default value is + <code>10</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.password</td> + <td>Yes</td> + <td> + <p>The password to be used when conducting operations that require authorization. Default value is + <code>weblogic + </code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.shutdown.delay</td> + <td>Yes</td> + <td> + <p>The amount of time to delay before shutting down a server using the shutdown goal. Default value is + <code>0</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.failonerror</td> + <td>Yes</td> + <td> + <p>This flag indicates if any operation should cause other operations to fail if it fails to execute successfully. Default value is + <code>true</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.username</td> + <td>Yes</td> + <td> + <p>The user name to use when running goals that require authorization. Default value is + <code>weblogic</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.adminurl</td> + <td>Yes</td> + <td> + <p>The partial url to the server. This not an http url since some operations require T3. Default value is + <code>localhost:7001</code>.</p> + </td> + </tr> + <tr> + <td>maven.weblogic.ejbc.compiler</td> + <td>Yes</td> <td> - Specifies the deployment name for the application or standalone module + <p>The default ejbc compiler to use. Default value is + <code>jikes</code>.</p> </td> </tr> <tr> - <td>maven.weblogic.source</td> - <td>No</td> - <td>target/${maven.final.name}.ear</td> + <td>maven.weblogic.cluster.name</td> + <td>Yes</td> <td> - Specifies the location of the archive file or exploded archive directory to deploy. + <p>The name of the cluster to use when conducting cluster related operations. Default value is + <code>test</code>.</p> </td> </tr> </table> </section> </body> -</document> +</document> \ No newline at end of file 1.2 +479 -215 maven-plugins/weblogic/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/weblogic/plugin.jelly,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin.jelly 28 Oct 2004 10:01:15 -0000 1.1 +++ plugin.jelly 23 Jun 2005 15:36:46 -0000 1.2 @@ -1,233 +1,497 @@ <?xml version="1.0"?> - -<project - xmlns:j="jelly:core" - xmlns:util="jelly:util" - xmlns:ant="jelly:ant"> - - <path id="weblogic.classpath"> - <pathelement path="${plugin.getDependencyClasspath()}"/> - </path> - - <!-- ================================================================== --> - <!-- W E B L O G I C T A R G E T S --> - <!-- ================================================================== --> - - <goal name="weblogic:info" description="Prints the configuration"> - <echo> - maven.weblogic.adminurl = ${maven.weblogic.adminurl} - maven.weblogic.debug = ${maven.weblogic.debug} - maven.weblogic.name = ${maven.weblogic.name} - maven.weblogic.source = ${maven.build.dir}/${maven.weblogic.source} - maven.weblogic.targets = ${maven.weblogic.targets} - maven.weblogic.username = ${maven.weblogic.username} - maven.weblogic.verbose = ${maven.weblogic.verbose} - maven.weblogic.home = ${maven.weblogic.home} - maven.weblogic.ejbc.compiler = ${maven.weblogic.ejbc.compiler} - maven.weblogic.ejbc.target = ${maven.weblogic.ejbc.target} - maven.weblogic.ejbc.source = ${maven.weblogic.ejbc.source} +<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:license="license" xmlns:util="jelly:util" xmlns:artifact="artifact"> + <path id="weblogic.classpath"> + <pathelement path="${plugin.getDependencyClasspath()}"/> + </path> + <!-- ================================================================== --> + <!-- W E B L O G I C T A R G E T S --> + <!-- ================================================================== --> + <goal name="weblogic:info" description="Prints the configuration"> + <echo> + maven.weblogic.adminurl = ${maven.weblogic.adminurl} + maven.weblogic.debug = ${maven.weblogic.debug} + maven.weblogic.name = ${maven.weblogic.name} + maven.weblogic.ear = ${maven.weblogic.ear} + maven.weblogic.war = ${maven.weblogic.war} + maven.weblogic.war.src = ${maven.weblogic.war.src} + maven.weblogic.targets = ${maven.weblogic.targets} + maven.weblogic.username = ${maven.weblogic.username} + maven.weblogic.password = ${maven.weblogic.password} + maven.weblogic.verbose = ${maven.weblogic.verbose} + maven.weblogic.home = ${maven.weblogic.home} + maven.weblogic.ejbc.compiler = ${maven.weblogic.ejbc.compiler} + maven.weblogic.failonerror = ${maven.weblogic.failonerror} + maven.weblogic.remote = ${maven.weblogic.remote} + maven.weblogic.javahome = ${maven.weblogic.javahome} + maven.weblogic.connect.count = ${maven.weblogic.connect.count} + maven.weblogic.shutdown.delay = ${maven.weblogic.shutdown.delay} + maven.weblogic.jndi.node = ${maven.weblogic.jndi.node} + maven.weblogic.workshop.jar.location = ${maven.weblogic.workshop.jar.location} + maven.weblogic.workshop.server.classpath = ${maven.weblogic.workshop.server.classpath} </echo> - </goal> - - <goal name="weblogic:prepare-deploy" description="Hook for deployment"> - <echo>Preparing deployment</echo> - </goal> - - <goal name="weblogic:deploy" description="Deploys an application"> - <attainGoal name="weblogic:prepare-deploy"/> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-debug"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <arg value="-source"/> - <arg value="${maven.build.dir}/${maven.weblogic.source}"/> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-verbose"/> - <arg value="-deploy"/> - </java> - </goal> - - <goal name="weblogic:undeploy" description="Undeploys an application"> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-debug"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-verbose"/> - <arg value="-undeploy"/> - </java> - </goal> - - <goal name="weblogic:safe-undeploy" description="Undeploys safely an application and ignores any errors"> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="false"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-undeploy"/> - </java> - </goal> - - <goal name="weblogic:redeploy" description="Redeploys an application"> - <attainGoal name="weblogic:prepare-deploy"/> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-debug"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <!--<arg value="-source"/> - <arg value="${maven.build.dir}/${maven.weblogic.source}"/>--> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-verbose"/> - <arg value="-redeploy"/> - </java> - </goal> - - <goal name="weblogic:listapps" description="List the applications on the server"> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-listapps"/> - </java> - </goal> - - <goal name="weblogic:stop" description="Stop an application"> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-stop"/> - </java> - </goal> - - <goal name="weblogic:start" description="Start an application"> - <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-name"/> - <arg value="${maven.weblogic.name}"/> - <arg value="-targets"/> - <arg value="${maven.weblogic.targets}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-start"/> - </java> - </goal> - + </goal> + <goal name="weblogic:prepare-deploy" description="Hook for deployment"> + <echo>Preparing deployment</echo> + </goal> + <goal name="weblogic:deploy" description="Deploys an application EAR"> + <attainGoal name="weblogic:prepare-deploy"/> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-source"/> + <arg value="${maven.weblogic.ear}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-deploy"/> + </java> + </goal> + <goal name="weblogic:remotedeploy" description="Deploys an application EAR on a remote server"> + <attainGoal name="weblogic:prepare-deploy"/> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-upload"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-source"/> + <arg value="${maven.weblogic.ear}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-deploy"/> + <arg value="-upload"/> + </java> + </goal> + <goal name="weblogic:deploywar" description="Deploys an application war"> + <attainGoal name="weblogic:prepare-deploy"/> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-source"/> + <arg value="${maven.weblogic.war}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-deploy"/> + <arg value="-upload"/> + </java> + </goal> + <goal name="weblogic:remotedeploywar" description="Deploys an application war to a remote admin server"> + <attainGoal name="weblogic:prepare-deploy"/> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-upload"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-source"/> + <arg value="${maven.weblogic.war}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-deploy"/> + <arg value="-upload"/> + </java> + </goal> + <goal name="weblogic:deploywip" description="Deploys an application war in place"> + <attainGoal name="weblogic:prepare-deploy"/> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-source"/> + <arg value="${maven.weblogic.war.src}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-deploy"/> + </java> + </goal> + <goal name="weblogic:undeploy" description="Undeploys an application EAR/WAR"> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-undeploy"/> + </java> + </goal> + <goal name="weblogic:redeploy" description="Redeploys an application EAR/WAR"> + <attainGoal name="weblogic:prepare-deploy"/> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-debug"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-verbose"/> + <arg value="-redeploy"/> + <arg value="-upload"/> + </java> + </goal> + <goal name="weblogic:listapps" description="List the applications on the server"> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-listapps"/> + </java> + </goal> + <goal name="weblogic:stop" description="Stop an application"> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-stop"/> + </java> + </goal> + <goal name="weblogic:start" description="Start an application"> + <java classname="weblogic.Deployer" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="http://${maven.weblogic.adminurl}"/> + <arg value="-name"/> + <arg value="${maven.weblogic.name}"/> + <arg value="-targets"/> + <arg value="${maven.weblogic.targets}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-start"/> + </java> + </goal> <goal name="weblogic:shutdown" description="Shutdown a server"> - <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="true"> - <classpath> - <path refid="weblogic.classpath"/> - </classpath> - <arg value="-adminurl"/> - <arg value="${maven.weblogic.adminurl}"/> - <arg value="-username"/> - <arg value="${maven.weblogic.username}"/> - <arg value="-password"/> - <arg value="${maven.weblogic.password}"/> - <arg value="-shutdown"/> - </java> - </goal> - - <goal name="weblogic:ejbc" description="Run ejb compiler"> - <java classname="weblogic.ejbc" fork="yes" failonerror="true"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="-timeout"/> + <arg value="${maven.weblogic.shutdown.delay}"/> + <arg value="SHUTDOWN"/> + </java> + </goal> + <goal name="weblogic:forceshutdown" description="Force the shutdown of a server"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> <classpath> <path refid="weblogic.classpath"/> - <path refid="maven.dependency.classpath"/> - <pathelement path="${maven.build.dir}/classes"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="FORCESHUTDOWN"/> + </java> + </goal> + <goal name="weblogic:threaddump" description="Cause a threaddump to output to standard output of the server."> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="THREAD_DUMP"/> + </java> + </goal> + <goal name="weblogic:clusterstate" description="Show the state of the cluster"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="CLUSTERSTATE"/> + <arg value="-clustername"/> + <arg value="${maven.weblogic.cluster.name}"/> + </java> + </goal> + <goal name="weblogic:clusterstop" description="Stop all servers in a cluster"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="STOPCLUSTER"/> + <arg value="-clustername"/> + <arg value="${maven.weblogic.cluster.name}"/> + </java> + </goal> + <goal name="weblogic:clusterstart" description="Start all servers in a cluster"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="STARTCLUSTER"/> + <arg value="-clustername"/> + <arg value="${maven.weblogic.cluster.name}"/> + </java> + </goal> + <goal name="weblogic:connect" description="Connect to a server to test availability"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="CONNECT"/> + <arg value="${maven.weblogic.connect.count}"/> + </java> + </goal> + <goal name="weblogic:version" description="Output the version of weblogic on the server"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="VERSION"/> + </java> + </goal> + <goal name="weblogic:getstate" description="Output the operational state of a server."> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="false"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="GETSTATE"/> + </java> + </goal> + <goal name="weblogic:jnditree" description="Output the JNDI tree beginning from the node."> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="LIST"/> + <arg value="${maven.weblogic.jndi.node}"/> + </java> + </goal> + <goal name="weblogic:serverlog" description="Output the server log"> + <java classname="weblogic.Admin" fork="yes" dir="${basedir}" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + </classpath> + <arg value="-adminurl"/> + <arg value="${maven.weblogic.adminurl}"/> + <arg value="-username"/> + <arg value="${maven.weblogic.username}"/> + <arg value="-password"/> + <arg value="${maven.weblogic.password}"/> + <arg value="SERVERLOG"/> + </java> + </goal> + <goal name="weblogic:appc" description="Run appc on an ear"> + <java classname="weblogic.appc" fork="yes" failonerror="${maven.weblogic.failonerror}"> + <classpath> + <path refid="weblogic.classpath"/> + <pathelement location="${maven.weblogic.javahome}/lib/tools.jar"/> </classpath> <sysproperty key="weblogic.home" value="${maven.weblogic.home}"/> <arg value="-verbose"/> - <arg value="-compiler"/> - <arg value="${maven.weblogic.ejbc.compiler}"/> - <arg value="-d"/> - <arg value="${maven.weblogic.ejbc.target}"/> - <arg value="${maven.weblogic.ejbc.source}"/> + <arg value="-forceGeneration"/> + <arg value="${maven.weblogic.ear}"/> </java> - <delete file="${maven.weblogic.ejbc.source}"/> </goal> - - <goal name="weblogic:appc" description="Run ejb compiler via appc"> - <java classname="weblogic.appc" fork="yes" failonerror="true"> + <goal name="weblogic:appcwar" description="Run appc on a war"> + <java classname="weblogic.appc" fork="yes" failonerror="${maven.weblogic.failonerror}"> <classpath> <path refid="weblogic.classpath"/> - <path refid="maven.dependency.classpath"/> - <pathelement path="${maven.weblogic.ejbc.source}"/> + <pathelement location="${maven.weblogic.javahome}/lib/tools.jar"/> </classpath> <sysproperty key="weblogic.home" value="${maven.weblogic.home}"/> <arg value="-verbose"/> - <arg value="-compiler"/> - <arg value="${maven.weblogic.ejbc.compiler}"/> - <arg value="-output"/> - <arg value="${maven.weblogic.ejbc.target}"/> - <arg value="${maven.weblogic.ejbc.source}"/> + <arg value="-forceGeneration"/> + <arg value="${maven.weblogic.war}"/> </java> - <delete file="${maven.weblogic.ejbc.source}"/> </goal> - + <!--==================================================================--> + <!-- Builds a weblogic workshop project --> + <!--==================================================================--> + <goal name="weblogic:workshopbuild" description="Build a workshop project."> + <taskdef name="wlwBuild" classname="workshop.core.WlwBuildTask" classpath="${maven.weblogic.workshop.jar.location}"/> + <mkdir dir="${maven.build.dir}"/> + <j:forEach var="lib" items="${pom.artifacts}"> + <j:set var="dep" value="${lib.dependency}"/> + <j:if test="${dep.getProperty('ear.bundle')=='true'}"> + <j:if test="${dep.type =='jar'}"> + <ant:copy todir="${basedir}/APP-INF/lib" file="${lib.path}"/> + </j:if> + </j:if> + <j:if test="${dep.getProperty('war.bundle')=='true'}"> + <j:if test="${dep.type =='jar'}"> + <ant:copy todir="${basedir}/${pom.artifactId}/WEB-INF/lib" file="${lib.path}"/> + </j:if> + <j:if test="${dep.type =='tld'}"> + <ant:copy todir="${basedir}/${pom.artifactId}/WEB-INF/tld" file="${lib.path}"/> + </j:if> + <j:if test="${dep.type =='tldx'}"> + <ant:copy todir="${basedir}/${pom.artifactId}/WEB-INF/tld" file="${lib.path}"/> + </j:if> + </j:if> + </j:forEach> + <wlwBuild work="${pom.artifactId}.work" serverclasspath="${maven.weblogic.workshop.server.classpath}"> + <build outputdir="${maven.build.dir}" outputfilename="${maven.final.name}.ear"/> + </wlwBuild> + </goal> + <!--==================================================================--> + <!-- Cleans a Weblogic workshop project --> + <!--==================================================================--> + <goal name="weblogic:workshopclean" description="Clean a workshop project."> + <taskdef name="wlwBuild" classname="workshop.core.WlwBuildTask" classpath="${maven.weblogic.workshop.jar.location}"/> + <wlwBuild work="${pom.artifactId}.work" operation="clean"/> + <delete dir="APP-INF"/> + <delete dir="META-INF"/> + <delete dir="${pom.artifactId}/WEB-INF/lib"/> + <delete dir="${pom.artifactId}/WEB-INF/classes"/> + <delete dir=".workshop"/> + <delete dir="${maven.build.dir}"/> + <delete> + <fileset dir="." includes="*.log"/> + </delete> + </goal> + <!--==================================================================--> + <!-- Deploys the workshop to the remote repository --> + <!--==================================================================--> + <goal name="weblogic:workshopdeploy" prereqs="workshop:build" description="Deploys the workshop ear to the remote repository"> + <artifact:deploy artifact="${maven.build.dir}/${maven.final.name}.ear" type="ear" project="${pom}"/> + </goal> + <!--==================================================================--> + <!-- Install the ejb in the local repository --> + <!--==================================================================--> + <goal name="weblogic:workshopinstall" prereqs="workshop:build" description="Install the workshop ear in the local repository"> + <artifact:install artifact="${maven.build.dir}/${maven.final.name}.ear" type="ear" project="${pom}"/> + </goal> </project> - 1.2 +18 -9 maven-plugins/weblogic/plugin.properties Index: plugin.properties =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/weblogic/plugin.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin.properties 28 Oct 2004 10:01:15 -0000 1.1 +++ plugin.properties 23 Jun 2005 15:36:46 -0000 1.2 @@ -4,17 +4,26 @@ # BEA WebLogic plugin. # ------------------------------------------------------------------- -maven.weblogic.username= -maven.weblogic.password= -maven.weblogic.targets= +# The Administrative user name used to access the BEA Server +maven.weblogic.username=weblogic +# The Administrative user password used to access the BEA Server +maven.weblogic.password=weblogic +maven.weblogic.targets=myServer maven.weblogic.verbose=true -maven.weblogic.adminurl=http://localhost:7001 +maven.weblogic.adminurl=localhost:7001 maven.weblogic.debug=true -maven.weblogic.name= -maven.weblogic.source=${maven.build.dest}/${maven.final.name}.ear +maven.weblogic.name=${maven.final.name} +maven.weblogic.ear=${maven.build.dir}/${maven.final.name}.ear +maven.weblogic.war=${maven.build.dir}/${maven.final.name}.war +maven.weblogic.war.src=${maven.src.dir}/webapp maven.weblogic.failonerror=true maven.weblogic.remote=false +maven.weblogic.ejbc.compiler=jikes maven.weblogic.home=/bea/wlserver8.1 -maven.weblogic.ejbc.compiler = jikes -maven.weblogic.ejbc.target = target.jar -maven.weblogic.ejbc.source = source.jar +maven.weblogic.javahome=${maven.weblogic.home}/../jdk142_05 +maven.weblogic.connect.count=10 +maven.weblogic.shutdown.delay=0 +maven.weblogic.jndi.node= +maven.weblogic.cluster.name=test +maven.weblogic.workshop.jar.location = ${maven.weblogic.home}/workshop/wlw-ide.jar +maven.weblogic.workshop.server.classpath = ${maven.weblogic.javahome}/jre/lib/rt.jar;${maven.weblogic.javahome}/lib/tools.jar;${maven.weblogic.home}/server/lib/knex.jar;${maven.weblogic.home}/common/lib/log4j.jar;${maven.weblogic.home}/server/lib/debugging.jar;${maven.weblogic.home}/javelin/lib/javelin.jar;${maven.weblogic.home}/server/lib/wlw-lang.jar;${maven.weblogic.home}/server/lib/weblogic.jar;${maven.weblogic.home}/common/eval/pointbase/lib/pbserver44.jar;${maven.weblogic.home}/common/eval/pointbase/lib/pbclient44.jar;${maven.weblogic.home}/server/lib/webservices.jar;${maven.weblogic.home}/server/lib/webserviceclient.jar;${maven.weblogic.home}/server/lib/webserviceclient+ssl.jar;${maven.weblogic.home}/server/lib/xbean.jar;${maven.weblogic.home}/server/lib/wlxbean.jar;${maven.weblogic.home}/server/lib/xqrl.jar;${maven.weblogic.home}/server/lib/netui/netui-compiler.jar \ No newline at end of file 1.2 +0 -0 maven-plugins/weblogic/project.properties 1.2 +20 -11 maven-plugins/weblogic/project.xml Index: project.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/weblogic/project.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- project.xml 28 Oct 2004 10:01:15 -0000 1.1 +++ project.xml 23 Jun 2005 15:36:46 -0000 1.2 @@ -3,22 +3,22 @@ <project> <extend>${basedir}/../plugin-project.xml</extend> <!--pomVersion is in parent --> - <id>maven-webtest-plugin</id> - <name>Canoo WebTest Plug-in</name> + <id>maven-weblogic-plugin</id> + <name>Maven WebLogic Plug-in</name> <!-- groupId is in parent --> - <currentVersion>0.9.1</currentVersion> + <currentVersion>1.0.0</currentVersion> <!-- organization is in parent --> - <inceptionYear>2002</inceptionYear> + <inceptionYear>2004</inceptionYear> <!-- package, logo are in parent. no gumpRepositoryId --> - <description>Maven Plugin for Canoo WebTest</description> - <shortDescription>Maven 1.0 Plugin for Canoo WebTest</shortDescription> + <description>Maven Plugin for BEA WebLogic 8.1</description> + <shortDescription>Maven Plugin for BEA WebLogic 8.1</shortDescription> <!-- issue tracking url, siteAddress are in parent --> - <siteDirectory>/home/groups/m/ma/maven-plugins/htdocs/webtest/</siteDirectory> - <distributionDirectory>/home/groups/m/ma/maven-plugins/htdocs/webtest/distributions/</distributionDirectory> + <siteDirectory>/home/groups/m/ma/maven-plugins/htdocs/weblogic/</siteDirectory> + <distributionDirectory>/home/groups/m/ma/maven-plugins/htdocs/weblogic/distributions/</distributionDirectory> <repository> - <connection>scm:cvs:pserver:ano...@cv...:/cvsroot/maven-plugins:maven-plugins/webtest</connection> - <url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/maven-plugins/maven-plugins/webtest/</url> + <connection>scm:cvs:pserver:ano...@cv...:/cvsroot/maven-plugins:maven-plugins/weblogic</connection> + <url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/maven-plugins/maven-plugins/weblogic/</url> </repository> <versions> @@ -33,12 +33,21 @@ <developer> <name>Siegfried Goeschl</name> <id>wdsgoe</id> - <email>sie...@it...</email> + <email>wdsgoe at users.sourceforge.net</email> <organization>IT20one GmbH</organization> <roles> <role>Software Developer</role> </roles> </developer> + <developer> + <name>Scott Ryan</name> + <id>echoscott</id> + <email>echoscott at users.sourceforge.net</email> + <organization>Soaring Eagle L.L.C</organization> + <roles> + <role>Software Developer</role> + </roles> + </developer> </developers> <dependencies> |