Remove the aop alliance dependency and also make sure you use the same
version of Spring. You use 2+ different versions which is not good.

On Sat, Aug 24, 2013 at 9:03 AM, contactreji <contactr...@gmail.com> wrote:
> Hi
>
> I am just trying to build a project but I get build error as follows
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ID59-MES-TO-SAPBW-Energy-Consumption-Interface
> 1.0.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
> Downloaded:
> http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
> (366 B at 0.1 KB/sec)
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> Downloaded:
> http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
> (427 B at 0.3 KB/sec)
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/ea/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
> Downloaded:
> http://repo.fusesource.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
> (371 B at 0.3 KB/sec)
> [WARNING] The POM for
> org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 is invalid,
> transitive dependencies (if any) will not be available, enable debug logging
> for more details
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/public/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
> Downloading:
> http://repo.fusesource.com/nexus/content/groups/ea/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
> Downloading:
> https://github.com/SpringSource/spring-framework/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
> Downloading:
> https://oss.sonatype.org/content/repositories/springsource-releases/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
> Downloading:
> http://repo.maven.apache.org/maven2/org/aopalliance/com.springsource.org.aopalliance/1.0.0/com.springsource.org.aopalliance-1.0.0.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 18.114s
> [INFO] Finished at: Sat Aug 24 00:00:27 PDT 2013
> [INFO] Final Memory: 9M/22M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project id59-mes-bw-ec: Could not resolve
> dependencies for project com.outotec:id59-mes-bw-ec:bundle:1.0.0-SNAPSHOT:
> Could not find artifact
> org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 in fusesource
> (http://repo.fusesource.com/nexus/content/groups/public/) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
>
>
>
>
> I tried my best to add the dependency in all possible ways. But still I am
> findin the Dependency Resolution Exception in my project for the same
> AOPALLIANCE.jar
> Please have a look at my dependency from POM
>
>
>         <dependencies>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-jdbc</artifactId>
>                         <version>2.0.6</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>org.springframework.jdbc</artifactId>
>                         <version>3.0.5.RELEASE</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-aspects</artifactId>
>                         <version>3.2.3.RELEASE</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-core</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-cxf</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>commons-lang</groupId>
>                         <artifactId>commons-lang</artifactId>
>                         <version>2.6</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>log4j</groupId>
>                         <artifactId>log4j</artifactId>
>                         <version>1.2.16</version>
>                 </dependency>
>
>
>                 <dependency>
>                         <groupId>org.slf4j</groupId>
>                         <artifactId>slf4j-api</artifactId>
>                         <version>1.6.1</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.slf4j</groupId>
>                         <artifactId>slf4j-log4j12</artifactId>
>                         <version>1.6.1</version>
>                 </dependency>
>
>
>                 <dependency>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-rt-transports-http-jetty</artifactId>
>                         <version>2.6.0.fuse-71-047</version>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.camel</groupId>
>                         <artifactId>camel-test-spring</artifactId>
>                         <version>2.10.0.fuse-71-047</version>
>                         <scope>test</scope>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>junit</groupId>
>                         <artifactId>junit</artifactId>
>                         <version>4.10</version>
>                         <scope>test</scope>
>                 </dependency>
>
>                 <dependency>
>                         <groupId>org.apache.commons</groupId>
>                         <artifactId>commons-lang3</artifactId>
>                         <version>3.1</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.apache.cxf</groupId>
>                         <artifactId>cxf-rt-bindings-soap</artifactId>
>                         <version>2.7.5</version>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.aopalliance</groupId>
>                         
> <artifactId>com.springsource.org.aopalliance</artifactId>
>                         <version>1.0.0</version>
>                 </dependency>
>         </dependencies>
>
> Please help me regarding this issue..
>
> Reji
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problem-with-AOPALLIANCE-dependency-tp5737848.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to