TheJacksonLaboratory / PDXintegrator

Code for mapping PDX Net data to a common data model
http://pdxintegrator.readthedocs.io/en/latest/
MIT License
1 stars 1 forks source link

Jena #5

Open pnrobinson opened 6 years ago

pnrobinson commented 6 years ago

from Aaron -- consider if we need this for PDXIntegrator also

Apparently we need to explicitly tell Jar how we want to initiate Jena. So write a class that implements Jena interface JenaSubsystemLifecycle
Add a plugin to pom file 
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <configuration>
        <shadedArtifactAttached>false</shadedArtifactAttached>
        <transformers>
            <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
        </transformers>

    </configuration>
</plugin>
In Java resource folder, create a file under META-INF-'services` named "org.apache.jena.system.JenaSubsystemLifecycle", within the file put in the class created in step 1.