Re: How Do I Deploys The Sources To The Repository
Good day, I'd just like to add that the performRelease property in itself is not documented. But you can take a look at [1] about the Super POM. Furthermore, the thing that actually adds the source codes is maven-sources-plugin which Bram mentioned. For more info about that plugin, kindly take a look at [2] [1] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html [2] http://maven.apache.org/plugins/maven-source-plugin Cheers, Franz Greg_Vaughn wrote: Adam Hardy [EMAIL PROTECTED] wrote on 11/08/2006 02:32:34 PM: [EMAIL PROTECTED] wrote: Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. Very interesting. I just checked on the maven website and it's not mentioned as one of the optional parameters (only createChecksum and updateReleaseInfo are documented). But it works. I had looked that up at one point when I didn't understand much, but now I went after it again. It's defined in the superpom (which can be found in MAVEN_HOME/lib/maven-project-2.0.4.jar as org/apache/maven/project/pom-4.0.0.xml for the curious). Here's the magic: profile idrelease-profile/id activation property nameperformRelease/name valuetrue/value /property /activation build plugins plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution idattach-sources/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId configuration updateReleaseInfotrue/updateReleaseInfo /configuration /plugin /plugins /build /profile I tried adding an activeProfiles section in my ~/.m2/settings.xml for release-profile with no luck. mvn -DperformRelease=true help:active-profiles returns no active profiles. It still doesn't all make sense to me. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == -- View this message in context: http://www.nabble.com/How-Do-I-Deploys-The-Sources-To-The-Repository-tf2589597s177.html#a7275994 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Do I Deploys The Sources To The Repository
[EMAIL PROTECTED] wrote: Adam Hardy [EMAIL PROTECTED] wrote on 11/08/2006 02:32:34 [EMAIL PROTECTED] wrote: mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. Very interesting. I just checked on the maven website and it's not mentioned as one of the optional parameters (only createChecksum and updateReleaseInfo are documented). But it works. I had looked that up at one point when I didn't understand much, but now I went after it again. It's defined in the superpom (which can be found in MAVEN_HOME/lib/maven-project-2.0.4.jar as org/apache/maven/project/pom-4.0.0.xml for the curious). Here's the magic: profile idrelease-profile/id activation property nameperformRelease/name valuetrue/value /property /activation build plugins plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution idattach-sources/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId configuration updateReleaseInfotrue/updateReleaseInfo /configuration /plugin /plugins /build /profile I tried adding an activeProfiles section in my ~/.m2/settings.xml for release-profile with no luck. mvn -DperformRelease=true help:active-profiles returns no active profiles. It still doesn't all make sense to me. OK with that parameter being a profile-trigger, it's obvious why the parameter is not documented for install:install. Without checking up on the profile activation docs, I'd guess that the activation based on a property will then always depend on that property for activation. Or in other words, the property-based activation takes precedence over the listing in the active profiles. What would be easier for command line usage would be a custom goal that kicked off the same thing: mvn adamgoal:performRelease but I don't think maven has the capacity for configuring custom goals that easily - I'd have to write a plugin I think. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How Do I Deploys The Sources To The Repository
Hey greg, It doesn't seem to work with the install goal. It generates the javadoc sources file but doesn't deploy it to the local repo. It does work with the deploy goal. Thx. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 7 november 2006 17:20 Aan: Maven Users List; [EMAIL PROTECTED] Onderwerp: Re: How Do I Deploys The Sources To The Repository Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/524 - Release Date: 8/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How Do I Deploys The Sources To The Repository
-Oorspronkelijk bericht- Van: Yves Van Steen [mailto:[EMAIL PROTECTED] Verzonden: donderdag 9 november 2006 15:33 Aan: 'Maven Users List' Onderwerp: RE: How Do I Deploys The Sources To The Repository Hey greg, Sorry for this wrong information it does seem to work with the install goal. I made a little error. Thx. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 7 november 2006 17:20 Aan: Maven Users List; [EMAIL PROTECTED] Onderwerp: Re: How Do I Deploys The Sources To The Repository Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. == -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/524 - Release Date: 8/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 9/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Do I Deploys The Sources To The Repository
[EMAIL PROTECTED] wrote: Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. Very interesting. I just checked on the maven website and it's not mentioned as one of the optional parameters (only createChecksum and updateReleaseInfo are documented). But it works. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Do I Deploys The Sources To The Repository
Adam Hardy [EMAIL PROTECTED] wrote on 11/08/2006 02:32:34 PM: [EMAIL PROTECTED] wrote: Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. Very interesting. I just checked on the maven website and it's not mentioned as one of the optional parameters (only createChecksum and updateReleaseInfo are documented). But it works. I had looked that up at one point when I didn't understand much, but now I went after it again. It's defined in the superpom (which can be found in MAVEN_HOME/lib/maven-project-2.0.4.jar as org/apache/maven/project/pom-4.0.0.xml for the curious). Here's the magic: profile idrelease-profile/id activation property nameperformRelease/name valuetrue/value /property /activation build plugins plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution idattach-sources/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId configuration updateReleaseInfotrue/updateReleaseInfo /configuration /plugin /plugins /build /profile I tried adding an activeProfiles section in my ~/.m2/settings.xml for release-profile with no luck. mvn -DperformRelease=true help:active-profiles returns no active profiles. It still doesn't all make sense to me. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. ==
How Do I Deploys The Sources To The Repository
Hey, I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Thanks for any assistance. Yves -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.30/521 - Release Date: 7/11/2006
RE: How Do I Deploys The Sources To The Repository
Hi Yves, try this : mvn clean source:jar install regards, Bram -Original Message- From: Yves Van Steen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 4:59 PM To: 'Maven Users List' Subject: How Do I Deploys The Sources To The Repository Hey, I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Thanks for any assistance. Yves -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.30/521 - Release Date: 7/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How Do I Deploys The Sources To The Repository
Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: I can generate a jar containing the source files of a project. But how do I configure it to deploy the source jar to the repo? I need this because I would like to use the download sources setting of the eclipse plugin for my own projects. So far I have found nothing that would accomplish this task. Somewhere deep in the plugins of maven adding a system property of performRelease=true causes both source and javadoc jars to be generated and deployed. It's not well documented. So you can do mvn -DperformRelease=true deploy and you get both source and javadoc jars in the repository along with the main artifact. It also works with the install target. -Greg Vaughn [EMAIL PROTECTED] == Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries. If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law. If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession. ==