to get the source into your repository then you need to attache the source plugin to the package phase as below. this will then automatically generate the sources and deploy them.
<plugin> <artifactId>maven-source-plugin</artifactId> <version>2.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> -----Original Message----- From: gdub [mailto:[EMAIL PROTECTED] Sent: 26 April 2006 17:01 To: Maven Users List Subject: creating and using source archive Good morning- We just completed our first Maven-based project and are on to the next. First, thanks to the Maven developers for their efforts and to the members of this list who were invariably helpful and patient during the newbie days. So, we are moving from the "let's see how Maven works" phase to the "let's look at the impact of Maven" phase. Personally, I have grown from "Maven child" to "Maven rebellious teenager." Now, a thing that would really cut time would be to have source and javadoc archives available in the local repository--for all local and 3rd- party artifacts. So my question is, how can I automatically install source and javadoc jars from development projects to the local repository? I see the instructions on how to upload them to ibiblio and I can successfully use the source:jar and javadoc:jar goals. But how do I get those jars into my local repository using Maven?. I know I can copy them directly but hopefully that's not the recommended means. Ideally, I'd like it configured so that building the install goal installs those jars as well. On the comment side, I would like to plead with ibiblio uploaders to please include source and javadoc archives with your packages if at all possible. I know it's extra work but it could have a big impact on Maven usability. Thanks as always, -dub --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]