archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <>
Subject Re: Duplicate artifacts in different repositories
Date Wed, 05 Oct 2011 09:41:02 GMT
This use case should certainly work. The repository ID should be included in the primary key
- but maybe there is something incorrect in the mysql mapping being used.

Is there any more information about the exception that says which table/index this occurred

How was mysql configured?

On 05/10/2011, at 6:49 PM, Jan Novotný wrote:

> Hello,
>    is it possible anyhow to create two repositories with one being 
> fragment of the another? I have following usecase - repository 
> "releases" contains all our company artifacts, we need another 
> repository "partners" where some of our artifacts (small subset) is 
> opened to our company partners. I've tried creating new repository 
> "partners" with manualy recreating similar directory structure to our 
> main "releases" repository with copying few artifact folders as we want. 
> Repository "partners" got indexed and is accessible via WebDAV, but in 
> Archiva browse section I see nothing. Similarly database update fails 
> with exception:
> NestedThrowablesStackTrace:
> com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: 
> Duplicate entry 'lib_cps--com.fg.cps-pom-2.4.7' for key 'PRIMARY'
>         at 
> sun.reflect.GeneratedConstructorAccessor69.newInstance(Unknown Source)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
>         at java.lang.reflect.Constructor.newInstance(
>         at com.mysql.jdbc.Util.handleNewInstance(
>         at com.mysql.jdbc.Util.getInstance(
>         at com.mysql.jdbc.SQLError.createSQLException(
>         at com.mysql.jdbc.SQLError.createSQLException(
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(
>         at com.mysql.jdbc.MysqlIO.sendCommand(
> Is there any solution for this kind of setup?
> Regards,
> Jan

Brett Porter

View raw message