Monday, June 04, 2007

Installing AndroMDA plugin for Maven 2

  1. Click here to download the the AndroMDA plugin installer.
  2. Unzip the contents of the installer into your Maven repository at C:\Documents and Settings\your user name\.m2\repository.
  3. Verify that the following directory was created:
    C:\Documents and Settings\your user name\.m2\repository\org\andromda\maven\plugins\andromda-maven-plugin
  4. Create a temporary directory, e.g. C:\andromda-temp.
  5. Create a file called pom.xml in this directory with the following content.

  6. <project>



    <name>AndroMDA Repository</name>

    <name>AndroMDA Repository</name>

  7. Open a Command Prompt in the directory where you created this pom.xml and run the command mvn without any arguments. Make sure the command completes successfully by displaying the BUILD SUCCESSFUL message.
  8. You can now delete the temporary directory you created in step 1.
  9. use maven 2.0.5 or 2.0.4. i was getting following error with 2.0.6, see andromda forum topic for details. You get "An invalid artifact was detected." error with maven 2.0.6
  10. Use following command to generate the project:
mvn org.andromda.maven.plugins:andromdapp-maven-plugin:generate

instead of

mvn andromdapp:generate

1 comment:

asma-tunisie said...

thank u veryyyyyyyyyyyyyy much
it works :))))))