chutch

pom.xml

Jul 26th, 2014
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.83 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/maven-v4_0_0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>co.chudy.kairos</groupId>
  5.     <artifactId>spring-web</artifactId>
  6.     <packaging>war</packaging>
  7.     <version>0.0.1-SNAPSHOT</version>
  8.     <name>spring-web Maven Webapp</name>
  9.  
  10.     <properties>
  11.         <spring.version>4.0.2.RELEASE</spring.version>
  12.         <jdk.version>1.7</jdk.version>
  13.     </properties>
  14.  
  15.     <dependencies>
  16.         <dependency>
  17.             <groupId>junit</groupId>
  18.             <artifactId>junit</artifactId>
  19.             <version>3.8.1</version>
  20.             <scope>test</scope>
  21.         </dependency>
  22.         <dependency>
  23.             <groupId>org.springframework</groupId>
  24.             <artifactId>spring-context</artifactId>
  25.             <version>${spring.version}</version>
  26.             <scope>provided</scope>
  27.         </dependency>
  28.         <dependency>
  29.             <groupId>org.springframework</groupId>
  30.             <artifactId>spring-core</artifactId>
  31.             <version>${spring.version}</version>
  32.             <scope>provided</scope>
  33.         </dependency>
  34.         <dependency>
  35.             <groupId>org.springframework</groupId>
  36.             <artifactId>spring-web</artifactId>
  37.             <version>${spring.version}</version>
  38.             <scope>provided</scope>
  39.         </dependency>
  40.         <dependency>
  41.             <groupId>org.springframework</groupId>
  42.             <artifactId>spring-webmvc</artifactId>
  43.             <version>${spring.version}</version>
  44.             <scope>provided</scope>
  45.         </dependency>
  46.         <dependency>
  47.             <groupId>javax.servlet</groupId>
  48.             <artifactId>servlet-api</artifactId>
  49.             <version>2.5</version>
  50.             <scope>provided</scope>
  51.         </dependency>
  52.         <dependency>
  53.             <groupId>javax.servlet.jsp</groupId>
  54.             <artifactId>jsp-api</artifactId>
  55.             <version>2.1</version>
  56.             <scope>provided</scope>
  57.         </dependency>
  58.         <dependency>
  59.             <groupId>org.springframework.osgi</groupId>
  60.             <artifactId>spring-osgi-web</artifactId>
  61.             <version>1.2.1</version>
  62.             <scope>provided</scope>
  63.         </dependency>
  64.     </dependencies>
  65.     <build>
  66.         <finalName>spring-web</finalName>
  67.         <plugins>
  68.             <plugin>
  69.                 <groupId>org.apache.maven.plugins</groupId>
  70.                 <artifactId>maven-compiler-plugin</artifactId>
  71.                 <version>3.1</version>
  72.                 <configuration>
  73.                     <source>${jdk.version}</source>
  74.                     <target>${jdk.version}</target>
  75.                 </configuration>
  76.             </plugin>
  77.             <plugin>
  78.                 <groupId>org.apache.felix</groupId>
  79.                 <artifactId>maven-bundle-plugin</artifactId>
  80.                 <version>2.5.0</version>
  81.                 <extensions>true</extensions>
  82.                 <executions>
  83.                     <execution>
  84.                         <id>bundle-manifest</id>
  85.                         <phase>process-classes</phase>
  86.                         <goals>
  87.                             <goal>manifest</goal>
  88.                         </goals>
  89.                     </execution>
  90.                 </executions>
  91.                 <configuration>
  92.                     <supportedProjectTypes>
  93.                         <supportedProjectType>war</supportedProjectType>
  94.                         <supportedProjectType>bundle</supportedProjectType>
  95.                         <supportedProjectType>jar</supportedProjectType>
  96.                     </supportedProjectTypes>
  97.                     <instructions>
  98.                         <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
  99.                         <Bundle-Name>${project.name}</Bundle-Name>
  100.                         <Bundle-Vendor>Michal Chudy</Bundle-Vendor>
  101.                         <Export-Package>co.chudy.kairos.spring</Export-Package>
  102.                         <Web-ContextPath>kairos</Web-ContextPath>
  103.                         <Bundle-ClassPath>.,WEB-INF/classes,{maven-dependencies}</Bundle-ClassPath>
  104.                         <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
  105.                     </instructions>
  106.                 </configuration>
  107.             </plugin>
  108.             <plugin>
  109.                 <groupId>org.apache.maven.plugins</groupId>
  110.                 <artifactId>maven-war-plugin</artifactId>
  111.                 <configuration>
  112.                     <archive>
  113.                         <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  114.                     </archive>
  115.                 </configuration>
  116.             </plugin>
  117.         </plugins>
  118.     </build>
  119. </project>
Advertisement
Add Comment
Please, Sign In to add comment