Code Monkey home page Code Monkey logo

onejar-maven-plugin's Introduction

onejar-maven-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

onejar-maven-plugin's Issues

Update to Version 1.4.5 and 1.4.6-SNAPSHOT?

This project was a copy of version 1.4.4 of the one on Google Code, but with artifacts released to Maven Central.

Version 1.4.5 allow additional manifest entries, including support for a SplashScreen-Image.

With Google Code project hosting has finally come to an end, the artifacts hosted there are no longer accessible, but the code still is. Any chance of updating this project to the later revisions, and releasing the newer artifacts to Maven Central?

Unexpected EOF when filename.equals(mainJarFilename)

When I set the filename of the output jar file to something other than ${project.build.finalName}.jar, a simple Hello World project compiles and runs with no issue.

<plugin>
    <groupId>com.jolira</groupId>
    <artifactId>onejar-maven-plugin</artifactId>
    <version>${plugin.version.onejar-maven-plugin}</version>
    <executions>
        <execution>
            <phase>package</phase>
            <configuration>
                <mainClass>${mainClass}</mainClass>
                <attachToBuild>true</attachToBuild>
                <filename>${project.build.finalName}-test.jar</filename>
            </configuration>
            <goals>
                <goal>one-jar</goal>
            </goals>
        </execution>
    </executions>
</plugin>

However, if I change <filename> to ${project.build.finalName}.jar, then running the project spits back the following error:

Unable to load resource: java.io.EOFException: Unexpected end of ZLIB input stream
java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
        at java.util.jar.JarInputStream.read(JarInputStream.java:207)
        at java.io.FilterInputStream.read(FilterInputStream.java:107)
        at com.simontuffs.onejar.JarClassLoader.copy(JarClassLoader.java:1214)
        at com.simontuffs.onejar.JarClassLoader.loadBytes(JarClassLoader.java:580)
        at com.simontuffs.onejar.JarClassLoader.loadByteCode(JarClassLoader.java:542)
        at com.simontuffs.onejar.JarClassLoader.load(JarClassLoader.java:452)
        at com.simontuffs.onejar.JarClassLoader.load(JarClassLoader.java:338)
        at com.simontuffs.onejar.Boot.run(Boot.java:322)
        at com.simontuffs.onejar.Boot.main(Boot.java:166)
Exception in thread "main" java.lang.ClassNotFoundException: com.nyefan.Main
        at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:713)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at com.simontuffs.onejar.JarClassLoader.loadClass(JarClassLoader.java:630)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at com.simontuffs.onejar.Boot.run(Boot.java:334)
        at com.simontuffs.onejar.Boot.main(Boot.java:166)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.