Re: Loading a POM from the Respository
Read 'specifying a new packaging' in the 'Introduction to the lifecycle' http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Don't forget to set extensionstrueextensions on the plugin defining your new lifecycle. Tom On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading a POM from the Respository
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]
Re: Loading a POM from the Respository
Terrific - I think I finally have all my puzzle pieces lined up now. Thanks again, - Ole --- Tom Huybrechts [EMAIL PROTECTED] wrote: Read 'specifying a new packaging' in the 'Introduction to the lifecycle' http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Don't forget to set extensionstrueextensions on the plugin defining your new lifecycle. Tom On 11/21/06, Ole Ersoy [EMAIL PROTECTED] wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sponsored Link Rates near 39yr lows. $510,000 Loan for $1698/mo. Calcuate new payment. www.LowerMyBills.com/lre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading a POM from the Respository
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]