File tree Expand file tree Collapse file tree 5 files changed +116
-31
lines changed
src/main/external-resources-example Expand file tree Collapse file tree 5 files changed +116
-31
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ sudo: false
5
5
jdk :
6
6
- oraclejdk8
7
7
8
- install : mvn install -DskipTests -Dgpg.skip -Ptest
8
+ install : mvn install -DskipTests -Dgpg.skip
9
9
10
10
script :
11
- - mvn verify -Dgpg.skip -Ptest
11
+ - mvn verify -Dgpg.skip
12
12
13
13
after_success :
14
- - mvn coveralls:report -Dgpg.skip -Ptest
14
+ - mvn coveralls:report -Dgpg.skip
15
15
16
16
cache :
17
17
directories :
Original file line number Diff line number Diff line change 114
114
<id >move-main-class</id >
115
115
<phase >compile</phase >
116
116
<configuration >
117
- <tasks >
117
+ <target >
118
118
<copy todir =" ${project.basedir}/target/webapp/" >
119
119
<fileset dir =" ${project.build.directory}/classes/" >
120
120
<include name =" com/mapcode/services/cli/*.class" />
121
121
</fileset >
122
122
</copy >
123
- </tasks >
123
+ </target >
124
124
</configuration >
125
125
<goals >
126
126
<goal >run</goal >
Original file line number Diff line number Diff line change 542
542
</plugin >
543
543
</plugins >
544
544
</reporting >
545
+
546
+ <profiles >
547
+
548
+ <!-- Test profile. Uses example properties from external-resources-example. -->
549
+ <profile >
550
+ <id >test</id >
551
+ <activation >
552
+ <activeByDefault >true</activeByDefault >
553
+ </activation >
554
+ <build >
555
+ <plugins >
556
+ <plugin >
557
+ <artifactId >maven-antrun-plugin</artifactId >
558
+ <executions >
559
+ <execution >
560
+ <phase >install</phase >
561
+ <goals >
562
+ <goal >run</goal >
563
+ </goals >
564
+ <configuration >
565
+ <target >
566
+ <echo >
567
+ .
568
+ .
569
+ ***********************************************************
570
+ ** This is a TEST build.
571
+ ** --------------------------------------------------------
572
+ ** Do NOT install in production environment!
573
+ ***********************************************************
574
+ .
575
+ .
576
+ </echo >
577
+ </target >
578
+ </configuration >
579
+ </execution >
580
+ </executions >
581
+ </plugin >
582
+ </plugins >
583
+ </build >
584
+ </profile >
585
+
586
+ <!-- Default profile. Uses "real" properties from external-resources. -->
587
+ <profile >
588
+ <id >prod</id >
589
+ <build >
590
+ <plugins >
591
+ <plugin >
592
+ <artifactId >maven-antrun-plugin</artifactId >
593
+ <executions >
594
+ <execution >
595
+ <phase >install</phase >
596
+ <goals >
597
+ <goal >run</goal >
598
+ </goals >
599
+ <configuration >
600
+ <target >
601
+ <echo >
602
+ .
603
+ .
604
+ ***********************************************************
605
+ ** This is a PRODUCTION build.
606
+ ***********************************************************
607
+ .
608
+ .
609
+ </echo >
610
+ </target >
611
+ </configuration >
612
+ </execution >
613
+ </executions >
614
+ </plugin >
615
+ </plugins >
616
+ </build >
617
+ </profile >
618
+ </profiles >
545
619
</project >
Original file line number Diff line number Diff line change 41
41
<directory >src/main/resources</directory >
42
42
<filtering >true</filtering >
43
43
</resource >
44
-
45
- <resource >
46
- <directory >src/main/external-resources</directory >
47
- <filtering >true</filtering >
48
- </resource >
49
44
</resources >
50
-
51
- <plugins >
52
- <plugin >
53
- <groupId >org.apache.maven.plugins</groupId >
54
- <artifactId >maven-remote-resources-plugin</artifactId >
55
- <executions >
56
- <execution >
57
- <goals >
58
- <goal >bundle</goal >
59
- </goals >
60
- <configuration >
61
- <includes >
62
- <include >src/main/external-resources/*</include >
63
- </includes >
64
- </configuration >
65
- </execution >
66
- </executions >
67
- </plugin >
68
- </plugins >
69
45
</build >
70
46
71
- <!-- Test profiles. -->
72
47
<profiles >
48
+
49
+ <!-- Test profile. Uses example properties from external-resources-example. -->
73
50
<profile >
74
51
<id >test</id >
52
+ <activation >
53
+ <activeByDefault >true</activeByDefault >
54
+ </activation >
75
55
<build >
76
56
<resources >
77
57
<resource >
82
62
83
63
<plugins >
84
64
<plugin >
85
- <groupId >org.apache.maven.plugins</groupId >
86
65
<artifactId >maven-remote-resources-plugin</artifactId >
87
66
<executions >
88
67
<execution >
100
79
</plugins >
101
80
</build >
102
81
</profile >
82
+
83
+ <!-- Default profile. Uses "real" properties from external-resources. -->
84
+ <profile >
85
+ <id >prod</id >
86
+ <build >
87
+ <resources >
88
+ <resource >
89
+ <directory >src/main/external-resources</directory >
90
+ <filtering >true</filtering >
91
+ </resource >
92
+ </resources >
93
+
94
+ <plugins >
95
+ <plugin >
96
+ <artifactId >maven-remote-resources-plugin</artifactId >
97
+ <executions >
98
+ <execution >
99
+ <goals >
100
+ <goal >bundle</goal >
101
+ </goals >
102
+ <configuration >
103
+ <includes >
104
+ <include >src/main/external-resources/*</include >
105
+ </includes >
106
+ </configuration >
107
+ </execution >
108
+ </executions >
109
+ </plugin >
110
+ </plugins >
111
+ </build >
112
+ </profile >
103
113
</profiles >
104
114
</project >
Original file line number Diff line number Diff line change 17
17
# Example properties file which should be placed in the classpath.
18
18
# Set mapcode-secret.properties to true to trace REST calls to the MongoDB database.
19
19
20
+ MongoDBTrace.readEnabled = false
20
21
MongoDBTrace.writeEnabled = false
21
22
MongoDBTrace.servers = your-server:27017
22
23
MongoDBTrace.database = your-database
You can’t perform that action at this time.
0 commit comments