Ok, this works but is somewhat hackish:

I manually created src/main/java and symlinked the source files into this dir. Then I manually created target/classes and unpacked the jar into this dir.

Now running mvn -DperformRelease=true deploy does what I want without attempting to compile the source.

It would be nice if deploy-file would support the same steps that performRelease does, though ...

-dirk

I don't think it will work with mvn deploy:deploy-file, but it does work
if you use do mvn deploy.

dan tran wrote:
http://maven.apache.org/guides/introduction/introduction-to-the- pom.ht
ml

indicates what maven will zip and deploy the your source if you pass
in

-DperformRelease=true.

Give it a try.

-Dan

Still no go :-(
No matter what I put in the pom.xml I have created for the jar,
deploy-file keeps ignoring.

How does my pom.xml have to look like in order to attach sources to a
given jar that I want to deploy-file?




On 1/30/06, dan tran <[EMAIL PROTECTED]> wrote:
sorry, i thougth you already have the source zipped up. Perhaps you
can zip it up before package phase.  Also the Deploy plugin ( in svn
) now supports deploy artifact with classifier, but you still need to

have the zip source thou

-Dan


On 1/30/06, Dirk Olmes <[EMAIL PROTECTED]> wrote:
dan tran wrote:
I'm currently deploying third party jars into our company's
repository
using deploy:deploy-file. I'd like to deploy source jars along
with
the
binaries so manven's eclipse plugin can pick the source up and I
can step through the code in the debugger.

Does anyone know how/if that's possible?
note possible due to http://jira.codehaus.org/browse/MDEPLOY-19

try build-helper-maven-plugin at mojo.codehaus.org as alternative
I'm not sure I understand the benefit of the build-helper plugin. I
created my own pom for the third party jar and add-source to it. Now

I can create a source:jar but deploy-file keeps ignoring the
generated source jar.

I also tried to attach-artifact the source jar, to no avail ...

-dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to