| <?xml version="1.0" encoding="UTF-8"?> |
| <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> |
| |
| <groupId>org.eclipse.virgo.guides</groupId> |
| <artifactId>guide-rest-service</artifactId> |
| <version>0.1.0.BUILD-SNAPSHOT</version> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| |
| <springframework.version>4.2.1.RELEASE</springframework.version> |
| <jackson.core.version>2.6.4</jackson.core.version> |
| |
| <maven.compiler.plugin.version>3.3</maven.compiler.plugin.version> |
| <maven.jar.plugin.version>2.6</maven.jar.plugin.version> |
| <maven.bundle.plugin.version>2.3.7</maven.bundle.plugin.version> |
| <maven.asciidoctor.plugin.version>1.5.3</maven.asciidoctor.plugin.version> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${maven.compiler.plugin.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>${maven.jar.plugin.version}</version> |
| <configuration> |
| <archive> |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>${maven.bundle.plugin.version}</version> |
| <executions> |
| <execution> |
| <id>bundle-manifest</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>manifest</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <instructions> |
| <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> |
| <Bundle-Vendor>Eclipse Virgo</Bundle-Vendor> |
| <Bundle-Version>${project.version}</Bundle-Version> |
| <Web-ContextPath>/restservice-guide</Web-ContextPath> |
| <Import-Bundle> |
| org.springframework.beans, |
| org.springframework.context, |
| org.springframework.core, |
| org.springframework.web, |
| org.springframework.webmvc |
| </Import-Bundle> |
| <Import-Package> |
| org.eclipse.virgo.web.dm, |
| com.fasterxml.jackson.annotation, |
| * |
| </Import-Package> |
| <Bundle-Classpath> |
| . |
| </Bundle-Classpath> |
| </instructions> |
| </configuration> |
| </plugin> |
| |
| <!-- only required for building the documentation --> |
| <plugin> |
| <groupId>org.asciidoctor</groupId> |
| <artifactId>asciidoctor-maven-plugin</artifactId> |
| <version>${maven.asciidoctor.plugin.version}</version> |
| <configuration> |
| <sourceDirectory>src/main/doc</sourceDirectory> |
| <outputDirectory>target/docs</outputDirectory> |
| <backend>html</backend> |
| <doctype>book</doctype> |
| <!-- <attributes> <stylesheet>http://www.eclipse.org/virgo/resources/local.css</stylesheet> |
| </attributes> --> |
| </configuration> |
| <executions> |
| <execution> |
| <id>output-html</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>process-asciidoc</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-webmvc</artifactId> |
| <version>${springframework.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| <version>${jackson.core.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| |
| </project> |