Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2511

provide a minimal shade

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      Hi

      currenty openjpa artifacts brings a lot of thing, would surely be great to get a minimal (jdbc) bundle:

                  <!-- 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>
      

      Attachments

        Activity

          People

            struberg Mark Struberg
            romain.manni-bucau Romain Manni-Bucau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: