edmund-wagner / junrar

plain java unrar util (former sf project)
Other
186 stars 90 forks source link

Unable to run #47

Open evandrix opened 5 years ago

evandrix commented 5 years ago

Trying to run the mvn package-produced .jar fails, without dep:unrar

Static compile Add to /testutil/pom.xml:

<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <configuration>
        <archive>
            <manifest>
                <mainClass>com.github.junrar.testutil.JUnRarTestUtil</mainClass>
            </manifest>
        </archive>
        <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
    </configuration>
</plugin>

compile: $ mvn clean compile assembly:single run: $ java -jar target/junrar-testutil-0.1-jar-with-dependencies.jar