You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Scott Williams <sc...@jeeprofessional.com> on 2008/06/22 10:37:35 UTC

Can Archiva serve up .swf/.swc artifacts?

I'm having a problem with retrieving a .swf SNAPSHOT from Archiva, Maven is
giving me the following response:

from the specified remote repositories:
  archiva.default (http://myHost:myPort/archiva/repository/internal/)

When I browse in Archiva for the .swf all Archiva allows me to download is
the pom and not the .swf.  I'm beginning to wonder that Archiva does not
support .swf artifacts at the moment, can anyone confirm this please.

Scott Williams
http://www.jeeprofessional.com




-- 
View this message in context: http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18052376.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Chris Walzl <cw...@gmail.com>.
Thank you all for the help! I was working with Scott W. on this for a little
bit and just wanted to say that I appreciate all of the quick responses!

-Chris
-- 
View this message in context: http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18059702.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Scott Williams <sc...@jeeprofessional.com>.
Sorry Deng, it was late, I should have posted the version, I'm using version
1.0.2.

Thanks,

Scott

Maria Odea Ching-5 wrote:
> 
> Hi Scott,
> 
> Did you add .swf in the index-content file types? Also, what version of
> Archiva are you currently using?
> 
> Thanks,
> Deng
> 
> On Sun, Jun 22, 2008 at 1:37 AM, Scott Williams
> <sc...@jeeprofessional.com>
> wrote:
> 
>>
>> I'm having a problem with retrieving a .swf SNAPSHOT from Archiva, Maven
>> is
>> giving me the following response:
>>
>> from the specified remote repositories:
>>  archiva.default (http://myHost:myPort/archiva/repository/internal/)
>>
>> When I browse in Archiva for the .swf all Archiva allows me to download
>> is
>> the pom and not the .swf.  I'm beginning to wonder that Archiva does not
>> support .swf artifacts at the moment, can anyone confirm this please.
>>
>> Scott Williams
>> http://www.jeeprofessional.com
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18052376.html
>> Sent from the archiva-users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18054570.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Scott Williams <sc...@jeeprofessional.com>.
Success!

Here's what I did to get Archiva to recognize my .swf/.swc, it may have been
the "long" road but it worked.

0) Added **/*.swf and **/*.swc to the "Artifacts" section on the "Repository
Scanning" page.
1) Stopped Archiva
2) Removed (rm -rf)  *.swf/*.swc from the managed repos file system both
internal and snapshots..
3) Copied (cp -R) the *.swf/*.swc from my old repo back to the managed repos
file system both internal and snapshots.
4) Started Archiva
5)  Selected "Scan Repository Now" for both the internal and snapshots
repos.
6) Browsed for the .swf/.swc and I can now download the pom and the
.swf/.swc artifacts!

Thanks for your help Wendy and Deng.

Scott

Wendy Smoak-3 wrote:
> 
> On Sun, Jun 22, 2008 at 6:55 AM, Scott Williams
> <sc...@jeeprofessional.com> wrote:
> 
>> Thank you for your help.  How does one add a new index-content file type? 
>> I
>> added **/*.swf and **/*.swc to the "Repository Scanning - File Types"
>> page
>> on the "Repository Scanning" left nav tab, selected "Scan Repository Now"
>> and nothing changed, I can only Download the pom of the .swfs/.swcs and
>> not
>> the actual artifact.
> 
> I think you have to do both "Scan Repository Now" and "Update Database".
> 
> In addition, it may not "see" things with a file timestamp that is
> older than the last scan.
> 
> First, try "Update Database", then if that doesn't work, try
> "touch"ing the file to change the timestamp.
> 
> If that still doesn't work, then stop Archiva, delete the database and
> index files, and re-start it.  Scan and update again, and the files
> should show up.
> 
> Please let us know the results, IMO this is something that needs to be
> improved.  (You can also find us on irc.codehaus.org in #archiva .)
> 
> Thanks,
> -- 
> Wendy
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18055260.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Brett Porter <br...@gmail.com>.
FWIW, I was able to add an artifact of this type to a 1.0.2 repository
and download it successfully.

IF it continues to fail, you might also try opening the URL Maven is
requesting in a browser and see what error it presents, and/or check
your archiva logs.

- Brett

2008/6/22 Wendy Smoak <ws...@gmail.com>:
> On Sun, Jun 22, 2008 at 6:55 AM, Scott Williams
> <sc...@jeeprofessional.com> wrote:
>
>> Thank you for your help.  How does one add a new index-content file type?  I
>> added **/*.swf and **/*.swc to the "Repository Scanning - File Types" page
>> on the "Repository Scanning" left nav tab, selected "Scan Repository Now"
>> and nothing changed, I can only Download the pom of the .swfs/.swcs and not
>> the actual artifact.
>
> I think you have to do both "Scan Repository Now" and "Update Database".
>
> In addition, it may not "see" things with a file timestamp that is
> older than the last scan.
>
> First, try "Update Database", then if that doesn't work, try
> "touch"ing the file to change the timestamp.
>
> If that still doesn't work, then stop Archiva, delete the database and
> index files, and re-start it.  Scan and update again, and the files
> should show up.
>
> Please let us know the results, IMO this is something that needs to be
> improved.  (You can also find us on irc.codehaus.org in #archiva .)
>
> Thanks,
> --
> Wendy
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Wendy Smoak <ws...@gmail.com>.
On Sun, Jun 22, 2008 at 6:55 AM, Scott Williams
<sc...@jeeprofessional.com> wrote:

> Thank you for your help.  How does one add a new index-content file type?  I
> added **/*.swf and **/*.swc to the "Repository Scanning - File Types" page
> on the "Repository Scanning" left nav tab, selected "Scan Repository Now"
> and nothing changed, I can only Download the pom of the .swfs/.swcs and not
> the actual artifact.

I think you have to do both "Scan Repository Now" and "Update Database".

In addition, it may not "see" things with a file timestamp that is
older than the last scan.

First, try "Update Database", then if that doesn't work, try
"touch"ing the file to change the timestamp.

If that still doesn't work, then stop Archiva, delete the database and
index files, and re-start it.  Scan and update again, and the files
should show up.

Please let us know the results, IMO this is something that needs to be
improved.  (You can also find us on irc.codehaus.org in #archiva .)

Thanks,
-- 
Wendy

Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Scott Williams <sc...@jeeprofessional.com>.
Deng,

Thank you for your help.  How does one add a new index-content file type?  I
added **/*.swf and **/*.swc to the "Repository Scanning - File Types" page
on the "Repository Scanning" left nav tab, selected "Scan Repository Now"
and nothing changed, I can only Download the pom of the .swfs/.swcs and not
the actual artifact.

Thanks,

Scott



Maria Odea Ching-5 wrote:
> 
> Hi Scott,
> 
> Did you add .swf in the index-content file types? Also, what version of
> Archiva are you currently using?
> 
> Thanks,
> Deng
> 
> On Sun, Jun 22, 2008 at 1:37 AM, Scott Williams
> <sc...@jeeprofessional.com>
> wrote:
> 
>>
>> I'm having a problem with retrieving a .swf SNAPSHOT from Archiva, Maven
>> is
>> giving me the following response:
>>
>> from the specified remote repositories:
>>  archiva.default (http://myHost:myPort/archiva/repository/internal/)
>>
>> When I browse in Archiva for the .swf all Archiva allows me to download
>> is
>> the pom and not the .swf.  I'm beginning to wonder that Archiva does not
>> support .swf artifacts at the moment, can anyone confirm this please.
>>
>> Scott Williams
>> http://www.jeeprofessional.com
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18052376.html
>> Sent from the archiva-users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18054784.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Can Archiva serve up .swf/.swc artifacts?

Posted by Maria Odea Ching <oc...@apache.org>.
Hi Scott,

Did you add .swf in the index-content file types? Also, what version of
Archiva are you currently using?

Thanks,
Deng

On Sun, Jun 22, 2008 at 1:37 AM, Scott Williams <sc...@jeeprofessional.com>
wrote:

>
> I'm having a problem with retrieving a .swf SNAPSHOT from Archiva, Maven is
> giving me the following response:
>
> from the specified remote repositories:
>  archiva.default (http://myHost:myPort/archiva/repository/internal/)
>
> When I browse in Archiva for the .swf all Archiva allows me to download is
> the pom and not the .swf.  I'm beginning to wonder that Archiva does not
> support .swf artifacts at the moment, can anyone confirm this please.
>
> Scott Williams
> http://www.jeeprofessional.com
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Can-Archiva-serve-up-.swf-.swc-artifacts--tp18052376p18052376.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>