Wow, Tom - It certainly looks like you hit the nail right on the head there.
Terrific. Would you by chance happen to know how I go about configuring the project lifecycle to support a a different artifact type as well? I'm writing a mojo for the JPackage project, and creating a corresponding archetype so that JPackagers can generate RPMS quickly from Maven projects, and I'd like to have the <packaging> element set to jpackage. However if I do this I get an exception like this one: [INFO] Cannot find lifecycle mapping for packaging: 'jpackage'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingjpackage. Brilliant work on the cookbook. Thanks again! - Ole --- Tom Huybrechts <[EMAIL PROTECTED]> wrote: > If you want to do this in a mojo, look at 'resolving > an artifact' in > the Mojo Developer Cookbook: > http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook > Use an artifact of type 'pom'. > > > On 11/21/06, Ole Ersoy <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I need to to create a path string representing a > > location of a pom in the local maven repository > on > > Linux. > > > > What is the best way of going about this? > > > > One thought I had was to just get the USER > environment > > variable and construct the repository path > manually, > > but that assumes that the repository is located > under > > /home/$user/.m2/repository > > > > And ideally Maven would be able to inject a > parameter > > telling the plugin where the plugin what the path > to > > the local repository base directory is. > > > > ideas? > > > > Thanks, > > - Ole > > > > > > > > > > > > > ____________________________________________________________________________________ > > Do you Yahoo!? > > Everyone is raving about the all-new Yahoo! Mail > beta. > > http://new.mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ Sponsored Link Online degrees - find the right program to advance your career. www.nextag.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
