I'm trying to make sure out application automatically upates maven to plugin aspectj 3.2 but I've found my current solution to be error prone - producing cache problems. Anyone have a robust solution?

   <preGoal name="java:compile" >
       <j:set var="droolsAspects" value="${drools.aspects}"/>

       <j:if test="${droolsAspects != null}">
                                                <attainGoal name="update-aspect"/>
           <util:tokenize var="tokens" delim="," 
trim="true">${droolsAspects}</util:tokenize>

           <j:forEach var="token" items="${tokens}">
             <j:set var="mavenAspects" 
value="${mavenAspects},src/aspects/conf/${token.trim()}.lst"/>
           </j:forEach>

           <j:if test="${mavenAspects != ''}">
              <j:set var="maven.aspectj.argfiles" value="${mavenAspects}" />

              <attainGoal name="aspectj:compile"/>
           </j:if>
       </j:if>

   </preGoal>

   <goal name="update-aspect">
       <j:set var="groupId" value="maven" />
       <j:set var="artifactId" value="maven-aspectj-plugin" />
       <j:set var="version" value="3.2" />
       <attainGoal name="plugin:download" />
   </goal>
------------------------------
D:\java\workspaces\drools\drools-core>maven -Dmaven.test.skip -Ddrools.aspects=e
vent clean jar:install
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Plugin 'maven-deploy-plugin' in project 'Drools :: Rete-OO Core' is not availabl
e
build:start:

clean:clean:
   [delete] Deleting directory D:\java\workspaces\drools\drools-core\target

clean:

java:prepare-filesystem:
   [mkdir] Created dir: D:\java\workspaces\drools\drools-core\target\classes
Plugin 'maven-deploy-plugin' in project 'Drools :: Rete-OO Core' is not availabl
e

java:compile:
update-aspect:
plugin:download-artifact:
   [mkdir] Created dir: D:\Documents and Settings\mproctor\.maven\repository\ma
ven\plugins
   [echo] repo is 'http://www.ibiblio.org/maven/'
   [echo] trying to download http://www.ibiblio.org/maven//maven/plugins/maven-
aspectj-plugin-3.2.jar
10K downloaded

plugin:download:
   [delete] Deleting 1 files from D:\java\Maven1.0\plugins
   [delete] D:\Documents and Settings\mproctor\.maven\plugins not found.
   [delete] Deleting 7 files from D:\Documents and Settings\mproctor\.maven\cac
he
   [delete] Deleted 2 directories from D:\Documents and Settings\mproctor\.mave
n\cache
   [copy] Copying 1 file to D:\java\Maven1.0\plugins

BUILD FAILED
File...... D:\java\workspaces\drools\drools-core\maven.xml
Element... attainGoal
Line...... 33
Column.... 52
Error parsing project.xml 'D:\Documents and Settings\mproctor\.maven\cache\maven
-aspectj-plugin-3.2-SNAPSHOT\project.xml'
Total time: 4 seconds
Finished at: Mon Oct 11 17:32:07 CEST 2004

D:\java\workspaces\drools\drools-core>maven -Dmaven.test.skip -Ddrools.aspects=e
vent clean jar:install
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

plugin maven-aspectj-plugin-3.2-SNAPSHOT is cached (goal) but no longer present
Cache invalidated due to out of date plugins
Plugin 'maven-deploy-plugin' in project 'Drools :: Rete-OO Core' is not availabl
e
build:start:

clean:clean:
   [delete] Deleting directory D:\java\workspaces\drools\drools-core\target

clean:

java:prepare-filesystem:
   [mkdir] Created dir: D:\java\workspaces\drools\drools-core\target\classes
Plugin 'maven-deploy-plugin' in project 'Drools :: Rete-OO Core' is not availabl
e

java:compile:
update-aspect:
plugin:download-artifact:

plugin:download:
   [delete] Deleting 1 files from D:\java\Maven1.0\plugins
   [delete] D:\Documents and Settings\mproctor\.maven\plugins not found.
   [delete] Deleting 7 files from D:\Documents and Settings\mproctor\.maven\cac
he
   [delete] Deleted 2 directories from D:\Documents and Settings\mproctor\.mave
n\cache
   [copy] Copying 1 file to D:\java\Maven1.0\plugins

BUILD FAILED
File...... D:\java\workspaces\drools\drools-core\maven.xml
Element... attainGoal
Line...... 33
Column.... 52
D:\Documents and Settings\mproctor\.maven\cache\maven-aspectj-plugin-3.2\plugin.
jelly (The system cannot find the path specified)
Total time: 8 seconds
Finished at: Mon Oct 11 17:32:58 CEST 2004

D:\java\workspaces\drools\drools-core>



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



Reply via email to