andgau

Spring-Boot y Profiles

Nov 14th, 2015
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.89 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4.     <modelVersion>4.0.0</modelVersion>
  5.     <parent>
  6.         <!-- Your own application should inherit from spring-boot-starter-parent -->
  7.         <groupId>org.springframework.boot</groupId>
  8.         <artifactId>spring-boot-starter-parent</artifactId>
  9.         <version>1.2.5.RELEASE</version>
  10.     </parent>
  11.     <profiles>
  12.         <profile>
  13.             <id>local</id>
  14.             <properties>
  15.                 <localport>8888</localport>
  16.             </properties>
  17.             <activation>
  18.                 <activeByDefault>true</activeByDefault>
  19.             </activation>
  20.         </profile>
  21.         <profile>
  22.             <id>pre</id>
  23.             <properties>
  24.                 <localport>8080</localport>
  25.             </properties>
  26.             <activation>
  27.                 <activeByDefault>true</activeByDefault>
  28.             </activation>
  29.         </profile>
  30.         <profile>
  31.             <id>pro</id>
  32.             <properties>
  33.                 <localport>80</localport>
  34.             </properties>
  35.             <activation>
  36.                 <activeByDefault>true</activeByDefault>
  37.             </activation>
  38.         </profile>
  39.     </profiles>
  40.     <artifactId>restjpa</artifactId>
  41.     <groupId>es.sinjava</groupId>
  42.     <name>Spring Boot Data JPA Sample</name>
  43.     <description>Spring Boot Data JPA Sample</description>
  44.     <version>1.0</version>
  45.     <url>http://projects.spring.io/spring-boot/</url>
  46.     <!-- para que lo empaquete como un war -->
  47.     <packaging>war</packaging>
  48.     <organization>
  49.         <name>Pivotal Software, Inc.</name>
  50.         <url>http://www.spring.io</url>
  51.     </organization>
  52.     <properties>
  53.         <main.basedir>${basedir}/../..</main.basedir>
  54.     </properties>
  55.     <dependencies>
  56.         <dependency>
  57.             <groupId>org.springframework.boot</groupId>
  58.             <artifactId>spring-boot-starter-data-jpa</artifactId>
  59.         </dependency>
  60.         <dependency>
  61.             <groupId>org.springframework.boot</groupId>
  62.             <artifactId>spring-boot-starter-data-rest</artifactId>
  63.         </dependency>
  64.         <!-- Para que no meta las librerias del tomcat -->
  65.         <dependency>
  66.             <groupId>org.springframework.boot</groupId>
  67.             <artifactId>spring-boot-starter-tomcat</artifactId>
  68.             <scope>provided</scope>
  69.         </dependency>
  70.         <dependency>
  71.             <groupId>org.hsqldb</groupId>
  72.             <artifactId>hsqldb</artifactId>
  73.             <scope>runtime</scope>
  74.         </dependency>
  75.         <dependency>
  76.             <groupId>org.springframework.boot</groupId>
  77.             <artifactId>spring-boot-starter-test</artifactId>
  78.             <scope>test</scope>
  79.         </dependency>
  80.     </dependencies>
  81.     <build>
  82.         <plugins>
  83.             <plugin>
  84.                 <groupId>org.springframework.boot</groupId>
  85.                 <artifactId>spring-boot-maven-plugin</artifactId>
  86.             </plugin>
  87.             <plugin>
  88.                 <groupId>org.apache.tomcat.maven</groupId>
  89.                 <artifactId>tomcat7-maven-plugin</artifactId>
  90.                 <version>2.2</version>
  91.             </plugin>
  92.         </plugins>
  93.         <resources>
  94.             <resource>
  95.                 <directory>src/main/resources</directory>
  96.                 <filtering>true</filtering>
  97.             </resource>
  98.         </resources>
  99.     </build>
  100. </project>
Advertisement
Add Comment
Please, Sign In to add comment