Re: Artifact Retrieval

2011-03-07 Thread Johannes Ruscheinski
> > This might be helpful: > http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook#MojoDeveloperCookbook-Creatingandresolvinganartifact > I think that's all deprecated now. Anybody know what the new way of creating Artifacts and resolving them is? > > Benjamin > > --

Re: Artifact Retrieval

2011-02-19 Thread Johannes Ruscheinski
On 18 February 2011 14:41, Benjamin Bentmann wrote: > Johannes Ruscheinski wrote: > >>         private void resolveDendencies(final Artifact artifact) { >>                 getLog().info("+++ ProfilerMojo: attempting resolution >> from " + localRepository.getUrl()

Artifact Retrieval

2011-02-18 Thread Johannes Ruscheinski
Hi, I am using the Maven 2 API to write a mojo. (Should I be using the Maven 3 API?) My problem is that I am trying to retrieve the jar for an artifact and I have a problem with finding a snapshot jar. I use the following code: private void resolveDendencies(final Artifact artifact) {

Re: Need Help w/ the Creation of a Maven Mojo

2011-02-17 Thread Johannes Ruscheinski
On 17 February 2011 09:38, Wayne Fay wrote: >> the baseline version.   Any tips on how I might tackle this would be >> greatly appreciated! > > You should probably take a look a the Sonar project and their Maven > plugin to see how they are doing similar things, and perhaps Cobertura > as well, an

Need Help w/ the Creation of a Maven Mojo

2011-02-16 Thread Johannes Ruscheinski
Hi, We have the probably ambitious goal to create a new mojo that catches performance regressions. I should also mention that I have never written a mojo before and that so far I am just a tiny step beyond a "Hello, world!"-style mojo that I have successfully invoked from one of our poms. The p