123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <?xml version="1.0"?>
- <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>
- <properties>
- <bcprov.version>1.55</bcprov.version>
- </properties>
- <parent>
- <groupId>com.scytl.products.ov.channel.ea</groupId>
- <artifactId>extended-authentication</artifactId>
- <version>2.1.7</version>
- </parent>
- <groupId>com.scytl.products.ov.channel.ea.ui</groupId>
- <artifactId>ea-ws-rest</artifactId>
- <packaging>war</packaging>
- <name>Online Voting - Extended Authentication - Webservices</name>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.scytl.products.ov.channel.commons</groupId>
- <artifactId>ov-commons-integration-tests</artifactId>
- <version>${project.version}</version>
- <scope>import</scope>
- <type>pom</type>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <!-- OV CHANNEL COMMONS -->
- <dependency>
- <groupId>com.scytl.products.ov.channel.commons</groupId>
- <artifactId>ov-commons-infrastructure</artifactId>
- </dependency>
- <dependency>
- <groupId>com.scytl.products.ov.channel.commons</groupId>
- <artifactId>ov-commons-logging</artifactId>
- </dependency>
- <!-- Local dependencies -->
- <dependency>
- <groupId>com.scytl.products.ov.channel.ea.services</groupId>
- <artifactId>extended-authentication-services</artifactId>
- <version>${project.version}</version>
- </dependency>
- <!-- TEST dependencies -->
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-osgi-locator</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>javax.ws.rs</groupId>
- <artifactId>javax.ws.rs-api</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.glassfish.jersey.test-framework</groupId>
- <artifactId>jersey-test-framework-core</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.glassfish.jersey.test-framework.providers</groupId>
- <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.glassfish.jersey.media</groupId>
- <artifactId>jersey-media-json-jackson</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.bouncycastle</groupId>
- <artifactId>bcprov-jdk15on</artifactId>
- <scope>test</scope>
- </dependency>
- <!--Preserve the position of this dependency -->
- <dependency>
- <groupId>com.scytl.products.ov.channel.commons</groupId>
- <artifactId>ov-commons-integration-tests</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.github.cukespace</groupId>
- <artifactId>cukespace-core</artifactId>
- <version>${com.github.cukespace.version}</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.jboss.shrinkwrap</groupId>
- <artifactId>shrinkwrap-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- <build>
- <finalName>${project.artifactId}</finalName>
- </build>
- <!-- The profile below can be used if the HTML API files should be generated -->
- <!-- It includes the installation of node, npm and raml2html -->
- <profiles>
- <profile>
- <id>skipTestRun</id>
- <activation>
- <property>
- <name>skipTests</name>
- <value>!true</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.scytl.products.ov.channel.commons.lib</groupId>
- <artifactId>ov-commons-lib</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.scytl.products.ov.channel.ea.services</groupId>
- <artifactId>extended-authentication-services</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>generate-all-html-apis</id>
- <build>
- <finalName>${project.artifactId}</finalName>
- <plugins>
- <plugin>
- <groupId>com.github.eirslett</groupId>
- <artifactId>frontend-maven-plugin</artifactId>
- <version>${frontend-maven-plugin.version}</version>
- <!-- install local installation of node and npm in the target directory -->
- <configuration>
- <installDirectory>target</installDirectory>
- </configuration>
- <executions>
- <execution>
- <id>install node and npm</id>
- <goals>
- <goal>install-node-and-npm</goal>
- </goals>
- <configuration>
- <nodeVersion>${node.version}</nodeVersion>
- <npmVersion>${npm.version}</npmVersion>
- <nodeDownloadRoot>
- https://nexus.scytl.net/service/local/repositories/applications/content/org/nodejs/node/
- </nodeDownloadRoot>
- <npmDownloadRoot>
- https://nexus.scytl.net/service/local/repositories/applications/content/com/github/npm/npm/
- </npmDownloadRoot>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <!-- Install raml2html -->
- <execution>
- <id>id0</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>npm</executable>
- <commandlineArgs>install --prefix ./target/node/node_modules/npm-${npm.version}
- raml2html
- </commandlineArgs>
- </configuration>
- </execution>
- <!-- Generate API file -->
- <execution>
- <id>id1</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>target/node/node_modules/npm-${npm.version}/node_modules/raml2html/bin/raml2html</executable>
- <commandlineArgs>-i src/main/resources/api.raml -o target/api.html</commandlineArgs>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|