Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<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/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<parent>
		<relativePath>../pom.xml</relativePath>
		<groupId>org.ops4j.pax.web</groupId>
		<artifactId>samples</artifactId>
		<version>4.1.0</version>
	</parent>

	<groupId>org.ops4j.pax.web.samples</groupId>
	<artifactId>helloworld-jsp</artifactId>
	<packaging>bundle</packaging>

	<name>OPS4J Pax Web - Samples - Hello World - Jsp</name>

	<properties>
		<bundle.symbolicName>org.ops4j.pax.web.samples.helloworld.jsp</bundle.symbolicName>
		<bundle.namespace>org.ops4j.pax.web.samples.helloworld.jsp</bundle.namespace>
	</properties>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<configuration>
					<instructions>
						<Bundle-Activator>${bundle.namespace}.internal.Activator</Bundle-Activator>
						<Import-Package>
							org.osgi.framework;version="[1.0.0,2.0.0)",
							org.osgi.service.http;version="[1.0.0,2.0.0)",
							org.ops4j.pax.web.service,
							org.ops4j.pax.web.jsp,
							org.apache.el,
							org.apache.jasper.el,
							org.apache.jasper.runtime,
							org.apache.jasper.compiler,
							org.apache.taglibs.standard.tag.rt.core,
							javax.el,
							javax.servlet,
							javax.servlet.http,
							javax.servlet.jsp,
							javax.servlet.jsp.tagext,
							!org.apache.tomcat
						</Import-Package>
						<Export-Package>!*</Export-Package>
						<Private-Package>
							${bundle.namespace}.internal.*,
							org.apache.jsp.*
						</Private-Package>
						<Embed-Dependency>*; scope=runtime; type=!pom</Embed-Dependency>
						<Include-Resource> {maven-resources}, {maven-dependencies},
							org/apache/jsp/helloworld/jsp/simple_jsp.class=target/jsp-source/org/apache/jsp/helloworld/jsp/simple_jsp.class,
							org/apache/jsp/helloworld/jsp/using_002dtld_jsp.class=target/jsp-source/org/apache/jsp/helloworld/jsp/using_002dtld_jsp.class
						</Include-Resource>
						<_removeheaders>
							Private-Package,
							Include-Resource,
							Embed-Dependency,
							Embed-Transitive
						</_removeheaders>
					</instructions>
				</configuration>
			</plugin>
			<plugin>
				<!-- This plugin used due to issues running on MacOS X and JDK7 -->
				<groupId>org.jasig.mojo.jspc</groupId>
				<artifactId>jspc-maven-plugin</artifactId>
				<version>2.0.0</version>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<packageName>org.apache.jsp</packageName>
					<defaultSourcesDirectory>${project.basedir}/src/main/resources</defaultSourcesDirectory>
				</configuration>
				<!-- Use the Tomcat 6 JSP compiler -->
				<dependencies>
					<dependency>
						<groupId>org.jasig.mojo.jspc</groupId>
						<artifactId>jspc-compiler-tomcat6</artifactId>
						<version>2.0.0</version>
						<exclusions>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>jasper</artifactId>
							</exclusion>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>jasper-el</artifactId>
							</exclusion>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>jasper-jdt</artifactId>
							</exclusion>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>servlet-api</artifactId>
							</exclusion>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>jsp-api</artifactId>
							</exclusion>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>el-api</artifactId>
							</exclusion>
							<exclusion>
								<groupId>org.apache.tomcat</groupId>
								<artifactId>annotations-api</artifactId>
							</exclusion>
						</exclusions>
					</dependency>

					<dependency>
						<groupId>org.apache.tomcat.embed</groupId>
						<artifactId>tomcat-embed-jasper</artifactId>
						<version>8.0.14</version>
					</dependency>
	
					<dependency>
						<groupId>org.apache.tomcat.embed</groupId>
						<artifactId>tomcat-embed-el</artifactId>
						<version>8.0.14</version>
					</dependency>

					<dependency>
						<groupId>org.apache.tomcat.embed</groupId>
						<artifactId>tomcat-embed-core</artifactId>
						<version>8.0.14</version>
					</dependency>
					
					<dependency>
						<groupId>org.apache.tomcat.embed</groupId>
						<artifactId>tomcat-embed-logging-juli</artifactId>
						<version>8.0.14</version>
					</dependency>

					<dependency>
						<groupId>org.apache.geronimo.bundles</groupId>
						<artifactId>jstl</artifactId>
						<version>1.2_1</version>
					</dependency>

					<dependency>
						<groupId>${dependency.jdt.groupId}</groupId>
						<artifactId>${dependency.jdt.artifactId}</artifactId>
						<version>${dependency.jdt.version}</version>
					</dependency>

				</dependencies>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.core</artifactId>
		</dependency>
		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.compendium</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.5</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.ops4j.pax.web</groupId>
			<artifactId>pax-web-jsp</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.ops4j.pax.web</groupId>
			<artifactId>pax-web-api</artifactId>
			<scope>provided</scope>
		</dependency>
	</dependencies>

</project>
New to GrepCode? Check out our FAQ X