Speedo user manual: Integration with Maven

 FinalLogo.jpg
 FinalLogo.jpg
  1. What is Maven ?
  2. Integrating Speedo with Maven

Back to the Speedo documentation



  1. What is Maven ?
  2. Description

    Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. For more information see the maven web site.



  3. Integrating Speedo with Maven
  4. First you have to integrate the speedo plugin into maven. Second you have to write a maven.xml file with the following content:

    <project default="war:webapp"
    	xmlns:j="jelly:core"
    	xmlns:m="maven"
    	xmlns:deploy="deploy"
    	xmlns:ant="jelly:ant">
    	<!-- Postgoal in charge of the persistent classes enhancement by 
    		 Speedo -->
    	<postGoal name="java:compile">
    		<ant:echo>JDO enhancement with Speedo</ant:echo>
    		<attainGoal name="speedo:enhance"/>
    	</postGoal>  
    </project>

    Property Name Description Optional ?
    maven.speedo.jar The location of the Speedo jar file No
    maven.speedo.src.dir The location of the source of the persistent classes No
    maven.speedo.output.dir The build target of the persistent classes No
    maven.speedo.jdofiles.dir Location of JDO files: root directory Yes
    maven.speedo.jdofiles.include Location of JDO files: files to include Yes
    maven.speedo.jdofiles.exclude Location of JDO files: files to exclude Yes
    maven.speedo.configurationfiles.dir Speedo configuration files directory No
    maven.speedo.database.driver JDBC driver class name Yes
    maven.speedo.database.url URL of the database (JDBC configuration) Yes
    maven.speedo.database.user User of the database (JDBC configuration) Yes
    maven.speedo.database.password user password of the database (JDBC configuration) Yes