Skip to content

Commit 2b647a6

Browse files
committed
Fixed assembly plugin to do "preload" by default, add -DDEV=true to command line to disable
1 parent ce2f846 commit 2b647a6

File tree

2 files changed

+30
-13
lines changed

2 files changed

+30
-13
lines changed

assembly/pom.xml

100644100755
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@
3737
<artifactId>reef-branding</artifactId>
3838
<version>0.3.0-SNAPSHOT</version>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.ops4j.pax.logging</groupId>
42+
<artifactId>pax-logging-api</artifactId>
43+
<version>1.6.3-LOCATION</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.ops4j.pax.logging</groupId>
47+
<artifactId>pax-logging-service</artifactId>
48+
<version>1.6.3-LOCATION</version>
49+
</dependency>
4050
</dependencies>
4151

4252
<artifactId>reef-dist</artifactId>
@@ -142,13 +152,6 @@
142152
</execution>
143153
</executions>
144154
</plugin>
145-
</plugins>
146-
</build>
147-
</profile>
148-
<profile>
149-
<id>preload</id>
150-
<build>
151-
<plugins>
152155
<plugin>
153156
<groupId>org.apache.karaf.tooling</groupId>
154157
<artifactId>features-maven-plugin</artifactId>
@@ -171,6 +174,25 @@
171174
<repository>target/system-repo</repository>
172175
</configuration>
173176
</execution>
177+
</executions>
178+
</plugin>
179+
</plugins>
180+
</build>
181+
</profile>
182+
<profile>
183+
<id>preload</id>
184+
<activation>
185+
<property>
186+
<name>!DEV</name>
187+
</property>
188+
</activation>
189+
<build>
190+
<plugins>
191+
<plugin>
192+
<groupId>org.apache.karaf.tooling</groupId>
193+
<artifactId>features-maven-plugin</artifactId>
194+
<version>${karaf.version}</version>
195+
<executions>
174196
<execution>
175197
<id>add-reef-bundles-to-repo</id>
176198
<phase>generate-resources</phase>

bin/deploy.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
set -ex
22

3-
if [ -z $DEV ]
4-
then
5-
mvn install -DskipTests -Pdist,preload
6-
else
7-
mvn install -DskipTests -Pdist
8-
fi
3+
mvn install -DskipTests -Pdist
94

105
./bin/redeploy.sh
116

0 commit comments

Comments
 (0)