Thread:
 making plugin installation automatic 
 caoilte   23 Dec 2004, 12:05 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: caoilte (23 Dec 2004, 12:05) Replies: 0, Views: 38797
Subject: making plugin installation automatic
To make maven bootstrap its hibernatedoclet build (I mean that's why 
you use it) put the following into your maven.xml file. 
 
{{{<preGoal name="java:compile"> 
    <j:set var="groupId" value="xdoclet"/> 
    <j:set var="artifactId" value="maven-xdoclet-plugin"/> 
    <j:set var="version" value="1.2"/> 
    <attainGoal name="plugin:download-artifact"/> 
    <m:installPlugin 
file="${maven.repo.local}/${groupId}/plugins/${artifactId}-${version}.jar" 
cache="true" /> 
 
    <attainGoal name="xdoclet:hibernatedoclet"/> 
  </preGoal>}}} 
 
This will make maven install the xdoclet plugin if it isn't already 
and allows your build to work straight out of the (repository) box.  
 
NB I use 1.2.2 but that isn't in the iblibio repository (yet) so if 
you want to too you'll need to make your own repository.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]