cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Willerding <awillerd...@itsurcom.com>
Subject Re: Cayenne runtime error with DI
Date Thu, 12 Oct 2017 17:04:24 GMT
Thank you so much Nikita!  That did the trick!  I would never have been 
able to figure this out on my own.

I'm new to Maven as a build tool and I've never heard of the shade 
plugin.  When I was trying to figure out how to build a JAR file with 
all dependencies I found this method via a Google search which seemed to 
do the trick except for this project.  Out of curiosity, why would 
adding the Java8 module explicitly allow Cayenne to find the dependencies?


             <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
                 <version>2.6</version>
                 <configuration>
                     <archive>
                         <manifest>
<addClasspath>true</addClasspath>
<mainClass>com.callistacti.quest.crsolstasv2.CRSolstas</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                         </manifest>
                     </archive>
                     <descriptorRefs>
<descriptorRefs>jar-with-dependencies</descriptorRefs>
                     </descriptorRefs>
                 </configuration>
                 <executions>
                     <execution>
                         <!--id>make-assembly</id--> <!--
this is used 
for inheritance merges -->
                         <phase>package</phase> <!--
bind to the 
packaging phase -->
                         <goals>
                             <goal>single</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>


On 12/10/17 12:51 PM, Nikita Timofeev wrote:
> ServerRuntime.builder().addModule(new Java8Module())


Mime
View raw message