Sadly I had only reached about a 100 lines into the how-to androMDA before running into problems. I was not able to download the mavenplugin (which is AndroMDA).
So when the tutorial (link) wrote the following
To install the C# Application plugin open a Command Prompt and Execute the following command. Make sure you get a "BUILD SUCCESSFUL" message at the end of the command output.
maven plugin:download -DgroupId=andromda -DartifactId=maven-andromdacsapp-plugin -Dversion=1.0-SNAPSHOT
Notice that you will now have maven-andromdacsapp-plugin-1.0-SNAPSHOT.jar installed at MAVEN_HOME\plugins ( C:\Program Files\Apache Software Foundation\Maven 1.0.2\plugins for this example).
I just got a lot of errors instead of actually downloading anything. Luckily I wasnt the first one to have this problem, to after a bit of search I found the following solution (link)
After a long fight with maven, I found a solution to the problem.
Maven 1.x doesn't support redirection thus we must indicate a non redirected repository. So in build.properties :
maven.repo.remote=http://www.ibiblio.org/maven,http://team.andromda.org/maven
become
maven.repo.remote=http://repo1.maven.org/maven,http://team.andromda.org/maven
and a valid command line is :
maven plugin:download -DartifactId=maven-torque-plugin -DgroupId=torque -Dversion=3.3-RC1
if you try to use an other apache's server, it seems that jsch isn't created. [neria]
Joy and happiness, now I can continue, my androMDA tutorial, and actually download androMDA, with the following command:
maven plugin:download -DgroupId=andromda -DartifactId=maven-andromdacsapp-plugin -Dversion=1.0-SNAPSHOT
No comments:
Post a Comment