You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2015/04/04 11:04:33 UTC

[jira] [Resolved] (OPENJPA-2511) provide a minimal shade

     [ https://issues.apache.org/jira/browse/OPENJPA-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OPENJPA-2511.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

I've just removed jest from the packaging. JEST is a REST frontend for OpenJPA. That's nice but is really more frontend related than the rest of openjpa. It also needs Servlet-API, etc. For a normal backend developer it's mostly not needed. Those who use it can simply add the dependency. So we better not package it

 Xmlstore and slice are actually useful and rather small (30 and 60kByte) and they are both really openjpa backend related.

> provide a minimal shade
> -----------------------
>
>                 Key: OPENJPA-2511
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2511
>             Project: OpenJPA
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>            Assignee: Mark Struberg
>             Fix For: 2.4.0
>
>
> Hi
> currenty openjpa artifacts brings a lot of thing, would surely be great to get a minimal (jdbc) bundle:
> {code}
>             <!-- Create our aggregate JAR -->
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-shade-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>shade</goal>
>                         </goals>
>                         <configuration>
>                             <createDependencyReducedPom>true</createDependencyReducedPom>
>                             <createSourcesJar>${createSources}</createSourcesJar>
>                             <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
>                             <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
>                             <!--
>                                  Specify a subset of depends to include,
>                                  which must match the <dependencies> section.
>                             -->
>                             <artifactSet>
>                                 <includes>
>                                     <include>${project.groupId}:openjpa-lib</include>
>                                     <include>${project.groupId}:openjpa-kernel</include>
>                                     <include>${project.groupId}:openjpa-jdbc</include>
>                                     <include>${project.groupId}:openjpa-persistence</include>
>                                     <include>${project.groupId}:openjpa-persistence-jdbc</include>
>                                 </includes>
>                             </artifactSet>
>                             <!-- OpenJPA unique META-INF setup -->
>                             <transformers>
>                                 <!-- Need to concatinate the services resources:
>                                  org.apache.openjpa.lib.conf.ProductDerivation
>                                  javax.persistence.spi.PersistenceProvider
>                                  org.apache.openjpa.kernel.exps.ExpressionParser
>                                 -->
>                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
>                             </transformers>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)