-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
${name}-${version}-runnable.jar
is not found in deployment directory
#355
Comments
As I'm seeing in your output, the runnable JAR should be in
I think nothing has been changed.
The runnable JAR is concatenated to the BASH script in order to create the executable. I guess you made a mistake here: |
Hi @fvarrui I didn't change the configuration in our pom.xml . The only thing i changed was the version number of the java packager from 1.7.2 to 1.7.3 and suddenly this error occurred. When i go back to the older version of the javapackager then it works again. But to answer your last question: the destination of concat is an executable on linux. But then there is a |
In git i found that in 1.7.3 in the class |
WoW!! 😮 Yes, you are right. This change was made to avoid a warning message, since new versions of |
Hi @fvarrui, I think the real issue is here: Best, |
Are you setting |
Good point! I'll do some research about this |
yes. exactly. As soon as i set the |
Ok, I guessed so ... I'm working right now on this issue. I just found how to get |
Just patched in branch issue-355. Try snapshot version |
Hi @fvarrui . |
Branch issue-355 merged into devel, ready to be released in v1.7.4 |
1.7.4 released to Maven Central |
Hi @fvarrui . the issue is unfortunately still there in the case of The error message i got now is the following:
Again if i take |
Hi @kia! pom.xml: <build>
<finalName>ohlala</finalName>
<plugins>
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.7.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
<configuration>
<platform>windows</platform>
<bundleJre>false</bundleJre>
<copyDependencies>true</copyDependencies>
<generateInstaller>false</generateInstaller>
<outputDirectory>target/windows</outputDirectory>
<additionalResources>
<additionalResource>src/main/resources/info.txt</additionalResource>
<additionalResource>HelloWorldMaven.l4j.ini</additionalResource>
</additionalResources>
<vmArgs>
<vmArg>-Dcustom.variable="Hi!"</vmArg>
<vmArg>-Dother.custom.variable="Bye!"</vmArg>
</vmArgs>
<fileAssociations>
<fileAssociation>
<description>HelloWorld File</description>
<extension>hello</extension>
<mimeType>application/hello</mimeType>
</fileAssociation>
</fileAssociations>
<winConfig>
<headerType>console</headerType>
<icoFile>src/main/resources/HelloWorldMaven.ico</icoFile>
</winConfig>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Am I missing anything? |
Did you try |
Oh! 😓 sorry, I didn't read well your message, I see ... JP is renaming the runnable JAR to {name}-{version}-runnable.jar, so it fails when trying to install the original JAR into the local Maven repo |
Ok, I've coded a patch, merged it into devel branch, and publish as a snapshot: Now JP keeps the name of the runnable JAR. I could't test it exhaustively, so, please, test it and give me some feedback. Could you test it on all platforms? |
Hi @fvarrui I tested both best, |
Great!!! And sorry, I didn't realize about this behaviour. I'm going to release JP 1.7.5 with this patch ASAP |
Thank you very much for your quick responses and fixes. |
Hi @fvarrui best, |
Sorry, I read your comment but forgot it. I'm going to release 1.7.5 this evening |
Thank you! 👍 |
I've just released 1.7.5 to Maven Central. |
Thank you @fvarrui |
Hi @fvarrui |
There is now a new issue. The
${name}-${version}-runnable.jar
is not found in deployment directory. In the deployement directory i find${name}.jar
without version and 'runnable'.Am i missing some configuration details that i have to consider in the new Version?
The very last step during packaging seems to rename the build artifact jar file.
This is the message:
Concatenating files [/target/deploy/linux/assets/startup.sh,/target/deploy/linux/name-version-runnable.jar] into file [/target/deploy/linux/<name>.jar]
best,
Kia
Originally posted by @kia in #335 (comment)
The text was updated successfully, but these errors were encountered: