Open maxtar opened 9 years ago
With replacing the maven-dependency-plugin with the spring-boot-maven-plugin in ee37e4949d019c9d3d0c7658aa44ea6d2f29d8f7 the name of the created jar-file changed from cucumber-report-web.jar
to cucumber-report-web-${version}.jar
. A version-independent launch command would be java -jar cucumber-report-web/target/ccucumber-report-web*.jar
.
I thought about adding a release-changelog (history.md) to track all the changes. And in addition I want to remove the jar profile for building a bootified version of the cucumber-report-db, which may change the name of the created jar file again.
changed finalname of bootified-jar to cucumber-report-db-${version}-bootable.jar. You can use java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar
in order to run the application.
Thanx, Klaus.
Klaus, doesn't works. ">java -jar cucumber-report-web/target/cucumber-report-web-bootable.jar Error: Unable to access jarfile cucumber-report-web/target/cucumber-report-web-bootable.jar"
you are missing a * because the version number is a part of the jar-name
Try java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar
.
HTH Klaus
Klaus. The asterisk was. But copy/paste have removed them. :) Maybe markdown feature?!
Sorry, Klaus, I didn't understand, is it fixed?
Still doesn't start.
It still doesn't start? Even with the adapted launch string java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar
? Could you share your error message?
The same:
C:\usr\Java\cucumber-report-db-master>java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar Error: Unable to access jarfile cucumber-report-web/target/cucumber-report-web*-bootable.jar
What jar- and war-files are in the target folder of the cucumber-report-web module? There should be four files
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT-bootable.jar
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT-classes.jar
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT.jar
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT.war
Yeah, all correct:
classes
cucumber-report-web-1.1.0.RC16-SNAPSHOT
cucumber-report-web-1.1.0.RC16-SNAPSHOT-bootable.jar
cucumber-report-web-1.1.0.RC16-SNAPSHOT-classes.jar
cucumber-report-web-1.1.0.RC16-SNAPSHOT.jar
cucumber-report-web-1.1.0.RC16-SNAPSHOT.war
generated-sources
maven-archiver
maven-status
But it does work when you start with java -jar cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT-bootable.jar
?
Yes, you are right.
Hm but it does not start when you try java -jar cucumber-report-web/target/cucumber-report-web-*-bootable.jar
? That's strange... What OS are you using?
I'm trying on Windows 7.
Hi, Klaus. On UNIX it's OK. Starting with java -jar cucumber-report-web/target/cucumber-report-web-*-bootable.jar
So... It's Windows "feature"...
But I've tried it on Windows7. That's what puzzles me. Maybe it has something todo with charsets? Or are there multiple files matching the regex cucumber-report-web/target/cucumber-report-web-*-bootable.jar
?
What's the output when you try dir cucumber-report-web/target/cucumber-report-web*-bootable.jar
Please be aware that the final name of the bootable web-application has been changed from cucumber-report-web*-bootable.jar
to cucumber-report-web*-bootable.war
. Maybe this helps?
Ok, will try. Will write after check. :)
Hi. Klaus, Doesn't works.
cucumber-report-db-master\cucumber-report-web\target>java -jar cucumber-report-web*-bootable.war
Error: Unable to access jarfile cucumber-report-web*-bootable.war
hum that's tricky.. is it a permission problem?
What's the output of ls -la cucumber-report-web/target/cucumber-report-web*-bootable.jar
(or Get-Acl .\cucumber-report-web\target\cucumber-report-web*-bootable.jar
using power-shell on windows?)
Why jar?
cucumber-report-db-master>ls -la cucumber-report-web/target/cucumber-report-web*-bootable.jar
ls: cucumber-report-web/target/cucumber-report-web*-bootable.jar: Invalid argument
If war:
cucumber-report-db-master>ls -la cucumber-report-web/target/cucumber-report-web*-bootable.war
-rw-rw-rw- 1 user 0 19652434 2015-08-10 16:39 cucumber-report-web/target/cucumber-report-web-1.1.0.RC22-SNAPSHOT-bootable.war
After last updates I can't start application. When I do "java -jar cucumber-report-web/target/cucumber-report-web.jar", I've got error: "Error: Unable to access jarfile cucumber-report-web/target/cucumber-report-web.jar" P.S.: application was runned when I do: "java -jar cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT.jar"