weaver      2004/07/28 06:29:52

  Modified:    maven-plugin maven.xml
  Log:
  Added logic to emulate the old deploy/undeploy logic of previous maven versions.  
This helps keep maven from getting "confused".
  
  Revision  Changes    Path
  1.8       +12 -3     jakarta-jetspeed-2/maven-plugin/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/maven-plugin/maven.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- maven.xml 22 Jul 2004 13:57:12 -0000      1.7
  +++ maven.xml 28 Jul 2004 13:29:52 -0000      1.8
  @@ -33,19 +33,28 @@
   
    
     <goal name="deploy-plugin">
  +     <attainGoal name="undeploy-plugin" />
  +     
        <!-- install will do the uninstall if needed for us -->
  -    <attainGoal name="plugin:install"/>
  +    <attainGoal name="plugin:install"/> 
       <!-- get the plugin available now (like with plugin:install-now, but which 
doesn't install).
            Bug: If a new version of the plugin is deployed while an older version is 
available
                 maven gets very confused... Haven't found a workaround for that.
       -->
  -    <maven:uninstallPlugin artifactId="${pom.artifactId}" />
  -    <maven:installPlugin file="${maven.build.dir}/${maven.final.name}.jar" 
cache="true" />
  +    
       <!-- deploy the plugin to the local repository directly: 
            using the plugin:repository-install goal would lead to another build of 
the jar as all plugin goals do that as 
            prereq
       -->    
  +    <maven:installPlugin file="${maven.build.dir}/${maven.final.name}.jar" 
cache="true" />
       <artifact:install artifact="${maven.build.dir}/${maven.final.name}.jar" 
type="plugin" project="${pom}"/>
  +    <unjar src="${maven.build.dir}/${maven.final.name}.jar" 
dest="${maven.home.local}/plugins/${maven.final.name}" overwrite="true" />
  +
  +  </goal>
  +  
  +  <goal name="undeploy-plugin">
  +     <attainGoal name="plugin:uninstall-now" />
  +     <delete dir="${maven.home.local}/plugins/${maven.final.name}" verbose="true" 
/>  
     </goal>
   
      <goal name="copyDb">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to