我正在使用Spring Hibernate 4和spring security 3.1的spring mvc應用程序。我正在使用Maven作爲依賴管理工具。Spring 3.1 with spring 4 with spring security 3.1:我如何確保包含所有的dependencis以及包含哪些標籤?
如何確保包含所有依賴關係?有沒有一個網站,我可以輸入這些框架名稱,它會爲我生成pom?
嘗試:
所以我發現我需要的Spring MVC和Hibernate 4.1的所有依賴性。爲了防止其他人尋找類似的東西,我在這裏粘貼它。我現在就在彈簧安全的部分工作,一旦我配置它成功地更新這個帖子:
<properties>
<spring.version>3.1.1.RELEASE</spring.version>
<hibernate-version>4.1.1.Final</hibernate-version>
<mysql-version>5.1.20</mysql-version>
</properties>
<dependencies>
<!-- Spring framework -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency> <!-- Used for Hibernate4 LocalSessionFactoryBean -->
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- AOP dependency -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2.2</version>
</dependency>
<!-- Persistence Management -->
<dependency> <!-- Apache BasicDataSource -->
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.2.2</version>
</dependency>
<dependency> <!-- MySQL database driver -->
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-version}</version>
</dependency>
<dependency> <!-- Hibernate -->
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate-version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate-version}</version>
<!-- will come with Hibernate core -->
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
這不是maven的存在嗎? – hd1