-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ossi petz wrote:
> hallo
>
> i dont know archiva. we use shell commands to add 3rd party libs and
> sources:
>
> mvn deploy:deploy-file -DgroupId=com.company
> -DartifactId=company-common -Dversion=2.0.3
> -Dfile=src-common-2.0.3.zip -DrepositoryId=company-internal
> -DrepositoryLayout=default -Dpackaging=java-source
> -Dclassifier=sources -DgeneratePom=true
> -Durl=file:///data/mvn/repositories/internal/
>
> mvn deploy:deploy-file -DgroupId=com.company
> -DartifactId=company-common -Dversion=2.0.3 -Dfile=common-2.0.3.jar
> -DrepositoryId=company-internal -DrepositoryLayout=default
> -Dpackaging=jar -DgeneratePom=true
> -Durl=file:///data/mvn/repositories/internal/
> -DgeneratePom.description="lib"
>
> firsrt add sources, then add the jar. note the packaging parameter.
>
> if somone has a more elegant solution i would be interested too :)
>
>
>
>
> Angel Sotirov schrieb:
> Hi,
>           Is there a nice way to deploy 3rd party jar and the
> source to
> local Archiva repo?
>
> Cheerz,
> Angel
    Yeah, I've tried this but -DgeneratePom=true seems overwrite the
original POM. Digging through previous mail list post i found

http://mail-archives.apache.org/mod_mbox/maven-issues/200704.mbox/[EMAIL 
PROTECTED]

"*Deploying Source Jars*


To deploy a 3rd party source jar, packaging should be set to
"java-source", and generatePom

should be set to false."
    Having set -DgeneratePom=false on the other hand, generates
NullPointerException?!?

What are you using for internal remote repository/proxy?

Angel.


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



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFG+50FhgSIDFxSFd0RApR9AJ9clSuVTZxcx/M7//B2VJEnu3xvmwCgv/Le
RFISwkOsl/Vomo6Q8MLcWFE=
=o+fP
-----END PGP SIGNATURE-----


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

Reply via email to