Hi,
We are developing some software that will use a notion of deployment
repositories. Various 'nodes' will need access to artifacts within this
repository at run-time. Artifacts can have dependencies on other artifacts.
So, we're basically just dealing with artifact sharing and resolution of
run-time dependencies.
This seems to have many of the same concepts that Maven encompasses.
Consequently, it would be nice if we could leverage Maven somehow.
I've been looking at the Maven source. As I'm sure you know, there is quite a
bit. Mainly, I've played around with the Wagon stuff.
I was wondering if anyone else has leveraged Maven programmatically and/or
could provide me with some guidance.
For example, I'd like to do something like:
Repository repo = new Repository("http://my_repo/basedir");
Artifact[] artifacts = repo.searchByGroupId("org.apache.maven")
for (Artifact art : artifacts) // list dependencies
How about having our node generate a pom on the fly that references a custom
plugin? I know those have access to Artifacts...
Thanks.
--
Samuel Cox
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]