Common problems with maven-jar-plugin 3.0.0
by Mikolaj Izdebski
Recently I've updated maven-jar-plugin to upstream version 3.0.0.
This update caused a few packages to fail to build. I will try to take
care of fixing most (all?) of broken packages, but in case someone needs
to fix a build problem by themselves, I'm sharing solutions to common
problems.
Common problem nr 1
-------------------
Plugin fails with error message: "You have to use a classifier to attach
supplemental artifacts to the project instead of replacing them."
It means that project defines its own JAR plugin executions, which are
trying to override JAR(s) generated by default executions. A solution to
most of cases like that would be skipping default execution, for eg.:
http://pkgs.fedoraproject.org/cgit/cal10n.git/commit/?id=f6b14c5
Common problem nr 2
-------------------
Plugin fails with error message: "You are using 'useDefaultManifestFile'
which has been removed from the maven-jar-plugin. Please see the >>Major
Version Upgrade to version 3.0.0<< on the plugin site."
As the error message and website say, you need to use Maven Archiver
configuration instead of deprecated 'useDefaultManifestFile', for eg.:
http://pkgs.fedoraproject.org/cgit/rpms/easymock.git/tree/easymock-port-t...
--
Mikolaj Izdebski
Software Engineer, Red Hat
IRC: mizdebsk
7 years, 3 months
java.lang.NoClassDefFoundError
by Jim Bradbury
Hope someone who knows Java can help me out.
I just downloaded "kmttg" which is a Java based app for downloading TV programs from my TiVo Roamio.
I've had it working on Ubuntu 15.1 for about a week. Today I decided to upgrade to Ubuntu 16.4.
Now I get this error. I thought alright, I'll just run "kmttg" on my Fedora 23 box which has Oracle Java 8
running on it. When I try to run kmttg on Fedora 23, I get the same error that I get on Ubuntu 16.4.
Here's the output I get when I try to run kmttg from the directory that contains kmttg and kmttg.jar:
./kmttg
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
Shutdown hook executing
Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "Thread-0"
Any help is appreciated. Thanks in advance.
-= Jim =-
jbradbury4(a)gmail.com
7 years, 4 months