Problem building the ipf tutorials

97 views
Skip to first unread message

Kostas Karkaletsis

unread,
Dec 8, 2014, 8:23:58 AM12/8/14
to ipf-...@googlegroups.com
Hello, I am following the instructions found on http://www.openehealth.org/display/ipf2/IPF+Tutorials#IPFTutorials-Firststepstutorial and get problems resolving the depedencies

        <dependency>
            <groupId>org.openehealth.ipf.platform-camel</groupId>
            <artifactId>ipf-platform-camel-flow</artifactId>
            <version>2.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>org.openehealth.ipf.platform-camel</groupId>
            <artifactId>ipf-platform-camel-hl7</artifactId>
            <version>2.0-SNAPSHOT</version>
        </dependency>  

Could you provide me some help on this?

Dmytro Rud

unread,
Dec 8, 2014, 8:42:41 AM12/8/14
to ipf-...@googlegroups.com
Hello Kostas,

Please use IPF version 2.6.6 instead of 2.0-SNAPSHOT.

Best regards
Dmytro


--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dmytro Rud

unread,
Dec 9, 2014, 6:31:13 AM12/9/14
to ipf-...@googlegroups.com
Hi Kostas,

IPF artifact names shall be prefixed with "ipf-", e.g. "ipf-platform-camel-core".


Please send your responses to the mailing list, not to me personally.

Best regards
Dmytro


2014-12-09 10:32 GMT+01:00 Kostas Karkaletsis <k.kark...@gmail.com>:
I have done this also but the depedency can't be resolved

[ERROR] Failed to execute goal on project basic: Could not resolve dependencies for project org.openehealth.tutorial:basic:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.openehealth.ipf.platform-camel:platform-camel-core:jar:2.6.6, org.apache.camel:camel-jetty:jar:2.6.6: Could not find artifact org.openehealth.ipf.platform-camel:platform-camel-core:jar:2.6.6 in openehealth.releases (http://repo.openehealth.org/maven2/releases) -> [Help 1]

I attach you my pom.xml file

Kostas Karkaletsis

unread,
Dec 9, 2014, 7:10:50 AM12/9/14
to ipf-...@googlegroups.com
Thanks for your answer. Now it is better. But I am getting now other errors

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:23 min
[INFO] Finished at: 2014-12-09T14:08:50+02:00
[INFO] Final Memory: 21M/204M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.groovy.maven:gmaven-plugin:1.0:compile (default) on project basic: Execution default of goal org.codehaus.groovy.maven:gmaven-plugin:1.0:compile failed: An API incompatibility was encountered while executing org.codehaus.groovy.maven:gmaven-plugin:1.0:compile: java.lang.NoSuchMethodError: org.codehaus.groovy.ast.ModuleNode.getStarImports()Ljava/util/List;
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.codehaus.groovy.maven:gmaven-plugin:1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/gmaven-plugin/1.0/gmaven-plugin-1.0.jar
[ERROR] urls[1] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/runtime/gmaven-runtime-api/1.0/gmaven-runtime-api-1.0.jar
[ERROR] urls[2] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/feature/gmaven-feature-api/1.0/gmaven-feature-api-1.0.jar
[ERROR] urls[3] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/runtime/gmaven-runtime-loader/1.0/gmaven-runtime-loader-1.0.jar
[ERROR] urls[4] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/feature/gmaven-feature-support/1.0/gmaven-feature-support-1.0.jar
[ERROR] urls[5] = file:/home/karkaletsis/.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] urls[6] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/runtime/gmaven-runtime-support/1.0/gmaven-runtime-support-1.0.jar
[ERROR] urls[7] = file:/home/karkaletsis/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar
[ERROR] urls[8] = file:/home/karkaletsis/.m2/repository/com/thoughtworks/qdox/qdox/1.8/qdox-1.8.jar
[ERROR] urls[9] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/gmaven-common/1.0/gmaven-common-1.0.jar
[ERROR] urls[10] = file:/home/karkaletsis/.m2/repository/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
[ERROR] urls[11] = file:/home/karkaletsis/.m2/repository/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
[ERROR] urls[12] = file:/home/karkaletsis/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4.1/maven-reporting-impl-2.0.4.1.jar
[ERROR] urls[13] = file:/home/karkaletsis/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
[ERROR] urls[14] = file:/home/karkaletsis/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
[ERROR] urls[15] = file:/home/karkaletsis/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
[ERROR] urls[16] = file:/home/karkaletsis/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
[ERROR] urls[17] = file:/home/karkaletsis/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
[ERROR] urls[18] = file:/home/karkaletsis/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
[ERROR] urls[19] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar
[ERROR] urls[20] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.jar
[ERROR] urls[21] = file:/home/karkaletsis/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.4/maven-reporting-api-2.0.4.jar
[ERROR] urls[22] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar
[ERROR] urls[23] = file:/home/karkaletsis/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[24] = file:/home/karkaletsis/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
[ERROR] urls[25] = file:/home/karkaletsis/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
[ERROR] urls[26] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-10/doxia-decoration-model-1.0-alpha-10.jar
[ERROR] urls[27] = file:/home/karkaletsis/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
[ERROR] urls[28] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0-alpha-10/doxia-module-apt-1.0-alpha-10.jar
[ERROR] urls[29] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0-alpha-10/doxia-module-fml-1.0-alpha-10.jar
[ERROR] urls[30] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0-alpha-10/doxia-module-xdoc-1.0-alpha-10.jar
[ERROR] urls[31] = file:/home/karkaletsis/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar
[ERROR] urls[32] = file:/home/karkaletsis/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
[ERROR] urls[33] = file:/home/karkaletsis/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
[ERROR] urls[34] = file:/home/karkaletsis/.m2/repository/org/codehaus/groovy/maven/support/slf4j-gossip/1.0/slf4j-gossip-1.0.jar
[ERROR] urls[35] = file:/home/karkaletsis/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To 

Dmytro Rud

unread,
Dec 9, 2014, 7:34:26 AM12/9/14
to ipf-...@googlegroups.com
Section /project/build/pluginManagement is missing in your pom.xml.

Best regards
Dmytro

Kostas Karkaletsis

unread,
Dec 9, 2014, 8:00:24 AM12/9/14
to ipf-...@googlegroups.com
I finally managed it using the create script for basic example. I had to slightly change it but now works.

Thanks a lot for your instant replies!

Wellsoft User

unread,
Dec 19, 2014, 11:22:52 AM12/19/14
to ipf-...@googlegroups.com
Hi, I'm getting below errors when trying to compile full source code, cloned from git, on Windows 7 machine. I have added the openehealth profile to the settings.xml file in the .m2 directory, and added these dependencies

<dependency>

    <groupId>org.openehealth.ipf.platform-camel</groupId>

    <artifactId>ipf-platform-camel-flow</artifactId>

    <version>${ipf-2.6.6}</version>

</dependency>

<dependency>

    <groupId>org.openehealth.ipf.platform-camel</groupId>

    <artifactId>ipf-platform-camel-hl7</artifactId>

    <version>${ipf-2.6.6}</version>

</dependency> 
to the pom.xml in the cloned project directory. Thanks

Without tests:

[ERROR] Failed to execute goal on project ipf-platform-camel-ihe-hl7v3: Could not resolve dependencies for project org.openehealth.ipf.platform-camel:ipf-platform-camel-ihe-hl7v3:jar:3.0-SNAPSHOT: Failed to collect dependencies at org.openehealth.ipf.platform-camel:ipf-platform-camel-ihe-mllp:jar:3.0-SNAPSHOT -> org.openehealth.ipf.platform-camel:ipf-platform-camel-hl7:jar:${ipf-2.6.6}: Failed to read artifact descriptor for org.openehealth.ipf.platform-camel:ipf-platform-camel-hl7:jar:${ipf-2.6.6}: Could not transfer artifact org.openehealth.ipf.platform-camel:ipf-platform-camel-hl7:pom:${ipf-2.6.6} from/to openehealth.releases (http://repo.openehealth.org/maven2/releases): Illegal character in path at index 103: http://repo.openehealth.org/maven2/releases/org/openehealth/ipf/platform-camel/ipf-platform-camel-hl7/${ipf-2.6.6}/ipf-platform-camel-hl7-${ipf-2.6.6}.pom -




With Tests:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project ipf-platform-camel-core: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\boaz.in\IPF IHE\ipf\platform-camel\core\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project ipf-platformcamel-core: There are test failures.

Please refer to C:\Users\boaz.in\IPF IHE\ipf\platform-camel\core\target\surefire
-reports for the individual test results.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures
.

Please refer to C:\Users\boaz.in\IPF IHE\ipf\platform-camel\core\target\surefire
-reports for the individual test results.
        at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(Suref
ireHelper.java:82)
        at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(Surefir
ePlugin.java:213)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPre
conditionsChecked(AbstractSurefireMojo.java:883)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(Abstrac
tSurefireMojo.java:751)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:132)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
        ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

Dmytro Rud

unread,
Dec 19, 2014, 11:30:03 AM12/19/14
to ipf-...@googlegroups.com
<dependency>
    <groupId>org.openehealth.ipf.platform-camel</groupId>
    <artifactId>ipf-platform-camel-flow</artifactId>
    <version>${ipf-2.6.6}</version>
</dependency>
<dependency>
    <groupId>org.openehealth.ipf.platform-camel</groupId>
    <artifactId>ipf-platform-camel-hl7</artifactId>
    <version>${ipf-2.6.6}</version>
</dependency> 

Here and on all other places, instead of "${ipf-2.6.6}" you should specify either "2.6.6" or "3.0-SNAPSHOT" (both without quotes and any other decorations), depending of which IPF version you actually want to use.

Best regards
Dmytro


Wellsoft User

unread,
Dec 19, 2014, 12:20:01 PM12/19/14
to ipf-...@googlegroups.com
It compiled successfully (without tests) for 3.0-SNAPSHOT but not for 2.6.6 

Dmytro Rud

unread,
Dec 19, 2014, 12:21:53 PM12/19/14
to ipf-...@googlegroups.com
Why?

Wellsoft User

unread,
Dec 19, 2014, 12:50:02 PM12/19/14
to ipf-...@googlegroups.com
Here are the errors (without tests) when using 2.6.6 in pop.xml:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:testCompile (default-testCompile) on project ipf-platform-camel-ihe-hl7v3: Compilation failure
[ERROR] Failure executing groovy-eclipse compiler:
[ERROR] C:\Users\in\IPF IHE\ipf\platform-camel\ihe\hl7v3\src\test\groovy\org\openehealth\ipf\platform\camel\ihe\hl7v3\iti47\CamelOnlyRouteBuilder.groovy: 26 Groovy:unable to resolve class org.openehealth.ipf.platform.camel.hl7.HL7v2
[ERROR] C:\Users\in\IPF IHE\ipf\platform-camel\ihe\hl7v3\src\test\groovy\org\openehealth\ipf\platform\camel\ihe\hl7v3\iti47\CamelOnlyRouteBuilder.groovy: 27 Groovy:unable to resolve class org.openehealth.ipf.platform.camel.hl7.HL7v2
[ERROR] ----------
[ERROR] 1. ERROR in C:\Users\in\IPF IHE\ipf\platform-camel\ihe\hl7v3\src\test\groovy\org\openehealth\ipf\platform\camel\ihe\hl7v3\iti47\CamelOnlyRouteBuilder.groovy (at line 26)
[ERROR] import static org.openehealth.ipf.platform.camel.hl7.HL7v2.staticResponse
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:unable to resolve class org.openehealth.ipf.platform.camel.hl7.HL7v2
[ERROR] ----------
[ERROR] 2. ERROR in C:\Users\in\IPF IHE\ipf\platform-camel\ihe\hl7v3\src\test\groovy\org\openehealth\ipf\platform\camel\ihe\hl7v3\iti47\CamelOnlyRouteBuilder.groovy (at line 27)
[ERROR] import static org.openehealth.ipf.platform.camel.hl7.HL7v2.validatingProcessor
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:unable to resolve class org.openehealth.ipf.platform.camel.hl7.HL7v2

Dmytro Rud

unread,
Dec 19, 2014, 12:55:09 PM12/19/14
to ipf-...@googlegroups.com
Message has been deleted

Dmytro Rud

unread,
Dec 19, 2014, 1:06:02 PM12/19/14
to ipf-...@googlegroups.com
You can use git checkout for switching between branches.

Best regards
Dmytro

Wellsoft User

unread,
Dec 19, 2014, 2:37:02 PM12/19/14
to ipf-...@googlegroups.com
Thanks, I was able to build also the 2.6.6 version. 

Wellsoft User

unread,
Dec 22, 2014, 2:39:27 PM12/22/14
to ipf-...@googlegroups.com
I have cloned http://github.com/oehf/ipf.git and imported it to Eclipse. Through 'Project Explorer' I have right clicked on IHEWebServiceClientTest.java (path: src.test.java.org.openhealth.ipf.iheclient) and getting Errors in required project(s): ipf-commons-ihe-ws, ipf-commons-ihe-xds, and so on.. Proceed with launch.. 
Please advise,
Thanks

Dmytro Rud

unread,
Dec 22, 2014, 2:55:04 PM12/22/14
to ipf-...@googlegroups.com
I do not use Eclipse and have no idea what does a right click mean there, but which errors are you getting?

--

Wellsoft User

unread,
Dec 22, 2014, 3:05:02 PM12/22/14
to ipf-...@googlegroups.com
Right click and Run as JUnit Test. I cloned the master branch. Attaching the error message:

Dmytro Rud

unread,
Dec 22, 2014, 3:12:34 PM12/22/14
to ipf-...@googlegroups.com
Do you have the Lombok plugin installed?
http://projectlombok.org/

Wellsoft User

unread,
Dec 22, 2014, 3:41:13 PM12/22/14
to ipf-...@googlegroups.com
Downloaded Lombok. I believe I have imported it correctly to Eclipse (exited and verified arguments within eclipse.ini). Not sure (how) whether it needs to be incorporated into IHFClient project.. Anyway things change bit now getting more options to run from other than JUnit Test. Still one error shows up. See attachments.. Thanks

Dmytro Rud

unread,
Dec 22, 2014, 3:52:01 PM12/22/14
to ipf-...@googlegroups.com
Is it possible to find out which particular errors are meant?

Wellsoft User

unread,
Dec 22, 2014, 4:00:57 PM12/22/14
to ipf-...@googlegroups.com
Not getting errors any more on the 'JUnit Test' tab. Before the 'Failure Trace' reported (errors?). Looks like I should be able to proceed with the IFHClient tutorial.. Thanks 
Reply all
Reply to author
Forward
0 new messages