Advertisement
Javi

Ejemplo POM: Spring + Hibernate en escritorio

Dec 22nd, 2012
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.03 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>com.javiermoreno.dominajava</groupId>
  5.     <artifactId>SpringHolaMundo</artifactId>
  6.     <version>0.0.1-SNAPSHOT</version>
  7.     <name>yyy</name>
  8.  
  9.     <properties>
  10.         <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  11.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12.         <geotools.version>8.2</geotools.version>
  13.         <geotools.scope>compile</geotools.scope>
  14.         <org.springframework.version>3.1.2.RELEASE</org.springframework.version>
  15.         <!-- <org.springframework.version>3.1.2.RELEASE</org.springframework.version>
  16.             <org.springframework.version>3.0.7.RELEASE</org.springframework.version> -->
  17.         <org.springframework.scope>compile</org.springframework.scope>
  18.         <org.hibernate.scope>compile</org.hibernate.scope>
  19.         <org.hibernate.version>4.1.4.Final</org.hibernate.version>
  20.         <aux.scope>compile</aux.scope>
  21.         <exclude.scope>compile</exclude.scope>
  22.         <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
  23.     </properties>
  24.     <dependencies>
  25.  
  26.         <dependency>
  27.             <groupId>javax.inject</groupId>
  28.             <artifactId>javax.inject</artifactId>
  29.             <version>1</version>
  30.             <scope>compile</scope>
  31.         </dependency>
  32.         <dependency>
  33.             <groupId>javax.servlet</groupId>
  34.             <artifactId>servlet-api</artifactId>
  35.             <version>2.5</version>
  36.             <scope>provided</scope>
  37.         </dependency>
  38.         <!-- Core utilities used by other modules. Define this if you use Spring
  39.             Utility APIs (org.springframework.core.*/org.springframework.util.*) -->
  40.         <dependency>
  41.             <groupId>org.springframework</groupId>
  42.             <artifactId>spring-core</artifactId>
  43.             <version>${org.springframework.version}</version>
  44.             <scope>${org.springframework.scope}</scope>
  45.         </dependency>
  46.  
  47.         <!-- Expression Language (depends on spring-core) Define this if you use
  48.             Spring Expression APIs (org.springframework.expression.*) -->
  49.         <dependency>
  50.             <groupId>org.springframework</groupId>
  51.             <artifactId>spring-expression</artifactId>
  52.             <version>${org.springframework.version}</version>
  53.             <scope>${org.springframework.scope}</scope>
  54.         </dependency>
  55.  
  56.         <!-- Bean Factory and JavaBeans utilities (depends on spring-core) Define
  57.             this if you use Spring Bean APIs (org.springframework.beans.*) -->
  58.         <dependency>
  59.             <groupId>org.springframework</groupId>
  60.             <artifactId>spring-beans</artifactId>
  61.             <version>${org.springframework.version}</version>
  62.             <scope>${org.springframework.scope}</scope>
  63.         </dependency>
  64.  
  65.         <!-- Aspect Oriented Programming (AOP) Framework (depends on spring-core,
  66.             spring-beans) Define this if you use Spring AOP APIs (org.springframework.aop.*) -->
  67.         <dependency>
  68.             <groupId>org.springframework</groupId>
  69.             <artifactId>spring-aop</artifactId>
  70.             <version>${org.springframework.version}</version>
  71.             <scope>${org.springframework.scope}</scope>
  72.         </dependency>
  73.  
  74.         <dependency>
  75.             <groupId>org.springframework</groupId>
  76.             <artifactId>spring-aspects</artifactId>
  77.             <version>${org.springframework.version}</version>
  78.             <scope>${org.springframework.scope}</scope>
  79.         </dependency>
  80.  
  81.         <!-- Application Context (depends on spring-core, spring-expression, spring-aop,
  82.             spring-beans) This is the central artifact for Spring's Dependency Injection
  83.             Container and is generally always defined -->
  84.         <dependency>
  85.             <groupId>org.springframework</groupId>
  86.             <artifactId>spring-context</artifactId>
  87.             <version>${org.springframework.version}</version>
  88.             <scope>${org.springframework.scope}</scope>
  89.         </dependency>
  90.  
  91.         <!-- Various Application Context utilities, including EhCache, JavaMail,
  92.             Quartz, and Freemarker integration Define this if you need any of these integrations
  93.             <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId>
  94.             <version>${org.springframework.version}</version> <scope>${org.springframework.scope}</scope>
  95.             </dependency> -->
  96.  
  97.         <!-- Transaction Management Abstraction (depends on spring-core, spring-beans,
  98.             spring-aop, spring-context) Define this if you use Spring Transactions or
  99.             DAO Exception Hierarchy (org.springframework.transaction.*/org.springframework.dao.*) -->
  100.         <dependency>
  101.             <groupId>org.springframework</groupId>
  102.             <artifactId>spring-tx</artifactId>
  103.             <version>${org.springframework.version}</version>
  104.             <scope>${org.springframework.scope}</scope>
  105.         </dependency>
  106.  
  107.         <!-- JDBC Data Access Library (depends on spring-core, spring-beans, spring-context,
  108.             spring-tx) Define this if you use Spring's JdbcTemplate API (org.springframework.jdbc.*)
  109.             <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId>
  110.             <version>${org.springframework.version}</version> <scope>${org.springframework.scope}</scope>
  111.             </dependency> -->
  112.  
  113.         <!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA,
  114.             and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx)
  115.             Define this if you need ORM (org.springframework.orm.*) -->
  116.         <dependency>
  117.             <groupId>org.springframework</groupId>
  118.             <artifactId>spring-orm</artifactId>
  119.             <version>${org.springframework.version}</version>
  120.             <scope>${org.springframework.scope}</scope>
  121.         </dependency>
  122.  
  123.         <!-- Object-to-XML Mapping (OXM) abstraction and integration with JAXB,
  124.             JiBX, Castor, XStream, and XML Beans. (depends on spring-core, spring-beans,
  125.             spring-context) Define this if you need OXM (org.springframework.oxm.*) <dependency>
  126.             <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId>
  127.             <version>${org.springframework.version}</version> <scope>${org.springframework.scope}</scope>
  128.             </dependency> -->
  129.  
  130.         <!-- Web application development utilities applicable to both Servlet and
  131.             Portlet Environments (depends on spring-core, spring-beans, spring-context)
  132.             Define this if you use Spring MVC, or wish to use Struts, JSF, or another
  133.             web framework with Spring (org.springframework.web.*)
  134.         <dependency>
  135.             <groupId>org.springframework</groupId>
  136.             <artifactId>spring-web</artifactId>
  137.             <version>${org.springframework.version}</version>
  138.             <scope>${org.springframework.scope}</scope>
  139.         </dependency>
  140.         -->
  141.         <!-- Spring MVC for Servlet Environments (depends on spring-core, spring-beans,
  142.             spring-context, spring-web) Define this if you use Spring MVC with a Servlet
  143.             Container such as Apache Tomcat (org.springframework.web.servlet.*)
  144.         <dependency>
  145.             <groupId>org.springframework</groupId>
  146.             <artifactId>spring-webmvc</artifactId>
  147.             <version>${org.springframework.version}</version>
  148.             <scope>${org.springframework.scope}</scope>
  149.         </dependency>
  150.                 -->
  151.        
  152.  
  153.         <!-- Spring MVC for Portlet Environments (depends on spring-core, spring-beans,
  154.             spring-context, spring-web) Define this if you use Spring MVC with a Portlet
  155.             Container (org.springframework.web.portlet.*) <dependency> <groupId>org.springframework</groupId>
  156.             <artifactId>spring-webmvc-portlet</artifactId> <version>${org.springframework.version}</version>
  157.             <scope>${org.springframework.scope}</scope> </dependency> -->
  158.  
  159.         <!-- Support for testing Spring applications with tools such as JUnit and
  160.             TestNG This artifact is generally always defined with a 'test' scope for
  161.             the integration testing framework and unit testing stubs <dependency> <groupId>org.springframework</groupId>
  162.             <artifactId>spring-test</artifactId> <version>${org.springframework.version}</version>
  163.             <scope>test</scope> </dependency> -->
  164.  
  165.         <dependency>
  166.             <groupId>org.aspectj</groupId>
  167.             <artifactId>aspectjrt</artifactId>
  168.             <version>1.6.11</version>
  169.             <scope>${org.springframework.scope}</scope>
  170.         </dependency>
  171.  
  172.         <dependency>
  173.             <groupId>org.aspectj</groupId>
  174.             <artifactId>aspectjweaver</artifactId>
  175.             <version>1.6.11</version>
  176.             <scope>${org.springframework.scope}</scope>
  177.         </dependency>
  178.  
  179.         <dependency>
  180.             <groupId>cglib</groupId>
  181.             <artifactId>cglib</artifactId>
  182.             <version>2.2.2</version>
  183.         </dependency>
  184.  
  185.         <dependency>
  186.             <groupId>org.hibernate</groupId>
  187.             <artifactId>hibernate-entitymanager</artifactId>
  188.             <version>${org.hibernate.version}</version>
  189.             <scope>${org.hibernate.scope}</scope>
  190.         </dependency>
  191.  
  192.         <dependency>
  193.             <groupId>javassist</groupId>
  194.             <artifactId>javassist</artifactId>
  195.             <version>3.12.1.GA</version>
  196.         </dependency>
  197.  
  198.  
  199.  
  200.         <dependency>
  201.             <groupId>commons-lang</groupId>
  202.             <artifactId>commons-lang</artifactId>
  203.             <version>2.1</version>
  204.             <type>jar</type>
  205.             <scope>${aux.scope}</scope>
  206.         </dependency>
  207.         <dependency>
  208.             <groupId>log4j</groupId>
  209.             <artifactId>log4j</artifactId>
  210.             <version>1.2.17</version>
  211.             <scope>${aux.scope}</scope>
  212.         </dependency>
  213.         <dependency>
  214.             <groupId>org.slf4j</groupId>
  215.             <artifactId>slf4j-api</artifactId>
  216.             <version>1.6.6</version>
  217.             <scope>${aux.scope}</scope>
  218.         </dependency>
  219.         <dependency>
  220.             <groupId>org.slf4j</groupId>
  221.             <artifactId>slf4j-log4j12</artifactId>
  222.             <version>1.6.6</version>
  223.             <scope>${aux.scope}</scope>
  224.         </dependency>
  225.         <dependency>
  226.             <groupId>jdom</groupId>
  227.             <artifactId>jdom</artifactId>
  228.             <version>1.0</version>
  229.             <type>jar</type>
  230.             <scope>${aux.scope}</scope>
  231.         </dependency>
  232.         <dependency>
  233.             <groupId>org.codehaus.jackson</groupId>
  234.             <artifactId>jackson-mapper-asl</artifactId>
  235.             <version>1.9.9</version>
  236.             <scope>${org.springframework.scope}</scope>
  237.         </dependency>
  238.         <dependency>
  239.             <groupId>org.codehaus.jackson</groupId>
  240.             <artifactId>jackson-xc</artifactId>
  241.             <version>1.9.9</version>
  242.             <scope>${org.springframework.scope}</scope>
  243.         </dependency>
  244.         <dependency>
  245.             <groupId>commons-io</groupId>
  246.             <artifactId>commons-io</artifactId>
  247.             <version>1.4</version>
  248.             <type>jar</type>
  249.             <scope>${aux.scope}</scope>
  250.         </dependency>
  251.         <dependency>
  252.             <groupId>org.apache.poi</groupId>
  253.             <artifactId>poi</artifactId>
  254.             <version>3.8</version>
  255.             <scope>${exclude.scope}</scope>
  256.         </dependency>
  257.         <dependency>
  258.             <groupId>org.apache.httpcomponents</groupId>
  259.             <artifactId>httpclient</artifactId>
  260.             <version>4.2.1</version>
  261.             <scope>compile</scope>
  262.         </dependency>
  263.         <dependency>
  264.             <groupId>junit</groupId>
  265.             <artifactId>junit</artifactId>
  266.             <version>3.8.1</version>
  267.             <scope>test</scope>
  268.         </dependency>
  269.         <dependency>
  270.             <groupId>org.apache.derby</groupId>
  271.             <artifactId>derby</artifactId>
  272.             <version>10.8.2.2</version>
  273.         </dependency>
  274.     </dependencies>
  275.     <repositories>
  276.         <repository>
  277.             <id>springsource-repo</id>
  278.             <name>SpringSource Repository</name>
  279.             <url>http://repo.springsource.org/release</url>
  280.         </repository>
  281.  
  282.         <repository>
  283.             <id>hibernate-repo</id>
  284.             <name>Hibernate Repository</name>
  285.             <url>https://repository.jboss.org/nexus/content/groups/public/org/hibernate</url>
  286.         </repository>
  287.         <repository>
  288.             <id>maven2-repository.dev.java.net</id>
  289.             <name>Java.net repository</name>
  290.             <url>http://download.java.net/maven/2</url>
  291.         </repository>
  292.     </repositories>
  293.  
  294.  
  295. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement