java - Maven dependencies for Spring beans & Hibernate -
I am trying to define reliance for Spring End; Hibernating on a Maven project on NetBeans is a "Maven Webpap", although I'm using spring only for its bean container - MVC is not a web component of the project is very light and I am doing it myself on the servicing . Here's the question "Why Maven": Maven is on this project for some other components coming in backend. The dependency in
I tried this and some other things, I am having the following error: 1) What am I doing wrong ??? 2) Do I need to use the Note: I saw and some other queues with the same line. TIA pom.xml is as follows:
& lt; Dependency & gt; & Lt; Group & gt; JUnit & lt; / Group & gt; & Lt; ArtifactId & gt; JUnit & lt; / ArtifactId> & Lt; Version & gt; 3.8.1 & lt; / Edition & gt; & Lt; Scope & gt; Trial & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework & lt; / Group & gt; & Lt; ArtifactId & gt; Spring & lt; / ArtifactId> & Lt; Version & gt; 2.5.6 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt ;! - Spring AOP dependence - & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-aop & lt; / ArtifactId> & Lt; Version & gt; 4.0.1.RELEASE & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Mysql & lt; / Group & gt; & Lt; ArtifactId & gt; Mysql-connector-java & lt; / ArtifactId> & Lt; Version & gt; 5.1.25 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.hibernate & lt; / Group & gt; & Lt; ArtifactId & gt; Hibernate & lt; / ArtifactId> & Lt; Version & gt; 3.2.3.ga & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt ;! - Hibernate Library Start - & gt; & Lt; Dependency & gt; & Lt; Group & gt; Dom4j & lt; / Group & gt; & Lt; ArtifactId & gt; Dom4j & lt; / ArtifactId> & Lt; Version & gt; 1.6.1 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Commons-Logging & lt; / Group & gt; & Lt; ArtifactId & gt; Commons-Logging & lt; / ArtifactId> & Lt; Version & gt; 1.1.1 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Commons-collection & lt; / Group & gt; & Lt; ArtifactId & gt; Commons-collection & lt; / ArtifactId> & Lt; Version & gt; 3.2.1 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Antlr & lt; / Group & gt; & Lt; ArtifactId & gt; Antlr & lt; / ArtifactId> & Lt; Version & gt; 2.7.7 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt ;! - Hibernate Library End - & gt;
Failed to execute the target on some project: Dependency The project could not be resolved SomePrj.root: SomePrj: War: 1.0-Snapshot: Failure to find javax.transaction: in http://ta.maven.apache.org/maven2 local reserves in jta: jar: 1.0.1B The cache was done, until the interval of the interval of the central government ceases or forced the updates - - & gt; [Help 1]
spring-aop dependency in the spring bean container only?
pom.xml & Amp; Worked:
& lt; Project & gt; ... & lt; Repository & gt; & Lt; Stores & gt; & Lt; ID & gt; Central & lt; / Id & gt; & Lt; URL & gt; Http: //java.sun.com/products/jta< / URL & gt; & Lt; / Stores & gt; & Lt; / Treasures & gt; ... & lt; / Project & gt;
Comments
Post a Comment