Good day to you, Steinar, You can use mvn eclipse:eclipse -DdownloadSources instead ;)
mvn eclispe:eclipse will setup your .project and .classpath wherein the .classpath points to the binaries of your dependencies ( which are in your repo ). And with the -DdownloadSources=true property, the sources of your binaries would be included as well in your .classpath, thus enabling you to use F3. Cheers, Franz Steinar Bang wrote: > > I'm trying to create a source bundle for an existing jar file into the > repo, so that eclipse can find it with F3 and when debugging. > > I googled a bit and found this article: > http://maven.apache.org/guides/mini/guide-ibiblio-upload.html > > I tried doing > mvn source:jar repository:bundle-create > from the directory containing the pom.xml with the <artifactId> > corresponding to the jar I wished to debug into. But that just gave > me this error message: > ... > [INFO] Preparing source:jar > [INFO] No goals needed for project - skipping > [INFO] [source:jar] > [INFO] NOT adding sources to attached artifacts for packaging: 'pom'. > [INFO] Preparing repository:bundle-create > [INFO] [site:attach-descriptor] > [INFO] [repository:bundle-create] > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Packaging cannot be POM when creating an upload bundle. > ... > > What does <packaging>pom</packaging> imply? In particular: why would > one choose <packaging>pom</packaging> over <packaging>jar</packaging>? > > Is it possible to create a source jar appropriate for eclipse > debugging, when the artifact has packaging pom? > > Thanx! > > > - Steinar > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Q%3A-Creating-source-bundles-with-packaging-pom--tf2971381s177.html#a8372612 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]