I was thinking, how about using http://repository.jboss.com/maven2 as the place to go and get the plugins either by hardcoded names or by parsing pom.xml to get both the the repository location and the dependencies. The Cdk wizard may have a check-box to force a download or use an old download. Downloaded jars can be kept in metadata location of the workspace. Each Cdk project may either use a local copy which gets copied from the metadata location or may directly point to the metadata location to always get pointed to the latest download.
 
This is to facilitate build and export without maven installed and a maven build. Let me know what you think.
 
Thanks
 
Sanjay


On Wed, Dec 16, 2009 at 2:52 PM, Ramesh Reddy <rareddy@redhat.com> wrote:
On Wed, 2009-12-16 at 13:20 -0600, Sanjay Chaudhuri wrote:
> Excellent idea about "classpath in Eclipse from a Maven repo". Give me
> the location, and let me see, if I can do something about it .. an
> interesting challenge !!!
>
Actually, if you add "maven" eclipse plugin as dependency to your
plugin, and drive the connector's  build from "pom.xml" any dependencies
specified in the "pom.xml" are automatically added to the eclipse
project. May be that is how we want to drive this.

Obviously we would pre-can the "pom.xml" for our purpose that means it
will dependencies specified to begin with. If you installed "maven" on
your machine, then a local repo is in your "${user.home}/.m2/repository"
directory. It may not have the files I gave, but you can create them
easily like

.m2/repository/org/jboss/teiid/teiid-common-core/7.0.0-SNAPSHOT/teiid-common-core-7.0.0-SNAPSHOT.jar
.m2/repository/org/jboss/teiid/teiid-connector-api/7.0.0-SNAPSHOT/teiid-connector-api-7.0.0-SNAPSHOT.jar
.m2/repository/javax/resource/connector-api/1.5/connector-api-1.5.jar

Then use the attached pom file to build, it has jboss maven repo
details(although Teiid files are not in there now, they will be in
future). if we go this route I will add pom file to the template.

Ramesh..