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())

Reply via email to