You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by vm...@apache.org on 2003/04/14 19:12:41 UTC

cvs commit: maven/src/plugins-build/jboss/sample maven.xml

vmassol     2003/04/14 10:12:41

  Modified:    src/plugins-build/jboss/xdocs goals.xml changes.xml
               src/plugins-build/jboss plugin.jelly
               src/plugins-build/jboss/sample maven.xml
  Log:
        <action dev="vmassol" type="update">
          Allowed deployments of EAR, WAR or EJB-JAR (only EAR was previously 
          supported) by adding the <code>jboss:package-ear</code>, 
          <code>jboss:package-ejb</code> and <code>jboss:package-war</code>
          goals. The <code>jboss:package</code> goal has been renamed
          <code>jboss:configure</code> and now simply creates a 
          custom JBoss server configuration (with nothing from the project 
          deployed in it).        
        </action>
  
  Revision  Changes    Path
  1.2       +23 -3     maven/src/plugins-build/jboss/xdocs/goals.xml
  
  Index: goals.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/xdocs/goals.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- goals.xml	8 Apr 2003 14:39:52 -0000	1.1
  +++ goals.xml	14 Apr 2003 17:12:41 -0000	1.2
  @@ -8,10 +8,30 @@
     <body>
       <goals>
         <goal>
  -        <name>jboss:package</name>
  +        <name>jboss:configure</name>
           <description>
  -          Creates a JBoss server configuration directory structure, packaging
  -          the application EAR in it.
  +          Creates a custom JBoss server configuration directory structure.
  +        </description>
  +      </goal>
  +      <goal>
  +        <name>jboss:package-ear</name>
  +        <description>
  +          Creates a custom JBoss server configuration directory structure
  +          and deploys an EAR in it.
  +        </description>
  +      </goal>
  +      <goal>
  +        <name>jboss:package-ejb</name>
  +        <description>
  +          Creates a custom JBoss server configuration directory structure
  +          and deploys an EJB-JAR in it.
  +        </description>
  +      </goal>
  +      <goal>
  +        <name>jboss:package-war</name>
  +        <description>
  +          Creates a custom JBoss server configuration directory structure
  +          and deploys a WAR in it.
           </description>
         </goal>
         <goal>
  
  
  
  1.5       +9 -0      maven/src/plugins-build/jboss/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/xdocs/changes.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- changes.xml	13 Apr 2003 10:24:12 -0000	1.4
  +++ changes.xml	14 Apr 2003 17:12:41 -0000	1.5
  @@ -8,6 +8,15 @@
     <body>
   
       <release version="1.1" date="in CVS">
  +      <action dev="vmassol" type="update">
  +        Allowed deployments of EAR, WAR or EJB-JAR (only EAR was previously 
  +        supported) by adding the <code>jboss:package-ear</code>, 
  +        <code>jboss:package-ejb</code> and <code>jboss:package-war</code>
  +        goals. The <code>jboss:package</code> goal has been renamed
  +        <code>jboss:configure</code> and now simply creates a 
  +        custom JBoss server configuration (with nothing from the project 
  +        deployed in it).        
  +      </action>
         <action dev="vmassol" type="add" due-to="James Johnson" due-to-email="jcej@tragus.org">
           Added deploy/undeploy targets for jar/war/ear using JBoss' jmx console.
         </action>
  
  
  
  1.6       +57 -9     maven/src/plugins-build/jboss/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/plugin.jelly,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- plugin.jelly	13 Apr 2003 10:41:02 -0000	1.5
  +++ plugin.jelly	14 Apr 2003 17:12:41 -0000	1.6
  @@ -19,7 +19,7 @@
     -->
     <goal name="jboss" 
       description="Creates a specific JBoss server configuration"
  -    prereqs="jboss:package"/>
  +    prereqs="jboss:configure"/>
   
     <!--
        ========================================================================
  @@ -50,17 +50,12 @@
   
     <!--
        ========================================================================
  -       Creates a JBoss server configuration directory structure, packaging
  -       the application EAR in it.
  +       Creates a custom JBoss server configuration directory structure.
        ========================================================================
     -->
  -  <goal name="jboss:package" 
  +  <goal name="jboss:configure" 
       description="Creates a specific JBoss server configuration"
  -    prereqs="ear:ear,jboss:init">
  -
  -    <!-- Copy the EAR to install to the JBoss deploy dir. -->
  -    <copy file="${maven.build.dir}/${maven.final.name}.ear"
  -      todir="${maven.jboss.build.deploy.dir}"/>
  +    prereqs="jboss:init">
   
       <!-- Copy the JBoss jars from an existing JBoss default server
            configuration to our specific configuration -->
  @@ -121,6 +116,59 @@
   
     </goal>
   
  +  <!--
  +     ========================================================================
  +       Creates a custom JBoss server configuration directory structure,
  +       packaging an EAR in it.
  +     ========================================================================
  +  -->
  +  <goal name="jboss:package-ear" 
  +    description="Creates a specific JBoss server configuration (with EAR)"
  +    prereqs="jboss:init,ear:ear,jboss:configure">
  +
  +    <!-- Copy the EAR to install to the JBoss deploy dir. -->
  +    <copy file="${maven.build.dir}/${maven.final.name}.ear"
  +      todir="${maven.jboss.build.deploy.dir}"/>
  +
  +  </goal>
  +
  +  <!--
  +     ========================================================================
  +       Creates a custom JBoss server configuration directory structure,
  +       packaging a WAR in it.
  +     ========================================================================
  +  -->
  +  <goal name="jboss:package-war" 
  +    description="Creates a specific JBoss server configuration (with WAR)"
  +    prereqs="jboss:init,war:war,jboss:configure">
  +
  +    <j:set var="warBuildDir"
  +      value="${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.build.dir')}"/>
  +    <j:set var="warFinalName"
  +      value="${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.final.name')}"/>
  +
  +    <!-- Copy the WAR to install to the JBoss deploy dir. -->
  +    <copy file="${warBuildDir}/${warFinalName}"
  +      todir="${maven.jboss.build.deploy.dir}"/>
  +
  +  </goal>
  +
  +  <!--
  +     ========================================================================
  +       Creates a custom JBoss server configuration directory structure,
  +       packaging an EJB-JAR in it.
  +     ========================================================================
  +  -->
  +  <goal name="jboss:package-ejb" 
  +    description="Creates a specific JBoss server configuration (with EJB-JAR)"
  +    prereqs="jboss:init,ejb:ejb,jboss:configure">
  +
  +    <!-- Copy the EJB-JAR to install to the JBoss deploy dir. -->
  +    <copy file="${maven.build.dir}/${maven.final.name}.jar"
  +      todir="${maven.jboss.build.deploy.dir}"/>
  +
  +  </goal>
  +  
     <!--
        ========================================================================
          Start JBoss using our specific server configuration.
  
  
  
  1.2       +1 -1      maven/src/plugins-build/jboss/sample/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jboss/sample/maven.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- maven.xml	8 Apr 2003 14:39:52 -0000	1.1
  +++ maven.xml	14 Apr 2003 17:12:41 -0000	1.2
  @@ -5,7 +5,7 @@
   -->
   <project>
   
  -  <preGoal name="jboss:package">
  +  <preGoal name="jboss:configure">
       <copy todir="target/appconf">
         <fileset dir="conf/${env.name}/application"/>
       </copy>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org