Thank you, Simone, very much.:-D

Also,
1. registry-3.4.0-v20080516-0950.pom:
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.eclipse.equinox</groupId>
  <artifactId>registry</artifactId>
  <name>Extension Registry Support</name>
  <version>3.4.0-v20080516-0950</version>
  <licenses>
    <license>
      <name>Eclipse Public License - v 1.0</name>
      <url>http://www.eclipse.org/org/documents/epl-v10.html</url>
    </license>
  </licenses>
  <dependencies>
    <dependency>
      <groupId>org.eclipse.equinox</groupId>
      <artifactId>common</artifactId>
      <version>[3.2.0,4.0.0)</version>
    </dependency>
  </dependencies>
</project>

2. I've created it with eclipse:to-maven and then copied in my local
repository.

3. The problem is that my project isn't quite Maven project. It is RCP
Project, that I want to build with Maven. I've created a simple Maven
project with a dependency from
org.eclipse.equinox.registry-3.4.0-v20080516-0950 and Maven has immediately
found it. The error happens only if I try to build my RCP project, Maven
cannot find this version in my local repository. %-| %-| %-|

Buters


Simone Gianni-2 wrote:
> 
> Hi Butlers,
> sorry, my mistake. In fact, watching better the error screenshot you
> posted, it is failing to find equinox-registry, which as you properly
> explained is in your local repository, and not equinox-common, which I
> thought about seeing that you posted that dependency.
> 
> Are you sure the version element in the equinox-registry POM file in
> your local repository has the right gpoupid-artifactid-version in it?
> Seems like Maven is not seeing it, and going to the remote repository to
> find it.
> 
> Can you post the pom file that should be on you hard disk in
> c:\Documents and
> settings\yourusername\.m2\repository\org\eclipse\equinox\registry\3.4.0-v20080516-0950\....pom?
> 
> Also, have you used maven to install it in your local repository? Or
> just copied the file over there by hand?
> 
> Simone
> 
> buters wrote:
>> Thank  you, Simone, very much. :-)
>>
>> I think that the analyse is very helpful, but I guess that I have an
>> another
>> case. :-(
>>
>> I've looked at
>> http://repo1.maven.org/maven2/org/eclipse/equinox/registry/
>> There are two artefact versions there: 3.2.1-R32x_v20060814 and
>> 3.3.0-v20070522. I.e. exactly those ones that is displayed in the error.
>> But
>> the correct version of org.eclipse.equinox.registry,
>> 3.4.0-v20080516-0950, 
>> exists only in my local repository and it's conform with the range
>> [3.4.0,4.0.0).
>>
>> Also Maven is looking for in the remote repository and ignoring the
>> version
>> of the local one.
>>
>> Why? 8-O 8-O 8-O
>>
>>
>> Simone Gianni-2 wrote:
>>   
>>> Hi Buters,
>>> seems like it is not searching for equinox-common-3.2.* but for
>>> equinox-common-3.4.x, and fails to find a 3.4 or higher version, cause
>>> only 3.2.1 and 3.3.0 are present, both under the 3.4-4.0 range.
>>>
>>> Probably some other dependency is raising the minimum version range, and
>>> Maven will always try to fetch a recent version (3.4.x in this case) to
>>> avoid errors.
>>>
>>> You could try using mvn dependency:analyze goal to perform an analysis
>>> of all dependencies and see who is requiring equinox-common version 3.4
>>> or better. See http://maven.apache.org/plugins/maven-dependency-plugin/
>>> for more deails on how dependency plugin works.
>>>
>>> Also, running maven with the -X switch will give you detailed
>>> informations (debug stuff) where you can find why it decides to search
>>> for 3.4 instead of 3.2.
>>>
>>> Hope this helps,
>>> Simone
>>>
>>>
>>> buters wrote:
>>>     
>>>> Hi all,
>>>>
>>>> http://www.nabble.com/file/p19825141/rcp_err.png 
>>>>
>>>> There is org.eclipse.equinox.registry-3.4.0-v20080516-0950.jar In my
>>>> local
>>>> repository. 
>>>> There is one dependency in its pom.xml:
>>>>   <dependencies>
>>>>     <dependency>
>>>>       <groupId>org.eclipse.equinox</groupId>
>>>>       <artifactId>common</artifactId>
>>>>       <version>[3.2.0,4.0.0)</version>
>>>>     </dependency>
>>>>   </dependencies>
>>>>
>>>> The question: where should I search for [3.2.1-R32x_v20060814,
>>>> 3.3.0-v20070522] and [3.4.0,4.0.0)???
>>>> :confused::confused::confused:
>>>>
>>>> Thanks beforehand,
>>>> regards, buters
>>>>   
>>>>       
>>> -- 
>>> Simone Gianni            CEO Semeru s.r.l.           Apache Committer
>>> MALE human being programming a computer   http://www.simonegianni.it/
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>     
>>
>>   
> 
> 
> -- 
> Simone Gianni            CEO Semeru s.r.l.           Apache Committer
> MALE human being programming a computer   http://www.simonegianni.it/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%22Couldn%27t-find-a-version%22-error-tp19825141p19828480.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to