I am trying to add dependency to my project. I have already added the Maven plugin to this link with my link
Here I have been generated pom.xml
& lt; Project xmlns = "http: // maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema -instance" xsi: schema location = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Group & gt; Dddddd & lt; / Group & gt; & Lt; ArtifactId & gt; Ss & lt; / ArtifactId> & Lt; Version & gt; 0.0.1-snapshot and lt; / Edition & gt; & Lt; Packaging & gt; Jar & lt; / Packaging & gt; & Lt; Name & gt; Ss & lt; / Name & gt; & Lt; URL & gt; Http: //maven.apache.org< / URL & gt; & Lt; Properties & gt; & Lt; Project.build.sourceEncoding & gt; UTF-8 & LT; /project.build.sourceEncoding> & Lt; / Properties & gt; & Lt; Dependency & gt; & 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; / Dependencies & gt; & Lt; / Project & gt;
But I'm trying to add different dependencies like mysql-connector-java + hibernate + spring < / Strong>
Am I able to add some of these dependencies Can you please tell me that additional dependencies to create a simple MVC project to use Spring with Hibernate + SQL? Are you After adding proper dependence, I am trying to build my first project.
pom.xml
& lt; Xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "http: // Maven .apache.org / POM / 4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Group & gt; Dddddd & lt; / Group & gt; & Lt; ArtifactId & gt; Ss & lt; / ArtifactId> & Lt; Version & gt; 0.0.1-snapshot and lt; / Edition & gt; & Lt; Packaging & gt; Jar & lt; / Packaging & gt; & Lt; Name & gt; Ss & lt; / Name & gt; & Lt; URL & gt; Http: //maven.apache.org< / URL & gt; & Lt; Properties & gt; & Lt; Project.build.sourceEncoding & gt; UTF-8 & LT; /project.build.sourceEncoding> & Lt; / Properties & gt; & Lt; Dependency & gt; & 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 ;! - Spring dependence - & 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; Dependency & gt; & Lt; Group & gt; Cglib & lt; / Group & gt; & Lt; ArtifactId & gt; Cglib & lt; / ArtifactId> & Lt; Version & gt; 2.2 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt ;! - Spring dependence - & gt; & Lt ;! - Hibernate annotation - & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.hibernate.common & lt; / Group & gt; & Lt; ArtifactId & gt; Hibernate-Commons-Annotation & lt; / ArtifactId> & Lt; Version & gt; 4.0.1.Final & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt ;! - Hibernate library dependency 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 dependency end - & gt; & Lt ;! - SKL dependency - & gt; & Lt; Dependency & gt; & Lt; Group & gt; Mysql & lt; / Group & gt; & Lt; ArtifactId & gt; Mysql-connector-java & lt; / ArtifactId> & Lt; Version & gt; 5.1.10 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt ;! - SQL dependence end - & gt; & Lt; / Dependencies & gt; & Lt; / Project & gt;
You can use the Spring Belly Clinic as a reference. Dependency here List of
Hopes
No comments:
Post a Comment