Hi,
I have just started using the API, so my apologies if this is a silly
question.
I have tried to follow the instructions in
http://hl7api.sourceforge.net/building.html with no luck. Only the hapi-base
and hapi-sourcegen are built correcly.
The steps I've followed are:
1 - Download project from CVS:
$ cvs -d :pserver:anonym...@hl7api.cvs.sourceforge.net:/cvsroot/hl7api login
$ cvs -z3 -d :pserver:anonym...@hl7api.cvs.sourceforge.net:/cvsroot/hl7api
co hapi-mvn
2 - Install Maven 2.2.1
3 - Inside the hapi-mvn directory run:
mvn install
-When I do this I receive this error:
[INFO]
------------------------------------------------------------------------
[INFO] Building HAPI - 05 - Examples
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [hapi-sourcegen:confgen {execution: default}]
Sep 2, 2010 10:19:41 AM ca.uhn.hl7v2.VersionLogger init
INFO: HAPI version is: 1.1-beta1
Sep 2, 2010 10:19:41 AM ca.uhn.hl7v2.sourcegen.conf.ProfileSourceGenerator
generate
INFO: Writing Message file:
/home/sgimeno/hapi-mvn/hapi-examples/target/generated-sources/confgen/com/foo/message/ACK.java
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
/home/sgimeno/hapi-mvn/hapi-examples/target/generated-sources/confgen/com/foo/message/ACK.java
(No such file or directory)
- In addition I have tried to build other modules with no luck either. For
example, if I try to build hapi-structures-v25 i get this error:
[INFO]
------------------------------------------------------------------------
[INFO] Building HAPI - 04 - Generated Structures v2.5
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [hapi-sourcegen:sourcegen {execution: 2.5}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at java.lang.System.setProperty(System.java:729)
at
ca.uhn.hl7v2.mvnplugin.SourceGenMojo.execute(SourceGenMojo.java:152)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Do you know what the problem might be?
Thanks in advance.
Best regards,
Santi
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel