I can build a deployable jar just fine on my local machine, but when trying to use jar built off our server, even if I explicitly invoke the command by hand, the jar will not run. At first, it appeared that it wasn't including files I'd had in my classpath/Resources directory, but after adding the builder-helper plug in, it's now including them properly. However, it still won't run. I'd like to know more about how to debug this, how to identify the differences in an effort to see what's happening locally versus the server. Here's the relevant POM section for the plug in
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-4</version>
<executions>
<execution>
<goals>
<goal>attached</goal>
</goals>
<phase>package</phase>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.medialets.service.PostEC</mainClass>
</manifest>
</archive>
</configuration>
</execution>
</executions>
Pardon if this is a really simple question; I'm relatively new to maven and haven't found a good answer anywhere. Possibly because it's more fundamental than I'm realizing. Thanks.