open up the andromdapp plugin jar in your local maven repo, browse into the /plugin-resources/andromdapp/templates/j2ee-app
and replace the maven.xml.vsl templates with the following code (I tested it and it works but I don't trust it since it seems to be missing a taglib import, and I don't know why it's missing - I can't check from work, so if it doesn't work add this on top of the file: xmlns:i="jelly:interaction") <project default="install" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven" xmlns:j="jelly:core" xmlns:util="jelly:util"> <ant:property environment="env"/> <!-- ================================================================== Builds everything and installs it into the local Maven repository ================================================================== --> <goal name="install"> <attainGoal name="multiproject:install"/> </goal> <!-- ================================================================== Cleans Everything ================================================================== --> <goal name="clean"> <attainGoal name="multiproject:clean"/> <!-- get rid of all the log files --> <ant:delete> <ant:fileset dir="."> <ant:include name="**/*.log*"/> <ant:exclude name="maven.log"/> <ant:exclude name="**/*andromda*.log"/> </ant:fileset> </ant:delete> </goal> <!-- ================================================================== Cleans Everything and deletes all implementation classes ================================================================== --> <goal name="nuke"> <i:ask question="This will also clean out all implementation classes, are you sure (y/n) ?" answer="nukeit"/> <j:choose> #set ($test = "nukeit eq 'y'") <j:when test="${${test}}"> <ant:echo>Nuking source code...</ant:echo> <attainGoal name="clean"/> <ant:delete> <fileset dir="common/src/java"> <include name="**/*Impl.java"/> </fileset> <fileset dir="core/src/java"> <include name="**/*Impl.java"/> </fileset> <fileset dir="web/src/java"> <include name="**/*Impl.java"/> </fileset> </ant:delete> <ant:echo>Finished nuke.</ant:echo> </j:when> <j:otherwise> <ant:echo>Nuke was canceled by user.</ant:echo> </j:otherwise> </j:choose> </goal> #set ($appModule = "app") #if ($war) #set ($appModule = "web") #end <!-- ================================================================== Deploy the Application ================================================================== --> <goal name="deploy"> <maven:maven descriptor="${appModule}/project.xml" goals="deploy"/> </goal> <!-- ================================================================== Undeploy the Application ================================================================== --> <goal name="undeploy"> <maven:maven descriptor="${appModule}/project.xml" goals="undeploy"/> </goal> #if ($web) <!-- ================================================================== Builds the Web component ================================================================== --> <goal name="web"> <maven:maven descriptor="web/project.xml" goals="war:install"/> </goal> #end <!-- ================================================================== Builds the Core component ================================================================== --> <goal name="core"> <maven:maven descriptor="core/project.xml" goals="ejb:install"/> </goal> <!-- ================================================================== Builds the Common component ================================================================== --> <goal name="common"> <maven:maven descriptor="common/project.xml" goals="jar:install"/> </goal> <!-- ================================================================== Runs the MDA component ================================================================== --> <goal name="mda"> <maven:maven descriptor="mda/project.xml" goals="pom:install"/> </goal> <!-- ================================================================== Starts the AndroMDA server ================================================================== --> <goal name="start-andromda-server"> <maven:maven descriptor="mda/project.xml" goals="andromda:start-server"/> </goal> <!-- ================================================================== Stops the AndroMDA server ================================================================== --> <goal name="stop-andromda-server"> <maven:maven descriptor="mda/project.xml" goals="andromda:stop-server"/> </goal> #if ($webservice) <!-- ================================================================== Builds the WebService component ================================================================== --> <goal name="webservice"> <maven:maven descriptor="webservice/project.xml" goals="war:install"/> </goal> #end <!-- ============================================================ Initializes the database schema for this application ============================================================ --> <goal name="create-schema"> <j:set var="script" value="${dataSource.sql.init}"/> <attainGoal name="execute-script"/> </goal> <!-- ============================================================ Drops the database schema for this application ============================================================ --> <goal name="drop-schema"> <j:set var="script" value="${dataSource.sql.drop}"/> <attainGoal name="execute-script"/> </goal> <goal name="load-dummy-data"> <j:set var="script" value="${dataSource.sql.load}"/> <attainGoal name="execute-script"/> </goal> <j:set var="generatedSourceDir" value="${maven.build.dir}"/> <ant:available file="${maven.build.src}" type="dir" property="generatedSrcAvailable"/> <!-- ============================================================ Adds the generated source to the compile path for each subproject (if any exists) ============================================================ --> <preGoal name="java:compile"> <!-- only attempt to add the generated source to the classpath if we have a source directory --> <j:set var="sourceDirectory" value="${pom.build.sourceDirectory}"/> <j:if test="${!empty sourceDirectory}"> <j:if test="${generatedSrcAvailable}"> <ant:available file="${sourceDirectory}" type="dir" property="srcAvailable"/> <j:choose> <j:when test="${srcAvailable}"> <!-- add the paths of the generated source to the maven compile path --> <ant:path id="andromda.java.gen.src" location="${generatedSourceDir}"/> <maven:addPath id="maven.compile.src.set" refid="andromda.java.gen.src"/> </j:when> <j:otherwise> <ant:path id="maven.compile.src.set"> <!-- need to set sources present to true since maven thinks no source exist if the directory specified by pom.build.sourceDirectory doesn't exist --> <j:set var="sourcesPresent" value="true"/> <ant:pathelement location="${generatedSourceDir}"/> </ant:path> </j:otherwise> </j:choose> </j:if> </j:if> </preGoal> <!-- ============================================================ Executes the given DDL script ============================================================ --> <goal name="execute-script"> #set ($condition = '${script != null}') <j:if test="$condition"> <util:file var="scriptFile" name="${script}"/> <j:if test="${scriptFile.exists()}"> <ant:sql driver="${dataSource.driver.class}" src="${scriptFile}" url="${dataSource.url}" userid="${dataSource.user}" password="${dataSource.password}" onerror="${dataSource.sql.onError}"> <ant:classpath> <ant:pathelement location="${dataSource.driver.jar}"/> </ant:classpath> </ant:sql> </j:if> </j:if> </goal> </project> -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1504#1504 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user