I believe the 2.5.6 issue is due to Spring using a non-standard format for 
their release in 3.0.0.RELEASE (should be 
<major>.<minor>.<incremental>-<qualifier> with only <qualifier> being alpha) 
and so the camel-spring dependency of [2.5,4) does not work.

--Tim

On Feb 17, 2010, at 4:11 PM, vcheruvu wrote:

> 
> I have upgraded camel to 2.2. Then tried mvn install. I noticed camel 2.2
> still use spring 2.5.6 dependency jars instead of downloading Spring 3.0. 
> Then I have tried again mvn camel:dot , this time i have an issue cglib
> 
> [INFO] Scanning for projects...
> WAGON_VERSION: 1.0-beta-2
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Business Event Loader
> [INFO]    task-segment: [camel:dot]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing camel:dot
> [INFO] [resources:resources]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 4 resources
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> Downloading:
> http://host:49080/archiva/repository/tnc_repos//net/sourceforge/cglib/com.springsource.net.sf.cglib/2.1.3/com.springsource.net.sf.cglib-2.1.3.pom
> [INFO] Unable to find resource
> 'net.sourceforge.cglib:com.springsource.net.sf.cglib:pom:2.1.3' in
> repository com.springsource.repository.bundles.external
> (http://repository.springsource.com/maven/bundles/external)
> Downloading:
> http://host:49080/archiva/repository/tnc_repos//net/sourceforge/cglib/com.springsource.net.sf.cglib/2.1.3/com.springsource.net.sf.cglib-2.1.3.pom
> [INFO] Unable to find resource
> 'net.sourceforge.cglib:com.springsource.net.sf.cglib:pom:2.1.3' in
> repository central (http://repo1.maven.org/maven2)
> Downloading:
> http://host:49080/archiva/repository/tnc_repos//net/sourceforge/cglib/com.springsource.net.sf.cglib/2.1.3/com.springsource.net.sf.cglib-2.1.3.jar
> [INFO] Unable to find resource
> 'net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.1.3' in
> repository com.springsource.repository.bundles.external
> (http://repository.springsource.com/maven/bundles/external)
> Downloading:
> http://host:49080/archiva/repository/tnc_repos//net/sourceforge/cglib/com.springsource.net.sf.cglib/2.1.3/com.springsource.net.sf.cglib-2.1.3.jar
> [INFO] Unable to find resource
> 'net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.1.3' in
> repository central (http://repo1.maven.org/maven2)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> Missing:
> ----------
> 1) net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.1.3
> 
>  Try downloading the file manually from the project website.
> 
>  Then, install it using the command: 
>      mvn install:install-file -DgroupId=net.sourceforge.cglib
> -DartifactId=com.springsource.net.sf.cglib -Dversion=2.1.3 -Dpackaging=jar
> -Dfile=/path/to/file
> 
>  Alternatively, if you host your own repository you can deploy the file
> there: 
>      mvn deploy:deploy-file -DgroupId=net.sourceforge.cglib
> -DartifactId=com.springsource.net.sf.cglib -Dversion=2.1.3 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> 
>  Path to dependency: 
>       1) org.apache.camel:camel-maven-plugin:maven-plugin:2.2.0
>       2) org.apache.camel:camel-spring-javaconfig:jar:2.2.0
>       3) net.sourceforge.cglib:com.springsource.net.sf.cglib:jar:2.1.3
> 
> ----------
> 1 required artifact is missing.
> 
> for artifact: 
>  org.apache.camel:camel-maven-plugin:maven-plugin:2.2.0
> 
> from the specified remote repositories:
>  tnc_archiva_mirror (http://host:49080/archiva/repository/tnc_repos/)
> 
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Thu Feb 18 10:46:51 EST 2010
> [INFO] Final Memory: 21M/39M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> mvnrepository site doesn't have this com.springsource.net.sf.cglib groupid .
> Is there something i am missing? I have uploaded the file which has an
> output after upgrading camel to 2.2 and executed mvn install to download new
> jar files for camel 2.2. http://old.nabble.com/file/p27632595/log11.txt
> log11.txt 
> 
> 
> 
> Claus Ibsen-2 wrote:
>> 
>> Hi
>> 
>> Yeah those Spring folks newer got around releasing their JavaConfig
>> project very often.
>> Not AFAIR its @deprecated as its being part of Spring 3.0 core onwards.
>> 
>> At Camel 2.2 we have support for Spring 3.0 which in fact makes
>> camel-spring-javaconfig use Spring 3.0.0.RELEASE.
>> 
>> So upgrade to 2.2 and you should not have that old Spring JavaConfig
>> dependency anymore.
>> 
>> 
>> On Wed, Feb 17, 2010 at 5:29 AM, vcheruvu <[email protected]>
>> wrote:
>>> 
>>> Hi,
>>> 
>>> We are using Archiva repository to locally store all the jars needed for
>>> projects. Archiva can automatically download jars from
>>> http://mvnrepository.com/  when there are jar files not found in the
>>> archiva
>>> repo. So, I have tried to run camel:dot and we are unable to download
>>> org.springframework.config.java with version 1.0.0-20090215 from archiva.
>>> The mvnrepository site only has 1.0.0-m3 version. Unfortunately i have
>>> come
>>> to know that, camel-spring-javaconfig (2.1.0) is referencing to version
>>> 1.0.0-20090215. So, even if i use 1.0.0-m3, it won't resolve the issue.
>>> So,
>>> i have manually added org.springframework.config.java/1.0.0-20090215 in
>>> my
>>> local machine repository just to get it working. Then i moved on to next
>>> problem where camel maven plugin  has transitive dependency to groupid =
>>> org.springframework.context, version =2.5.6 but our archiva has groupid =
>>> org.springframework and artifactid =spring-context ... I thought it would
>>> be
>>> silly to add org.springframework.context groupid in archiva when  jar
>>> file
>>> already exist in the groupid = org.springframework, artifactid=
>>> spring-context. What is the standard for naming artifacts and groupid ? I
>>> am
>>> finding it hard to deal with camel dependencies and run mvn camel:dot.
>>> Can
>>> you please advise how i can resolve this issue? Any hints greatly
>>> appreciated.
>>> 
>>> Regards,
>>> -Vid-
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Maven-repository-tp27618995p27618995.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> Claus Ibsen
>> Apache Camel Committer
>> 
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Maven-repository-tp27618995p27632595.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
> 

Reply via email to