Hi Santiago,

The current CVS HEAD codebase includes a work in progress feature (a new
structure class generator specifically) which is still stabilizing. You have
hit a bug which has since been fixed, so a CVS update should clear it for
you. Alternately, you might want to check out the RELEASE_1_0 branch to get
the latest stable codebase.

One other point: The main API is all in the hapi-core module, so that's the
only one you really need to build if you want to tinker with, fix bugs, or
add features to HAPI. The hapi-structures-vXX modules are all for generating
the structure libraries, e.g:
http://hl7api.sourceforge.net/v21/apidocs/index.html , so you don't need to
build them. They rely on having access to the HL7 database, so they can't be
built either way, unless you happen to have a copy.

Hopefully this helps, and good luck!

Cheers,
James


On Thu, Sep 2, 2010 at 4:29 AM, Santiago Gimeno
<[email protected]>wrote:

> 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:[email protected]:/cvsroot/hl7api login
>
>
>
> $ cvs -z3 -d :pserver:[email protected]:/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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to