jvanzyl     2003/01/27 20:26:31

  Modified:    src/plugins-build/plexus plugin.jelly
  Log:
  o Updating plexus plugin to work with artifacts from the central repo.
  
  Revision  Changes    Path
  1.2       +17 -13    jakarta-turbine-maven/src/plugins-build/plexus/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/plexus/plugin.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- plugin.jelly      24 Jan 2003 03:45:48 -0000      1.1
  +++ plugin.jelly      28 Jan 2003 04:26:30 -0000      1.2
  @@ -57,12 +57,14 @@
        | the required information about Plexus.
        |
        -->
  -    <maven:pom projectDescriptor="${plugin.dir}/plexus.pom" var="plexusPom"/>
  +    
  +    <maven:pom 
  +      projectDescriptor="${maven.repo.local}/plexus/poms/plexus-0.2.pom"
  +      var="plexusPom"/>
   
       <get 
         
src="http://www.ibiblio.org/maven/plexus/jars/${plexusPom.artifactId}-${plexusPom.currentVersion}.jar";
  -      
dest="${maven.plexus.lib}/${plexusPom.artifactId}-${plexusPom.currentVersion}.jar"
  -    />
  +      
dest="${maven.plexus.lib}/${plexusPom.artifactId}-${plexusPom.currentVersion}.jar"/>
   
       <!--
        |
  @@ -76,11 +78,11 @@
       ${plexusPom.verifyDependencies()}
       
       <!-- Copy the plexus dependencies into the runtime lib/. -->
  +    
       <deploy:copy-deps 
         projectDescriptor="${plugin.dir}/plexus.pom"
         todir="${maven.plexus.lib}"
  -      excludes="junit"
  -    />
  +      excludes="junit"/>
       
       <!-- Create the classworlds configuration. -->
       <attainGoal name="classworlds-configuration"/>
  @@ -90,7 +92,10 @@
       
       <attainGoal name="plexus:find-components"/>
       
  -    <copy file="${conf}" tofile="${maven.plexus.conf}/plexus.conf" 
overwrite="true"/>
  +    <copy 
  +      file="${conf}" 
  +      tofile="${maven.plexus.conf}/plexus.conf" 
  +      overwrite="true"/>
       
       <delete>
         <fileset dir="${maven.plexus.appLib}">
  @@ -107,14 +112,14 @@
     <!-- ===================================================================== -->
   
     <goal name="plexus:find-components">
  -    <plexus:find-roles var="roles" configuration="${conf}"/>
  +    <plexus:find-implementations var="implementations" configuration="${conf}"/>
       
       <util:properties uri="file:${plugin.dir}/components.list" var="components"/>
       <j:set var="pomDir" value="tmpPoms"/>
       <mkdir dir="${pomDir}"/>
        
  -    <j:forEach var="role" items="${roles}">
  -      <j:set var="component" value="${components.getProperty(role)}"/>
  +    <j:forEach var="implementation" items="${implementations}">
  +      <j:set var="component" value="${components.getProperty(implementation)}"/>
         <j:if test="${component != ''}">
           <get 
             src="http://www.ibiblio.org/maven/plexus/poms/${component}.pom";
  @@ -140,16 +145,15 @@
   
         <get 
           
src="http://www.ibiblio.org/maven/plexus/jars/${depPom.artifactId}-${depPom.currentVersion}.jar";
  -        
dest="${maven.plexus.components}/${depPom.artifactId}-${depPom.currentVersion}.jar"
  -      />
  +        
dest="${maven.plexus.components}/${depPom.artifactId}-${depPom.currentVersion}.jar"/>
   
         ${depPom.verifyDependencys()}
         
         <deploy:copy-deps 
           projectDescriptor="${depPomFile}"
           todir="${maven.plexus.appLib}"
  -        excludes="junit"
  -      />
  +        excludes="junit"/>
  +        
       </j:forEach>
       
       <delete dir="${pomDir}"/>
  
  
  

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

Reply via email to