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]