Showing
6 changed files
with
32 additions
and
16 deletions
... | @@ -15,6 +15,7 @@ | ... | @@ -15,6 +15,7 @@ |
15 | <packaging>jar</packaging> | 15 | <packaging>jar</packaging> |
16 | 16 | ||
17 | <dependencies> | 17 | <dependencies> |
18 | + | ||
18 | <dependency> | 19 | <dependency> |
19 | <groupId>org.springframework.boot</groupId> | 20 | <groupId>org.springframework.boot</groupId> |
20 | <artifactId>spring-boot-starter-data-jpa</artifactId> | 21 | <artifactId>spring-boot-starter-data-jpa</artifactId> | ... | ... |
... | @@ -30,6 +30,10 @@ | ... | @@ -30,6 +30,10 @@ |
30 | <version>${solr.version}</version> | 30 | <version>${solr.version}</version> |
31 | </dependency> | 31 | </dependency> |
32 | 32 | ||
33 | + <dependency> | ||
34 | + <groupId>org.apache.tomee</groupId> | ||
35 | + <artifactId>javaee-api</artifactId> | ||
36 | + </dependency> | ||
33 | 37 | ||
34 | <!-- **** TOOLS : LOGS + UTILS **** --> | 38 | <!-- **** TOOLS : LOGS + UTILS **** --> |
35 | 39 | ... | ... |
... | @@ -51,11 +51,6 @@ | ... | @@ -51,11 +51,6 @@ |
51 | <plugin> | 51 | <plugin> |
52 | <groupId>org.springframework.boot</groupId> | 52 | <groupId>org.springframework.boot</groupId> |
53 | <artifactId>spring-boot-maven-plugin</artifactId> | 53 | <artifactId>spring-boot-maven-plugin</artifactId> |
54 | - <version>1.5.2.RELEASE</version> | ||
55 | - <configuration> | ||
56 | - <mainClass>org.legrog.recommendation.postprocess.PostprocessingApplication</mainClass> | ||
57 | - <layout>ZIP</layout> | ||
58 | - </configuration> | ||
59 | <executions> | 54 | <executions> |
60 | <execution> | 55 | <execution> |
61 | <goals> | 56 | <goals> | ... | ... |
... | @@ -7,7 +7,10 @@ import org.slf4j.LoggerFactory; | ... | @@ -7,7 +7,10 @@ import org.slf4j.LoggerFactory; |
7 | import org.springframework.beans.factory.annotation.Value; | 7 | import org.springframework.beans.factory.annotation.Value; |
8 | import org.springframework.boot.CommandLineRunner; | 8 | import org.springframework.boot.CommandLineRunner; |
9 | import org.springframework.boot.SpringApplication; | 9 | import org.springframework.boot.SpringApplication; |
10 | +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
10 | import org.springframework.boot.autoconfigure.SpringBootApplication; | 11 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
12 | +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | ||
13 | +import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; | ||
11 | import org.springframework.context.annotation.Bean; | 14 | import org.springframework.context.annotation.Bean; |
12 | 15 | ||
13 | import java.io.*; | 16 | import java.io.*; |
... | @@ -33,6 +36,9 @@ public class PostprocessingApplication { | ... | @@ -33,6 +36,9 @@ public class PostprocessingApplication { |
33 | Properties properties; | 36 | Properties properties; |
34 | Set<Long> sampleItemIds; | 37 | Set<Long> sampleItemIds; |
35 | Set<Long> sampleUserIds; | 38 | Set<Long> sampleUserIds; |
39 | + | ||
40 | + //fixme ne jamais utiliser de classes concretes comme type de variables | ||
41 | + // ce que tu veux ici c'est Map<Long, Set<Long>> | ||
36 | HashMap<Long, Set<Long>> sampleItemUserIds; | 42 | HashMap<Long, Set<Long>> sampleItemUserIds; |
37 | 43 | ||
38 | public static void main(String[] args) { | 44 | public static void main(String[] args) { |
... | @@ -88,6 +94,7 @@ public class PostprocessingApplication { | ... | @@ -88,6 +94,7 @@ public class PostprocessingApplication { |
88 | logger.trace("Nombre de couples item-user dans l'échantillon {}", sampleCoupleCount); | 94 | logger.trace("Nombre de couples item-user dans l'échantillon {}", sampleCoupleCount); |
89 | 95 | ||
90 | } catch (IOException e) { | 96 | } catch (IOException e) { |
97 | + //fixme use logger instead of e.printStackTrace() !!! | ||
91 | e.printStackTrace(); | 98 | e.printStackTrace(); |
92 | } | 99 | } |
93 | 100 | ||
... | @@ -110,6 +117,8 @@ public class PostprocessingApplication { | ... | @@ -110,6 +117,8 @@ public class PostprocessingApplication { |
110 | 117 | ||
111 | void loadParametersProperties() { | 118 | void loadParametersProperties() { |
112 | 119 | ||
120 | + //fixme use logger instead of e.printStackTrace() !!! | ||
121 | + | ||
113 | Properties properties = new Properties(); | 122 | Properties properties = new Properties(); |
114 | InputStream in = null; | 123 | InputStream in = null; |
115 | try { | 124 | try { | ... | ... |
... | @@ -32,8 +32,8 @@ | ... | @@ -32,8 +32,8 @@ |
32 | <custom.web.dir>src/main/java/org/legrog/web</custom.web.dir> | 32 | <custom.web.dir>src/main/java/org/legrog/web</custom.web.dir> |
33 | 33 | ||
34 | <!-- misc --> | 34 | <!-- misc --> |
35 | - <debug.jvm.args /> | 35 | + <debug.jvm.args/> |
36 | - <tomee.autoreload /> | 36 | + <tomee.autoreload/> |
37 | 37 | ||
38 | </properties> | 38 | </properties> |
39 | 39 | ||
... | @@ -77,6 +77,12 @@ | ... | @@ -77,6 +77,12 @@ |
77 | <scope>test</scope> | 77 | <scope>test</scope> |
78 | </dependency> | 78 | </dependency> |
79 | 79 | ||
80 | + | ||
81 | + <dependency> | ||
82 | + <groupId>org.apache.tomee</groupId> | ||
83 | + <artifactId>javaee-api</artifactId> | ||
84 | + </dependency> | ||
85 | + | ||
80 | <!-- https://mvnrepository.com/artifact/org.omnifaces/omnifaces --> | 86 | <!-- https://mvnrepository.com/artifact/org.omnifaces/omnifaces --> |
81 | <dependency> | 87 | <dependency> |
82 | <groupId>org.omnifaces</groupId> | 88 | <groupId>org.omnifaces</groupId> | ... | ... |
... | @@ -47,6 +47,15 @@ | ... | @@ -47,6 +47,15 @@ |
47 | <artifactId>solr-solrj</artifactId> | 47 | <artifactId>solr-solrj</artifactId> |
48 | <version>${solr.version}</version> | 48 | <version>${solr.version}</version> |
49 | </dependency> | 49 | </dependency> |
50 | + | ||
51 | + <!-- SPECS JEE --> | ||
52 | + <dependency> | ||
53 | + <groupId>org.apache.tomee</groupId> | ||
54 | + <artifactId>javaee-api</artifactId> | ||
55 | + <version>${tomee.javaee-api.version}</version> | ||
56 | + <scope>provided</scope> | ||
57 | + </dependency> | ||
58 | + | ||
50 | <dependency> | 59 | <dependency> |
51 | <groupId>io.spring.platform</groupId> | 60 | <groupId>io.spring.platform</groupId> |
52 | <artifactId>platform-bom</artifactId> | 61 | <artifactId>platform-bom</artifactId> |
... | @@ -59,14 +68,6 @@ | ... | @@ -59,14 +68,6 @@ |
59 | 68 | ||
60 | <dependencies> | 69 | <dependencies> |
61 | 70 | ||
62 | - <!-- SPECS JEE --> | ||
63 | - <dependency> | ||
64 | - <groupId>org.apache.tomee</groupId> | ||
65 | - <artifactId>javaee-api</artifactId> | ||
66 | - <version>${tomee.javaee-api.version}</version> | ||
67 | - <scope>provided</scope> | ||
68 | - </dependency> | ||
69 | - | ||
70 | 71 | ||
71 | <!-- **** TEST SCOPE **** --> | 72 | <!-- **** TEST SCOPE **** --> |
72 | <dependency> | 73 | <dependency> |
... | @@ -85,7 +86,7 @@ | ... | @@ -85,7 +86,7 @@ |
85 | 86 | ||
86 | <dependency> | 87 | <dependency> |
87 | <groupId>org.junit.platform</groupId> | 88 | <groupId>org.junit.platform</groupId> |
88 | - <artifactId> junit-platform-console</artifactId> | 89 | + <artifactId>junit-platform-console</artifactId> |
89 | <version>${junit.platform.version}</version> | 90 | <version>${junit.platform.version}</version> |
90 | <scope>test</scope> | 91 | <scope>test</scope> |
91 | </dependency> | 92 | </dependency> | ... | ... |
-
Please register or login to post a comment