logo HAPI - Java HL7 API - Source Generator Plugin

homepage: hl7api.sourceforge.net
fresh index:
last release: 1 year ago, first release: 8 years ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org




This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
hapi-sourcegen:confgen (phase: generate-sources)

Maven Plugin for generating HAPI message structure classes which are based on an HL7 conformance profile file. For more information on using this plugin, see the Confgen Usage page.

hapi-sourcegen:xrefgen (phase: generate-sources)

Maven Plugin Mojo for generating HAPI HL7 message/segment/etc source files

hapi-sourcegen:xsdconfgen (phase: generate-sources)

The XsdConfGen tool takes an HL7 conformance profile and creates an XSD schema which matches the XML encoding for messages meeting that conformance profile. In addition, it is able to combine multiple profiles into a single schema. See the usage page for information on how to use this plugin. This plugin was contributed as a part of the ConnectingGTA project.

hapi-sourcegen:superstructuregen (phase: generate-sources)

Maven Plugin Mojo for generating HAPI HL7 message/segment/etc source files

hapi-sourcegen:sourcegen (phase: generate-sources)

Maven Plugin Mojo for generating HAPI HL7 message/segment/etc source files

hapi-sourcegen:confgen-classic (phase: generate-sources)

Maven Plugin Mojo for generating HAPI conformance classes

Often used code snippets:

<plugin>
  <groupId>ca.uhn.hapi</groupId>
  <artifactId>hapi-sourcegen</artifactId>
  <executions>
    <execution>
      <id>${gen.version}</id>
      <phase>generate-sources</phase>
      <goals>
        <goal>sourcegen</goal>
      </goals>
      <inherited>true</inherited>
      <configuration>
        <version>${gen.version}</version>
        <jdbcUrl>${sourcegen.jdbcUrl}</jdbcUrl>
        <jdbcUser>${sourcegen.jdbcUser.old}</jdbcUser>
        <jdbcPassword>${sourcegen.jdbcPassword.old}</jdbcPassword>
        <targetDirectory>${basedir}/target/generated-sources/sourcegen</targetDirectory>
        <targetResourceDirectory>${basedir}/target/generated-sources/resourcegen</targetResourceDirectory>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <groupId>ca.uhn.hapi</groupId>
  <artifactId>hapi-sourcegen</artifactId>
  <version>${hapi.version}</version>
  <executions>
    <execution>
      <id>superstructure_adt</id>
      <goals>
        <goal>superstructuregen</goal>
      </goals>
      <configuration>
        <targetDirectory>${basedir}/target/generated-sources/superstructuregen</targetDirectory>
        <targetStructureName>ADT_AXX</targetStructureName>
        <version>${gen.version}</version>
        <structures>
          <structure>ADT_A[0-9]{2}</structure>
        </structures>
      </configuration>
    </execution>
  </executions>
  <dependencies>
    <dependency>
      <groupId>ca.uhn.hapi</groupId>
      <artifactId>hapi-base</artifactId>
      <version>${hapi.version}</version>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi</groupId>
      <artifactId>hapi-structures-${gen.version.short}</artifactId>
      <version>${hapi.version.stable}</version>
    </dependency>
  </dependencies>
</plugin>

© Jiri Pinkas 2015 - 2018. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.