Skip to content

Commit cf1fb40

Browse files
authored
Merge pull request #498 from apache/restore-sample-blog
Restore sample blog
2 parents 578e420 + 9de9e9d commit cf1fb40

File tree

7 files changed

+38
-16
lines changed

7 files changed

+38
-16
lines changed

samples/blog/blog-comment-ejb/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<execution>
5252
<phase>compile</phase>
5353
<configuration>
54-
<tasks>
54+
<target>
5555
<path id="enhance.path.ref">
5656
<fileset dir="${project.build.outputDirectory}">
5757
<include name="CommentImpl.class"/>
@@ -66,7 +66,7 @@
6666
<path refid="maven.compile.classpath"/>
6767
</classpath>
6868
</java>
69-
</tasks>
69+
</target>
7070
</configuration>
7171
<goals>
7272
<goal>run</goal>

samples/blog/blog-itests/pom.xml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,22 @@
3333
<properties>
3434
<asm.version>4.0</asm.version>
3535
<cm.version>3.2.0-v20070116</cm.version>
36+
<commons-dbcp.version>1.4</commons-dbcp.version>
3637
<depends-maven-plugin.version>1.2</depends-maven-plugin.version>
37-
<exam.version>3.4.0</exam.version>
38+
<exam.version>4.13.5</exam.version>
39+
<java.source.version>8</java.source.version>
40+
<javax.inject.version>1</javax.inject.version>
3841
<logback.version>0.9.29</logback.version>
39-
<org.apache.aries.testsupport.unit.version>2.0.0-SNAPSHOT</org.apache.aries.testsupport.unit.version>
42+
<!-- <org.apache.aries.testsupport.unit.version>2.0.0-SNAPSHOT</org.apache.aries.testsupport.unit.version>-->
4043
<org.eclipse.osgi.version>3.8.0.v20120529-1548</org.eclipse.osgi.version>
44+
<org.apache.aries.proxy.version>1.1.0</org.apache.aries.proxy.version>
45+
<org.apache.felix.bundlerepository.version>1.6.6</org.apache.felix.bundlerepository.version>
4146
<pax-web-extender-war.version>3.0.0</pax-web-extender-war.version>
4247
<pax-web-jetty-bundle.version>3.1.0</pax-web-jetty-bundle.version>
4348
<services.version>3.1.200-v20070605</services.version>
44-
<slf4j-api.version>1.7.7</slf4j-api.version>
4549
<swissbox.version>1.7.0</swissbox.version>
4650
<tinybundles.version>2.0.0</tinybundles.version>
47-
<url.version>1.6.0</url.version>
51+
<url.version>2.6.16</url.version>
4852
<xbean.version>3.16</xbean.version>
4953
</properties>
5054

@@ -78,11 +82,17 @@
7882
<scope>test</scope>
7983
</dependency>
8084

85+
<!-- TODO ARIES-2165 Use testsupport dependency when application runs on newer eclipse -->
86+
<!-- <dependency>-->
87+
<!-- <groupId>org.apache.aries.testsupport</groupId>-->
88+
<!-- <artifactId>org.apache.aries.testsupport.unit</artifactId>-->
89+
<!-- <version>${org.apache.aries.testsupport.unit.version}</version>-->
90+
<!-- <scope>test</scope>-->
91+
<!-- </dependency>-->
8192
<dependency>
82-
<groupId>org.apache.aries.testsupport</groupId>
83-
<artifactId>org.apache.aries.testsupport.unit</artifactId>
84-
<version>${org.apache.aries.testsupport.unit.version}</version>
85-
<scope>test</scope>
93+
<groupId>javax.inject</groupId>
94+
<artifactId>javax.inject</artifactId>
95+
<version>${javax.inject.version}</version>
8696
</dependency>
8797

8898
<dependency>
@@ -381,7 +391,6 @@
381391
<dependency>
382392
<groupId>org.slf4j</groupId>
383393
<artifactId>slf4j-api</artifactId>
384-
<version>${slf4j-api.version}</version>
385394
</dependency>
386395
<dependency>
387396
<groupId>org.ops4j.pax.exam</groupId>
@@ -441,6 +450,12 @@
441450
<artifactId>junit</artifactId>
442451
<scope>test</scope>
443452
</dependency>
453+
454+
<dependency>
455+
<groupId>commons-dbcp</groupId>
456+
<artifactId>commons-dbcp</artifactId>
457+
<version>${commons-dbcp.version}</version>
458+
</dependency>
444459
</dependencies>
445460

446461
<build>
@@ -462,7 +477,8 @@
462477
<groupId>org.apache.maven.plugins</groupId>
463478
<artifactId>maven-surefire-plugin</artifactId>
464479
<configuration>
465-
<forkMode>pertest</forkMode>
480+
<forkCount>1</forkCount>
481+
<reuseForks>false</reuseForks>
466482
</configuration>
467483
</plugin>
468484
</plugins>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../../../../../testsupport/testsupport-unit/src/main/java/org/apache/aries/itest

samples/blog/blog-itests/src/test/java/org/apache/aries/samples/blog/itests/AbstractBlogIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected Option baseOptions() {
159159
junitBundles(),
160160
mavenBundle("org.ops4j.pax.logging", "pax-logging-api", "1.7.2"),
161161
mavenBundle("org.ops4j.pax.logging", "pax-logging-service", "1.7.2"),
162-
mavenBundle("org.apache.aries.testsupport", "org.apache.aries.testsupport.unit").versionAsInProject(),
162+
// mavenBundle("org.apache.aries.testsupport", "org.apache.aries.testsupport.unit").versionAsInProject(),
163163
// this is how you set the default log level when using pax
164164
// logging (logProfile)
165165
systemProperty("org.ops4j.pax.logging.DefaultServiceLog.level").value("INFO"),
@@ -199,6 +199,7 @@ public Option[] configuration() {
199199
mavenBundle("commons-lang", "commons-lang").versionAsInProject(),
200200
mavenBundle("commons-collections", "commons-collections").versionAsInProject(),
201201
mavenBundle("commons-pool", "commons-pool").versionAsInProject(),
202+
mavenBundle("commons-dbcp", "commons-dbcp").versionAsInProject(),
202203
mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.serp").versionAsInProject(),
203204
mavenBundle("org.apache.aries.quiesce", "org.apache.aries.quiesce.api").versionAsInProject(),
204205
mavenBundle("org.apache.aries.quiesce", "org.apache.aries.quiesce.manager").versionAsInProject(),

samples/blog/blog-persistence-jpa/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<execution>
5252
<phase>compile</phase>
5353
<configuration>
54-
<tasks>
54+
<target>
5555
<path id="enhance.path.ref">
5656
<fileset dir="${project.build.outputDirectory}">
5757
<include name="AuthorImpl.class"/>
@@ -67,7 +67,7 @@
6767
<path refid="maven.compile.classpath"/>
6868
</classpath>
6969
</java>
70-
</tasks>
70+
</target>
7171
</configuration>
7272
<goals>
7373
<goal>run</goal>

samples/blog/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
<packaging>pom</packaging>
3131

3232
<properties>
33+
<!-- used eclipse version needs java 6-->
34+
<java.source.version>1.6</java.source.version>
35+
<!-- newer version generates osgi.extender capability for jpa bundle -->
36+
<maven-bundle-plugin.version>2.5.0</maven-bundle-plugin.version>
3337
<org.eclipse.osgi.version>3.7.0.v20110613</org.eclipse.osgi.version>
3438
</properties>
3539

samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@
687687

688688
<modules>
689689
<module>ariestrader</module>
690-
<!-- <module>blog</module>-->
690+
<module>blog</module>
691691
<module>blueprint</module>
692692
<!-- <module>twitter</module>-->
693693
</modules>

0 commit comments

Comments
 (0)