You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Henrik Brautaset Aronsen <he...@nordiclottery.com> on 2008/01/18 14:51:20 UTC
Trouble with "ejbs" folder and maven1 proxy
I recently tried switching from maven-proxy to archiva.
I have installed archiva in http://myhost:9876/archiva/ and my maven1
repo is accessible from http://myhost:9876/archiva/repository/my-maven1/
Everything seems to work OK, except for one weird thing:
If I try accessing e.g. ...
http://myhost:9876/archiva/repository/my-maven1/myproject/ejbs/accounting-ejb-0.2.jar
.. I receive a 404 Not Found with a link to ...
http://myhost:9876/repository/myproject/jars/accounting-ejb-0.2.jar
This only happens when accessing something in the "ejbs" folder. E.g.
http://myhost:9876/archiva/repository/my-maven1/myproject/jars/backend-dao-0.11.jar
works fine.
The file permissions are the same all over the repo. If I switch back
to use maven-proxy, access to files in the ejbs folder works again.
Henrik
Re: Trouble with "ejbs" folder and maven1 proxy
Posted by Henrik Brautaset Aronsen <he...@nordiclottery.com>.
OK, thanks.
nicolas de loof skrev:
> I've created MRM-659 for this issue, so that we don't forget it and create
> ejb dedicated testcase.
>
> 2008/1/18, Henrik Brautaset Aronsen <he...@nordiclottery.com>:
>> nicolas de loof skrev:
>>> Rename the "type" folder in your repository to the "jars" expected by
>>> archiva or build/install the ejb on the same computer that requires it
>> Mixing jars and ejbs in the same folder is not an option for us, I'm
>> afraid. We are in a large project with hundreds of artifacts.
>>
>> I guess I'll stick to maven-proxy for our maven1 repo until this is
>> solved. Is http://jira.codehaus.org/browse/MRM-268 the issue that is
>> tracking this problem?
>>
>> Henrik
Re: Trouble with "ejbs" folder and maven1 proxy
Posted by nicolas de loof <ni...@apache.org>.
I've created MRM-659 for this issue, so that we don't forget it and create
ejb dedicated testcase.
2008/1/18, Henrik Brautaset Aronsen <he...@nordiclottery.com>:
>
> nicolas de loof skrev:
> > Rename the "type" folder in your repository to the "jars" expected by
> > archiva or build/install the ejb on the same computer that requires it
>
> Mixing jars and ejbs in the same folder is not an option for us, I'm
> afraid. We are in a large project with hundreds of artifacts.
>
> I guess I'll stick to maven-proxy for our maven1 repo until this is
> solved. Is http://jira.codehaus.org/browse/MRM-268 the issue that is
> tracking this problem?
>
> Henrik
>
Re: Trouble with "ejbs" folder and maven1 proxy
Posted by Henrik Brautaset Aronsen <he...@nordiclottery.com>.
nicolas de loof skrev:
> Rename the "type" folder in your repository to the "jars" expected by
> archiva or build/install the ejb on the same computer that requires it
Mixing jars and ejbs in the same folder is not an option for us, I'm
afraid. We are in a large project with hundreds of artifacts.
I guess I'll stick to maven-proxy for our maven1 repo until this is
solved. Is http://jira.codehaus.org/browse/MRM-268 the issue that is
tracking this problem?
Henrik
Re: Trouble with "ejbs" folder and maven1 proxy
Posted by nicolas de loof <ni...@apache.org>.
Rename the "type" folder in your repository to the "jars" expected by
archiva
or
build/install the ejb on the same computer that requires it
2008/1/18, Henrik Brautaset Aronsen <he...@nordiclottery.com>:
>
> OK, thanks for the swift answer. Is there a workaround available?
>
> Henrik
>
> nicolas de loof skrev:
> > This issue has been reported recently.
> >
> > It requires a fix in archiva code to enhance the "type" folder used by
> > maven1. The current code use the file extension to select the folder,
> with
> > few exceptions, but "ejb" type is not correctly supported.
> >
> > Nico.
> >
> > 2008/1/18, Henrik Brautaset Aronsen <he...@nordiclottery.com>:
> >> I recently tried switching from maven-proxy to archiva.
> >>
> >> I have installed archiva in http://myhost:9876/archiva/ and my maven1
> >> repo is accessible from
> http://myhost:9876/archiva/repository/my-maven1/
> >>
> >> Everything seems to work OK, except for one weird thing:
> >>
> >> If I try accessing e.g. ...
> >>
> >>
> >>
> http://myhost:9876/archiva/repository/my-maven1/myproject/ejbs/accounting-ejb-0.2.jar
> >>
> >> .. I receive a 404 Not Found with a link to ...
> >>
> >> http://myhost:9876/repository/myproject/jars/accounting-ejb-0.2.jar
> >>
> >> This only happens when accessing something in the "ejbs" folder. E.g.
> >>
> >>
> http://myhost:9876/archiva/repository/my-maven1/myproject/jars/backend-dao-0.11.jar
> >> works fine.
> >>
> >> The file permissions are the same all over the repo. If I switch back
> >> to use maven-proxy, access to files in the ejbs folder works again.
> >>
> >> Henrik
> >>
> >>
> >
>
>
> mvh,
> Henrik
> --
> Utvikler, Nordic Lottery Systems AS
> +47 908 89 864
>
Re: Trouble with "ejbs" folder and maven1 proxy
Posted by Henrik Brautaset Aronsen <he...@nordiclottery.com>.
OK, thanks for the swift answer. Is there a workaround available?
Henrik
nicolas de loof skrev:
> This issue has been reported recently.
>
> It requires a fix in archiva code to enhance the "type" folder used by
> maven1. The current code use the file extension to select the folder, with
> few exceptions, but "ejb" type is not correctly supported.
>
> Nico.
>
> 2008/1/18, Henrik Brautaset Aronsen <he...@nordiclottery.com>:
>> I recently tried switching from maven-proxy to archiva.
>>
>> I have installed archiva in http://myhost:9876/archiva/ and my maven1
>> repo is accessible from http://myhost:9876/archiva/repository/my-maven1/
>>
>> Everything seems to work OK, except for one weird thing:
>>
>> If I try accessing e.g. ...
>>
>>
>> http://myhost:9876/archiva/repository/my-maven1/myproject/ejbs/accounting-ejb-0.2.jar
>>
>> .. I receive a 404 Not Found with a link to ...
>>
>> http://myhost:9876/repository/myproject/jars/accounting-ejb-0.2.jar
>>
>> This only happens when accessing something in the "ejbs" folder. E.g.
>>
>> http://myhost:9876/archiva/repository/my-maven1/myproject/jars/backend-dao-0.11.jar
>> works fine.
>>
>> The file permissions are the same all over the repo. If I switch back
>> to use maven-proxy, access to files in the ejbs folder works again.
>>
>> Henrik
>>
>>
>
mvh,
Henrik
--
Utvikler, Nordic Lottery Systems AS
+47 908 89 864
Re: Trouble with "ejbs" folder and maven1 proxy
Posted by nicolas de loof <ni...@apache.org>.
This issue has been reported recently.
It requires a fix in archiva code to enhance the "type" folder used by
maven1. The current code use the file extension to select the folder, with
few exceptions, but "ejb" type is not correctly supported.
Nico.
2008/1/18, Henrik Brautaset Aronsen <he...@nordiclottery.com>:
>
> I recently tried switching from maven-proxy to archiva.
>
> I have installed archiva in http://myhost:9876/archiva/ and my maven1
> repo is accessible from http://myhost:9876/archiva/repository/my-maven1/
>
> Everything seems to work OK, except for one weird thing:
>
> If I try accessing e.g. ...
>
>
> http://myhost:9876/archiva/repository/my-maven1/myproject/ejbs/accounting-ejb-0.2.jar
>
> .. I receive a 404 Not Found with a link to ...
>
> http://myhost:9876/repository/myproject/jars/accounting-ejb-0.2.jar
>
> This only happens when accessing something in the "ejbs" folder. E.g.
>
> http://myhost:9876/archiva/repository/my-maven1/myproject/jars/backend-dao-0.11.jar
> works fine.
>
> The file permissions are the same all over the repo. If I switch back
> to use maven-proxy, access to files in the ejbs folder works again.
>
> Henrik
>
>