FYI, Artifactory's Maven snapshot policy now defaults to unique. This will
be effective from the next release, but in the meantime you can change the
default manually, as you did.
On Tue, Nov 30, 2010 at 10:03 AM, Andrea Cattani <[email protected]>wrote:
> I've had the same problem, I think that limiting the number of unique
> artifacts conflicts with client-side maven-settings version. Removing the
> limit in artifactory everything works fine.
> About non-unique artifacts, maven 3 only supports "unique" snapshots, I've
> had to change the repository policy because non-unique snapshots gave
> problems deploying a multiproject to artifactory.
> In fact I don't understand why artifactory manual enforces use of
> non-unique snapshots while maven deprecates it.
>
> Thanks
> Andrea
>
> 2010/11/30 Frederic Simon <[email protected]>
>
>> Hi,
>>
>> Looking at the log it looks like there was more than 1 snapshots in the
>> repository before the new deployment getting 500 happen.
>> - Did you try to use a retention of 4 or 5 before setting it to 1?
>> - Is there a reason not to use non-unique and avoid the retention policy?
>> Setting to non-unique will keep only one XX-SNAPSHOT version for your pom
>> and jar file without retention calculation. This will work better.
>> - Did you use one of our CI Server integration plugin (Hudson, TeamCity or
>> Bamboo) to do the deployment?
>>
>> Regards,
>> Fred.
>>
>> On Mon, Nov 29, 2010 at 11:49 AM, cmo <[email protected]> wrote:
>>
>>> I got a 500 error quite frequently. My settings for the snapshot
>>> repository are unique and max number of snapshots is set to 1.
>>>
>>> This is really annoying..
>>>
>>>
>>>
>>> 2010-11-29 17:13:50,708 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:269) - Reloading configuration...
>>>
>>> 2010-11-29 17:13:50,708 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:260) - Saving new configuration in
>>> storage...
>>>
>>> 2010-11-29 17:13:50,786 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:264) - New configuration saved.
>>>
>>> 2010-11-29 17:13:50,817 [TP-Processor5] [INFO ]
>>> (o.a.b.BackupServiceImpl:158) - Backup activated with cron expression '0 0
>>> 13,19 * * ?'.
>>>
>>> 2010-11-29 17:13:50,817 [TP-Processor5] [INFO ]
>>> (o.a.b.BackupServiceImpl:158) - Backup activated with cron expression '0 0 5
>>> * * ?'.
>>>
>>> 2010-11-29 17:13:50,817 [TP-Processor5] [INFO ]
>>> (o.a.s.ArtifactoryApplicationContext:343) - Artifactory application context
>>> is ready.
>>>
>>> 2010-11-29 17:13:50,817 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:284) - Configuration reloaded.
>>>
>>> 2010-11-29 17:13:58,820 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:269) - Reloading configuration...
>>>
>>> 2010-11-29 17:13:58,820 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:260) - Saving new configuration in
>>> storage...
>>>
>>> 2010-11-29 17:13:58,882 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:264) - New configuration saved.
>>>
>>> 2010-11-29 17:13:58,882 [TP-Processor5] [INFO ]
>>> (o.a.b.BackupServiceImpl:158) - Backup activated with cron expression '0 0
>>> 13,19 * * ?'.
>>>
>>> 2010-11-29 17:13:58,882 [TP-Processor5] [INFO ]
>>> (o.a.b.BackupServiceImpl:158) - Backup activated with cron expression '0 0 5
>>> * * ?'.
>>>
>>> 2010-11-29 17:13:58,882 [TP-Processor5] [INFO ]
>>> (o.a.s.ArtifactoryApplicationContext:343) - Artifactory application context
>>> is ready.
>>>
>>> 2010-11-29 17:13:58,882 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:284) - Configuration reloaded.
>>>
>>> 2010-11-29 17:14:14,810 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:269) - Reloading configuration...
>>>
>>> 2010-11-29 17:14:14,810 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:260) - Saving new configuration in
>>> storage...
>>>
>>> 2010-11-29 17:14:14,857 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:264) - New configuration saved.
>>>
>>> 2010-11-29 17:14:14,872 [TP-Processor5] [INFO ]
>>> (o.a.b.BackupServiceImpl:158) - Backup activated with cron expression '0 0
>>> 13,19 * * ?'.
>>>
>>> 2010-11-29 17:14:14,872 [TP-Processor5] [INFO ]
>>> (o.a.b.BackupServiceImpl:158) - Backup activated with cron expression '0 0 5
>>> * * ?'.
>>>
>>> 2010-11-29 17:14:14,872 [TP-Processor5] [INFO ]
>>> (o.a.s.ArtifactoryApplicationContext:343) - Artifactory application context
>>> is ready.
>>>
>>> 2010-11-29 17:14:14,872 [TP-Processor5] [INFO ]
>>> (o.a.c.CentralConfigServiceImpl:284) - Configuration reloaded.
>>>
>>> 2010-11-29 17:15:17,866 [TP-Processor5] [INFO ]
>>> (o.a.r.i.UniqueSnapshotsCleanerInterceptor:87) - Removed old unique snapshot
>>> 'mnet/depmgmt-libs/4.0.0-SNAPSHOT/depmgmt-libs-4.0.0-20101109.131739-1.pom'.
>>>
>>> 2010-11-29 17:15:17,991 [TP-Processor5] [INFO ]
>>> (o.a.r.i.UniqueSnapshotsCleanerInterceptor:87) - Removed old unique snapshot
>>> 'mnet/depmgmt-libs/4.0.0-SNAPSHOT/depmgmt-libs-4.0.0-20101109.132243-2.pom'.
>>>
>>> 2010-11-29 17:15:17,991 [TP-Processor5] [INFO ]
>>> (o.a.r.i.UniqueSnapshotsCleanerInterceptor:87) - Removed old unique snapshot
>>> 'mnet/depmgmt-libs/4.0.0-SNAPSHOT/depmgmt-libs-4.0.0-20101129.161525-2.pom'.
>>>
>>> 2010-11-29 17:15:18,100 [TP-Processor5] [INFO ]
>>> (o.a.r.i.UniqueSnapshotsCleanerInterceptor:87) - Removed old unique snapshot
>>> 'mnet/depmgmt-libs/4.0.0-SNAPSHOT/depmgmt-libs-4.0.0-20101109.132601-3.pom'.
>>>
>>> 2010-11-29 17:15:18,147 [TP-Processor5] [ERROR] (o.a.w.s.RepoFilter
>>> :171) - Sending HTTP error code 500: Failed to save resource
>>> 'pcsoft.snapshots:mnet/depmgmt-libs/4.0.0-SNAPSHOT/depmgmt-libs-4.0.0-20101129.161525-2.pom'.
>>>
>>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users