log request info in a file accessible outstide the container
[pnews.git] / pnews / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project>
3         <modelVersion>4.0.0</modelVersion>
4         <groupId>pnews</groupId>
5         <artifactId>pnews-core</artifactId>
6         <version>1.0</version>
7         <packaging>jar</packaging>
8         <name>pnews-core</name>
9
10         <properties>
11                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12                 <maven.compiler.source>1.7</maven.compiler.source>
13                 <maven.compiler.target>1.7</maven.compiler.target>
14         </properties>
15
16         <dependencies>
17                 <dependency>
18                         <groupId>com.rometools</groupId>
19                         <artifactId>rome</artifactId>
20                         <version>1.8.0</version>
21                 </dependency>
22                 <dependency>
23                         <groupId>org.jsoup</groupId>
24                         <artifactId>jsoup</artifactId>
25                         <version>1.10.3</version>
26                 </dependency>
27         </dependencies>
28
29         <build>
30                 <plugins>
31                         <plugin>
32                                 <groupId>org.apache.maven.plugins</groupId>
33                                 <artifactId>maven-dependency-plugin</artifactId>
34                                 <version>2.10</version>
35                                 <executions>
36                                         <execution>
37                                                 <id>copy-dependencies</id>
38                                                 <phase>package</phase>
39                                                 <goals>
40                                                         <goal>copy-dependencies</goal>
41                                                 </goals>
42                                                 <configuration>
43                                                         <outputDirectory>${project.build.directory}</outputDirectory>
44                                                         <overWriteReleases>false</overWriteReleases>
45                                                 </configuration>
46                                         </execution>
47                                 </executions>
48                         </plugin>
49                         <plugin>
50                                 <artifactId>maven-resources-plugin</artifactId>
51                                 <version>3.0.1</version>
52                                 <executions>
53                                         <execution>
54                                                 <id>copy-resources</id>
55                                                 <phase>process-resources</phase>
56                                                 <goals>
57                                                         <goal>copy-resources</goal>
58                                                 </goals>
59                                                 <configuration>
60                                                         <outputDirectory>${basedir}/target/</outputDirectory>
61                                                         <resources>
62                                                                 <resource>
63                                                                         <directory>src/main/scripts</directory>
64                                                                         <filtering>true</filtering>
65                                                                 </resource>
66                                                         </resources>
67                                                 </configuration>
68                                         </execution>
69                                 </executions>
70                         </plugin>
71                         <plugin>
72                                 <groupId>org.apache.maven.plugins</groupId>
73                                 <artifactId>maven-jar-plugin</artifactId>
74                                 <version>3.0.2</version>
75                                 <configuration>
76                                         <archive>
77                                                 <manifest>
78                                                         <addClasspath>true</addClasspath>
79                                                         <mainClass>pnews.Main</mainClass>
80                                                 </manifest>
81                                         </archive>
82                                 </configuration>
83                         </plugin>
84                         <plugin>
85                                 <groupId>org.apache.maven.plugins</groupId>
86                                 <artifactId>maven-antrun-plugin</artifactId>
87                                 <version>1.6</version>
88                                 <executions>
89                                         <execution>
90                                                 <id>fix-shell-permissions</id>
91                                                 <phase>process-resources</phase>
92                                                 <configuration>
93                                                         <target>
94                                                                 <chmod file="target/pnews.sh" perm="755"/>
95                                                         </target>
96                                                 </configuration>
97                                                 <goals>
98                                                         <goal>run</goal>
99                                                 </goals>
100                                         </execution>
101                                 </executions>
102                         </plugin>
103                 </plugins>
104           </build>
105 </project>