uploading source jar for a dependency?

View: New views
3 Messages — Rating Filter:   Alert me  

uploading source jar for a dependency?

by janneefef :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How can I upload source jar for a dependency?
I have dependency

    <dependency>
      <groupId>net.java.dev.appframework</groupId>
      <artifactId>appframework</artifactId>
      <version>1.03</version>
    </dependency>


This got retrieved from some public repository, but the associated source
jar is broken (appframework-1.03-sources.jar).

I fixed the broken jar (directory structure inside the jar was borked) but
how can I upload the changed sources jar to archiva?

There's "delete artifact" and "upload artifact" operations in the admin
webapp, but as far as I can tell they only operate on the main jar
(appframework-1.03.jar).

Re: uploading source jar for a dependency?

by Wendy Smoak-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jun 10, 2009 at 7:01 AM, janne
mattila<jannepostilistat@...> wrote:

> There's "delete artifact" and "upload artifact" operations in the admin
> webapp, but as far as I can tell they only operate on the main jar
> (appframework-1.03.jar).

You can upload additional jars alongside the main one by using the
'classifier' field on the upload page.

In this case, enter 'sources' into the classifier field.

--
Wendy

Re: uploading source jar for a dependency?

by janneefef :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, this worked (after upgrading to archiva 1.2.1...)

On Wed, Jun 10, 2009 at 7:19 PM, Wendy Smoak <wsmoak@...> wrote:

> On Wed, Jun 10, 2009 at 7:01 AM, janne
> mattila<jannepostilistat@...> wrote:
>
> > There's "delete artifact" and "upload artifact" operations in the admin
> > webapp, but as far as I can tell they only operate on the main jar
> > (appframework-1.03.jar).
>
> You can upload additional jars alongside the main one by using the
> 'classifier' field on the upload page.
>
> In this case, enter 'sources' into the classifier field.
>
> --
> Wendy
>