[Ole Aamot]
When I try to invoke it, I find that the main class app.N5CoreApp won't initialize.
ole@intelligence:~/noark/nikita-noark5-core$ /usr/bin/java -jar /var/nikita-noark5-core/nikita-noark5-core-0.7.jar Error: Unable to initialize main class app.N5CoreApp Caused by: java.lang.NoClassDefFoundError: org/springframework/core/env/Environment ole@intelligence:~/noark/nikita-noark5-core$ /usr/bin/java -jar /var/nikita-noark5-core/nikita-noark5-core-0.7.ja
I used the org.codehaus.mojo rpm-maven-plugin to build the RPM file.
This work for me, when I use the enclosed patch.
diff --git a/pom.xml b/pom.xml index 496b52569..f7de1a7a5 100644 --- a/pom.xml +++ b/pom.xml @@ -281,6 +281,19 @@
<build> <plugins> + <plugin> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-maven-plugin</artifactId> + <!-- versjon 3.2.5 er valgt vilkårlig --> + <version>3.2.5</version> + <executions> + <execution> + <goals> + <goal>repackage</goal> + </goals> + </execution> + </executions> + </plugin> <plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId>
I get a file that start as it should with 'java -jar'.