| POM: |
Show
hide
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>samples</artifactId>
<groupId>org.ops4j.pax.web</groupId>
<version>4.2.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>org.ops4j.pax.web.samples</groupId>
<artifactId>war-jsf-primefaces</artifactId>
<packaging>war</packaging>
<properties>
<bundle.symbolicName>org.ops4j.pax.web.samples.web-jsf</bundle.symbolicName>
<bundle.namespace>org.ops4j.pax.web.samples</bundle.namespace>
<jsf-myfaces.version>2.1.15</jsf-myfaces.version>
<jsf-ri.version>1.2_13</jsf-ri.version>
<maven.jetty.plugin.version>6.1.16</maven.jetty.plugin.version>
<log4j.version>1.2.13</log4j.version>
<!-- <tomcat.version>6.0.29</tomcat.version> -->
<asm.bundle.version>3.3_1</asm.bundle.version>
</properties>
<name>OPS4J Pax Web - Samples - WAR Extender - JSF</name>
<build>
<!-- <finalName>myfaces-test-helloworld-osgi-pax-web</finalName> -->
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<_wab>src/main/webapp</_wab>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Import-Package>
javax.el,
javax.faces.webapp,
javax.servlet.jsp;version="[2.2.0,3.0.0)",
javax.servlet.jsp.jstl.core;version="1.2",
javax.servlet.jsp.jstl.fmt;version="1.2",
javax.servlet.jsp.jstl.tlv;version="1.2",
javax.servlet;version="[2.6.0,4.0.0)",
javax.servlet.http;version="[2.6.0,4.0.0)",
org.apache.taglibs.standard.resources;version="1.1.2",
org.apache.taglibs.standard.tag.common.core;version="1.1.2",
org.apache.taglibs.standard.tag.rt.core;version="1.1.2",
org.apache.taglibs.standard.tei;version="1.1.2",
org.apache.taglibs.standard.tlv;version="1.1.2",
javax.faces.*,
org.apache.myfaces.webapp,
org.apache.myfaces.config,
org.apache.myfaces.config.impl,
org.apache.myfaces.config.impl.digester,
org.apache.myfaces.config.impl.digester.elements,
*
</Import-Package>
<Export-Package>!*</Export-Package>
<Bundle-Classpath>WEB-INF/classes, WEB-INF/lib</Bundle-Classpath>
<Web-ContextPath>war-jsf-primefaces-sample</Web-ContextPath>
<Require-Bundle>
org.primefaces;visibility:=reexport
</Require-Bundle>
<_removeheaders>
Include-Resource,
Private-Package,
Embed-Dependency,
Embed-Transitive
</_removeheaders>
</instructions>
</configuration>
<!-- <executions> -->
<!-- <execution> -->
<!-- <id>generate-manifest</id> -->
<!-- <phase>process-classes</phase> -->
<!-- <goals> -->
<!-- <goal>manifest</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
</plugin>
<!-- <plugin> -->
<!-- <artifactId>maven-war-plugin</artifactId> -->
<!-- <configuration> -->
<!-- <archive> -->
<!-- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> -->
<!-- </archive> -->
<!-- </configuration> -->
<!-- </plugin> -->
</plugins>
</build>
<profiles>
<profile>
<id>myfaces</id>
<activation>
<property>
<name>!jsf</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${jsf-myfaces.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${jsf-myfaces.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<!-- Active adding -Djsf=ri when execute maven goals. -->
<id>jsf-ri</id>
<activation>
<property>
<name>jsf</name>
<value>ri</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${jsf-ri.version}</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${jsf-ri.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>
<repositories>
<repository>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>apache-maven-snapshots</id>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
</repository>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
<!-- Project dependencies -->
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${servlet.spec.groupId}</groupId>
<artifactId>${servlet.spec.artifactId}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
|