Guys,

I refactored the way bootstrap dependencies are handled when building
AndroMDA. It was pretty complicated before, now its MUCH easier to follow
and manage.  The way it works now is that you can create a "bootstrap"
version of the maven plugin by building the maven plugin with the flag
'maven.andromda.bootstrap.mode=true'  and running the bootstrap-install or
bootstrap-deploy goals within the andromda-all/maven.xml.  This will just
rename all the AndroMDA dependencies of the maven plugin's POM to
"bootstrap" dependencies, and then anything needing to use the bootstrap
dependencies for generation just uses the bootstrap plugin instead of the
normal one.  The way I was doing it before was kind of ugly since I was
downloading artifacts outside of Maven's normal dependency mechanism.  I had
been thinking of refactoring it, and then finally decided I had to after I
ran into issues trying to build AndroMDA when changing the version number.

The only downside to this is since we are using in essence two plugins to
build AndroMDA (the bootstrap and normal plugin) , with the maven-1.0-rc2's
bug, it requires you to build AndroMDA twice the first time you build (if
you don't have the plugins in your local repository) to get it to complete
successfully. The first time you'll run into:

"Unable to obtain goal [multiproject:install-callback] -- 
file:/D:/java/eclipse/workspace/andromda-all/metafacades/uml/ma
ven.xml:31:47: <attainGoal> No goal [andromda:run-bootstrap]"

when it tries to run with the bootstrap plugin

and then the next one will be:

"Unable to obtain goal [multiproject:install-callback] -- 
file:/D:/java/eclipse/workspace/andromda-all/cartridges/maven.
ml:42:43: <attainGoal> No goal [andromda:run]"

Again (like before) this will just happen until the plugin's are installed
into your local repository (after the first 2 runs) and then not again.

P.S. This has been fixed in Maven CVS, so once the next version of maven-1.0
is released these failures will go away.

P.S.S. Make sure when you sync with CVS to get these changes you build
online the first time, as the new bootstrap dependencies will need to be
downloaded from the
team server.

I've updated AndroMDA from scratch to reflect these changes.  Let me know if
you have any problems.

Thanks,

Chad




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to