Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
Also, using the following eclipse version:
Eclipse SDK Version: 3.7.2
with the M2e maven plugin
Original comment by surfdog2...@gmail.com
on 7 May 2013 at 11:16
It looks like eclipse is incorrectly constructing the jar. It's putting the
resources into a "resources" directory when it needs to be in the root.
I've updated the maven pom to create an executable jar. The difference is that
the decencies are external. This is to keep consistent with the main project.
If you want to create a standalone uber jar, use the "shade" maven plugin to
build the jar. The following is an example of using the shade plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<!-- <mainClass>org.gearman.examples.echo.EchoClient</mainClass> -->
<!-- <mainClass>org.gearman.examples.echo.EchoClientAsynchronous</mainClass> -->
<!-- <mainClass>org.gearman.examples.echo.EchoWorker</mainClass> -->
<mainClass>org.gearman.examples.echo.EchoWorkerServer</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
Original comment by isaiah.v...@gmail.com
on 8 May 2013 at 3:30
I'm closing this issue, but it can be reopened. If you are still having issues,
let me know.
Original comment by isaiah.v...@gmail.com
on 8 May 2013 at 3:35
Original issue reported on code.google.com by
surfdog2...@gmail.com
on 7 May 2013 at 10:56Attachments: