Maybe you might wanna look at the shade-maven-plugin. This is what the Maven Ant tasks are using to make an uberjar.

Some docs here:

    http://mojo.codehaus.org/shade-maven-plugin/

Not much, and not sure how current... would really like to see some real bits added here at some point...

--jason


On Aug 16, 2007, at 4:30 AM, Willem Geert Phaff wrote:

Hello,

My apologies if this has been posted before, but archive search appears to be dead. After pulling my hair in frustration for several hours, I decided to send this email.

I'm trying to create a stand-alone jar of a project I have been working on, but minijar is not exactly cooperating.

The plugin configuration I'm using is:

            <!-- minijar: package to one complete jar -->
            <plugin>
                <artifactId>minijar-maven-plugin</artifactId>
                <groupId>org.codehaus.mojo</groupId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>ueberjar</goal>
                        </goals>
                        <configuration>
<stripUnusedClasses>false</ stripUnusedClasses>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>

The minijar:minijar command appears to complete correctly, but using the created file in matlab, I get the following error:

java.lang.ClassFormatError : Illegal class name "jung176jar/org/ vafer/RuntimeMapper.class" in class file jung176jar/edu/uci/ics/ jung/graph/Graph$1

Does anyone have any idea about what I'm doing wrong here?


Regards, thanks for the help,

Willem Geert




Reply via email to