You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Julien Graglia <jg...@netceler.com> on 2007/09/25 17:09:13 UTC

1.0 Beta2

I'am running archive 1.0 beta2.

when i run a db update I get this error :

17688224 [SocketListener0-5] WARN 
org.apache.maven.archiva.consumers.DatabaseUnprocessedArtifactConsumer:update-db-project 
- Project Model groupId = 'com.netceler.iv'
artifactId = 'com.netceler.iv.spring'
version = '0.2' artifactId: com.netceler.iv.spring does not match the
pom file's artifactId: com.netceler.iv.boot

 Here is what I have in my disk : 

root@xxx:mavenrepositories/repositories/internal/com/netceler/iv/com.netceler.iv.spring/0.2#
cat maven-metadata.xml
<?xml version="1.0" encoding="UTF-8"?>

<metadata>
  <groupId>com.netceler.iv</groupId>
  <artifactId>com.netceler.iv.spring</artifactId>
  <version>0.2</version>
</metadata>

root@xxx:mavenrepositories/repositories/internal/com/netceler/iv/com.netceler.iv.spring/0.2#
cat com.netceler.iv.spring-0.2.pom
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
        <parent>
                <groupId>com.netceler.iv</groupId>
                <artifactId>com.netceler.iv</artifactId>
                <version>0.2</version>
        </parent>

        <modelVersion>4.0.0</modelVersion>
        <artifactId>com.netceler.iv.spring</artifactId>
        <name>com.netceler.iv.spring</name>

       ....

</project>


I have a parent artifact named com.netceler.iv in version 0.2, and many
modules like com.netceler.iv

What is the meaning of this error?

Thx,

-- 
Julien Graglia
jgraglia@netceler.com



Re: 1.0 Beta2

Posted by Julien Graglia <jg...@netceler.com>.
Joakim Erdfelt a écrit :
> Julien Graglia wrote:
>> Hi,
>>
>> I'm quite sure my poms are ok.... but here is was I got when i use "Show
>> Reports" from archiva web app, for  my managed repo :
>>
>>  [top] / com / netceler / iv /  com.netceler.iv.core / 0.2
>>  
>>     Project Model groupId = 'com.netceler.iv' artifactId =
>> 'com.netceler.iv.spring' version = '0.2' artifactId:
>> com.netceler.iv.spring does not match the pom file's artifactId:
>> com.netceler.iv.core
>>  
>> [top] / com / netceler / iv / com.netceler.iv.log / 0.2
>>  
>>     Project Model groupId = 'com.netceler.iv' artifactId =
>> 'com.netceler.iv.spring' version = '0.2' artifactId:
>> com.netceler.iv.spring does not match the pom file's artifactId:
>> com.netceler.iv.log
>>  
>> [top] / com / netceler / iv / com.netceler.iv.log.log4j / 0.2
>>  
>>     Project Model groupId = 'com.netceler.iv' artifactId =
>> 'com.netceler.iv.spring' version = '0.2' artifactId:
>> com.netceler.iv.spring does not match the pom file's artifactId:
>> com.netceler.iv.log.log4j
>>  
>> [top] / com / netceler / iv / com.netceler.iv.boot / 0.2
>>  
>>     Project Model groupId = 'com.netceler.iv' artifactId =
>> 'com.netceler.iv.spring' version = '0.2' artifactId:
>> com.netceler.iv.spring does not match the pom file's artifactId:
>> com.netceler.iv.boot
>>  
>> [top] / com / netceler / iv / com.netceler.iv.jetty / 0.2
>>  
>>     Project Model groupId = 'com.netceler.iv' artifactId =
>> 'com.netceler.iv.spring' version = '0.2' artifactId:
>> com.netceler.iv.spring does not match the pom file's artifactId:
>> com.netceler.iv.jetty
>>
>> All my artifacts have pbs: execpt the com.netceler.iv.spring which seems
>> to be the faulty one
>>
>> I have a pom name com.netceler.iv, it's the parent of 6 others
>> artifacts, and it declares thems as modules :
>> com.netceler.iv.core
>> com.netceler.iv.log
>> com.netceler.iv.log.log4j
>> com.netceler.iv.spring
>> com.netceler.iv.jetty
>> com.netceler.iv.boot
>>
>> I have double check com.netceler.iv.spring's pom but did not find any
>> errors..
>> I already have cleared archiva (db and repo), re-deploy all my
>> artifacts, but error remains..
>>
>> What is wrong?
>>   
>
> The use of dot notation artifactIds is unique.  But there is nothing
> wrong with that.
> I just added a few test cases and updated the error message to be more
> meaningful.
>
> See http://urltea.com/1kyi  and  http://urltea.com/1kyj
>
great thx!

Note: I think you invert the two methods names :
testGoodDotNotationArtifactId & testGoodDotNotationSameGroupIdAndArtifactId

-- 
Julien Graglia



Re: 1.0 Beta2

Posted by Joakim Erdfelt <jo...@erdfelt.com>.
Julien Graglia wrote:
> Hi,
>
> I'm quite sure my poms are ok.... but here is was I got when i use "Show
> Reports" from archiva web app, for  my managed repo :
>
>  [top] / com / netceler / iv /  com.netceler.iv.core / 0.2
>  
>     Project Model groupId = 'com.netceler.iv' artifactId =
> 'com.netceler.iv.spring' version = '0.2' artifactId:
> com.netceler.iv.spring does not match the pom file's artifactId:
> com.netceler.iv.core
>  
> [top] / com / netceler / iv / com.netceler.iv.log / 0.2
>  
>     Project Model groupId = 'com.netceler.iv' artifactId =
> 'com.netceler.iv.spring' version = '0.2' artifactId:
> com.netceler.iv.spring does not match the pom file's artifactId:
> com.netceler.iv.log
>  
> [top] / com / netceler / iv / com.netceler.iv.log.log4j / 0.2
>  
>     Project Model groupId = 'com.netceler.iv' artifactId =
> 'com.netceler.iv.spring' version = '0.2' artifactId:
> com.netceler.iv.spring does not match the pom file's artifactId:
> com.netceler.iv.log.log4j
>  
> [top] / com / netceler / iv / com.netceler.iv.boot / 0.2
>  
>     Project Model groupId = 'com.netceler.iv' artifactId =
> 'com.netceler.iv.spring' version = '0.2' artifactId:
> com.netceler.iv.spring does not match the pom file's artifactId:
> com.netceler.iv.boot
>  
> [top] / com / netceler / iv / com.netceler.iv.jetty / 0.2
>  
>     Project Model groupId = 'com.netceler.iv' artifactId =
> 'com.netceler.iv.spring' version = '0.2' artifactId:
> com.netceler.iv.spring does not match the pom file's artifactId:
> com.netceler.iv.jetty
>
> All my artifacts have pbs: execpt the com.netceler.iv.spring which seems
> to be the faulty one
>
> I have a pom name com.netceler.iv, it's the parent of 6 others
> artifacts, and it declares thems as modules :
> com.netceler.iv.core
> com.netceler.iv.log
> com.netceler.iv.log.log4j
> com.netceler.iv.spring
> com.netceler.iv.jetty
> com.netceler.iv.boot
>
> I have double check com.netceler.iv.spring's pom but did not find any
> errors..
> I already have cleared archiva (db and repo), re-deploy all my
> artifacts, but error remains..
>
> What is wrong?
>   

The use of dot notation artifactIds is unique.  But there is nothing 
wrong with that.
I just added a few test cases and updated the error message to be more 
meaningful.

See http://urltea.com/1kyi  and  http://urltea.com/1kyj

-- 
- Joakim Erdfelt
  joakim@erdfelt.com
  Open Source Software (OSS) Developer


Re: 1.0 Beta2

Posted by Julien Graglia <jg...@netceler.com>.
Hi,

I'm quite sure my poms are ok.... but here is was I got when i use "Show
Reports" from archiva web app, for  my managed repo :

 [top] / com / netceler / iv /  com.netceler.iv.core / 0.2
 
    Project Model groupId = 'com.netceler.iv' artifactId =
'com.netceler.iv.spring' version = '0.2' artifactId:
com.netceler.iv.spring does not match the pom file's artifactId:
com.netceler.iv.core
 
[top] / com / netceler / iv / com.netceler.iv.log / 0.2
 
    Project Model groupId = 'com.netceler.iv' artifactId =
'com.netceler.iv.spring' version = '0.2' artifactId:
com.netceler.iv.spring does not match the pom file's artifactId:
com.netceler.iv.log
 
[top] / com / netceler / iv / com.netceler.iv.log.log4j / 0.2
 
    Project Model groupId = 'com.netceler.iv' artifactId =
'com.netceler.iv.spring' version = '0.2' artifactId:
com.netceler.iv.spring does not match the pom file's artifactId:
com.netceler.iv.log.log4j
 
[top] / com / netceler / iv / com.netceler.iv.boot / 0.2
 
    Project Model groupId = 'com.netceler.iv' artifactId =
'com.netceler.iv.spring' version = '0.2' artifactId:
com.netceler.iv.spring does not match the pom file's artifactId:
com.netceler.iv.boot
 
[top] / com / netceler / iv / com.netceler.iv.jetty / 0.2
 
    Project Model groupId = 'com.netceler.iv' artifactId =
'com.netceler.iv.spring' version = '0.2' artifactId:
com.netceler.iv.spring does not match the pom file's artifactId:
com.netceler.iv.jetty

All my artifacts have pbs: execpt the com.netceler.iv.spring which seems
to be the faulty one

I have a pom name com.netceler.iv, it's the parent of 6 others
artifacts, and it declares thems as modules :
com.netceler.iv.core
com.netceler.iv.log
com.netceler.iv.log.log4j
com.netceler.iv.spring
com.netceler.iv.jetty
com.netceler.iv.boot

I have double check com.netceler.iv.spring's pom but did not find any
errors..
I already have cleared archiva (db and repo), re-deploy all my
artifacts, but error remains..

What is wrong?

-- 
Julien Graglia
jgraglia@netceler.com