Changeset 31212


Ignore:
Timestamp:
2016-12-12T17:06:50+13:00 (7 years ago)
Author:
davidb
Message:

Changed from mvn assemblhy to shadowing, which has more control

Location:
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/COMPILE.bash

    r30909 r31212  
    55
    66# For running on Spark cluster:
    7 mvn assembly:assembly -DdescriptorId=jar-with-dependencies
     7#mvn assembly:assembly -DdescriptorId=jar-with-dependencies
    88
     9mvn package
     10
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/pom.xml

    r31177 r31212  
    5757   <build>
    5858     <plugins>
    59             <plugin>
    60                 <groupId>org.apache.maven.plugins</groupId>
    61                 <artifactId>maven-compiler-plugin</artifactId>
    62                 <version>2.3.2</version>
    63                 <configuration>
    64                     <source>1.7</source>
    65                     <target>1.7</target>
    66                 </configuration>
    67             </plugin>
    68        
     59       <plugin>
     60     <groupId>org.apache.maven.plugins</groupId>
     61     <artifactId>maven-compiler-plugin</artifactId>
     62     <version>2.3.2</version>
     63     <configuration>
     64       <source>1.8</source>
     65       <target>1.8</target>
     66     </configuration>
     67       </plugin>
     68
     69       <plugin>
     70     <groupId>org.apache.maven.plugins</groupId>
     71     <artifactId>maven-shade-plugin</artifactId>
     72     <version>2.4.3</version>
     73     <configuration>
     74       <relocations>
     75         <relocation>
     76           <pattern>com.google.common</pattern>
     77           <shadedPattern>org.hathitrust.google.common</shadedPattern>
     78         </relocation>
     79       </relocations>
     80     </configuration>
     81     <executions>
     82       <execution>
     83         <phase>package</phase>
     84         <goals>
     85           <goal>shade</goal>
     86         </goals>
     87
     88     <configuration>
     89       <archive>
     90         <manifest>
     91               <mainClass>org.hathitrust.extractedfeatures.ProcessForSolrIngest</mainClass>
     92         </manifest>
     93       </archive>
     94       <filters>
     95         <filter>
     96           <artifact>*:*</artifact>
     97           <excludes>
     98         <exclude>META-INF/*.SF</exclude>
     99         <exclude>META-INF/*.DSA</exclude>
     100         <exclude>META-INF/*.RSA</exclude>
     101           </excludes>
     102         </filter>
     103       </filters>
     104
     105       <finalName>${project.artifactId}-${project.version}-jar-with-dependencies</finalName>
     106
     107     </configuration>
     108
     109       </execution>
     110     </executions>
     111
     112<!--
     113     <executions>
     114       <execution>
     115         <phase>package</phase>
     116         <goals>
     117           <goal>shade</goal>
     118         </goals>
     119         <configuration>
     120           <filters>
     121         <filter>
     122           <artifact>*:*</artifact>
     123           <excludes>
     124             <exclude>META-INF/*.SF</exclude>
     125             <exclude>META-INF/*.DSA</exclude>
     126             <exclude>META-INF/*.RSA</exclude>
     127           </excludes>
     128         </filter>
     129           </filters>
     130           <artifactSet>
     131         <excludes>
     132           <exclude>org.datanucleus</exclude>
     133         </excludes>
     134           </artifactSet>
     135           <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
     136           <transformers>
     137         <transformer
     138             implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
     139             />
     140           </transformers>
     141         </configuration>
     142       </execution>
     143     </executions>
     144-->
     145       </plugin>
     146
     147
     148<!--       
    69149       <plugin>
    70150     <groupId>org.apache.maven.plugins</groupId>
     
    76156         </manifest>
    77157       </archive>
     158       <filters>
     159         <filter>
     160           <artifact>*:*</artifact>
     161           <excludes>
     162         <exclude>META-INF/*.SF</exclude>
     163         <exclude>META-INF/*.DSA</exclude>
     164         <exclude>META-INF/*.RSA</exclude>
     165           </excludes>
     166         </filter>
     167       </filters>
     168       <finalName>uber-${project.artifactId}-${project.version}</finalName>
    78169     </configuration>
    79170       </plugin>
     171-->
    80172     </plugins>
    81173   </build>
Note: See TracChangeset for help on using the changeset viewer.