You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ossi petz <os...@hallo.ms> on 2007/05/23 18:10:32 UTC

how to adding non-free sources to an internal repository?

hallo

this is probably some stupid question.

i know how to add a non-free (commercial) jar into a local repository. i 
use deploy:deploy-file to achieve this:

mvn deploy:deploy-file \
     -DgroupId=com.somesoft \
     -DartifactId=core \
     -Dversion=2.0.0 \
     -Dfile=somesoft-core-2.0.0.jar \
     -DrepositoryId=internal \
     -DrepositoryLayout=default \
     -Dpackaging=jar \
     -DgeneratePom=true \
     -Durl=file:///home/maven2/repositories/internal/ \
     -DgeneratePom.description="somesoft core jar"


how can i add the sources to this jar file? (packed in core-2.0.0.zip)

is there some other packaging type? (i havent found the available types)


thanks for any hints :)
regards

ossi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to adding non-free sources to an internal repository?

Posted by ossi petz <os...@hallo.ms>.
Hallo

thanks a lot for that hint :)
this works.

i am only confused now with the generated pom files for each artifact. 
when adding the jar's with the .class files an artifact pom is created, 
when i then add the sources jar (zip) the artifact pom is rewritten

does that matter at all? the only difference is the packaging type in 
the artifact pom which changes to <packaging>zip</> after the source 
archive is added.

or would it be a better idea to specify a pom-file when i deploy the 
files instead of letting maven generate one?


thanks :)
regards
ossi




Wendy Smoak schrieb:
> On 5/23/07, ossi petz <os...@hallo.ms> wrote:
> 
> 
>> i know how to add a non-free (commercial) jar into a local repository. i
>> use deploy:deploy-file to achieve this:
> ...
>> how can i add the sources to this jar file? (packed in core-2.0.0.zip)
>>
>> is there some other packaging type? (i havent found the available types)
> 
> Try adding -Dclassifier=sources
> 
> You might need to deploy it as a jar, I'm not sure if IDEs will find
> it as a .zip file.
> 
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to adding non-free sources to an internal repository?

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/23/07, ossi petz <os...@hallo.ms> wrote:


> i know how to add a non-free (commercial) jar into a local repository. i
> use deploy:deploy-file to achieve this:
...
> how can i add the sources to this jar file? (packed in core-2.0.0.zip)
>
> is there some other packaging type? (i havent found the available types)

Try adding -Dclassifier=sources

You might need to deploy it as a jar, I'm not sure if IDEs will find
it as a .zip file.

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org