-
Notifications
You must be signed in to change notification settings - Fork 100
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
Version 2.3.0
creates an uber-jar which causes class file duplicates
#336
Comments
You should consider excluding third-party dependencies as described in: Selecting Contents for Uber JAR |
As of 2.3.0 psl-java is intended to build with an executable uber jar. Maybe we can split the psl-java package into psl-java and psl-runtime packages. |
Do you have any suggestions for now? |
Are you using the PSL runtime? If you are, then I suggest building locally (or using the Sonatype snapshot repository, where we push all our dev builds (but we don't officially support that)). If you are not using the runtime, then psl-core is probably the dependency you want to target. |
OK, I just looked at the |
So, I have implemented my PSL job according to |
I have already moved the uber jar out of psl-java and into psl-runtime. psl-cli needs to be packaged with all dependencies, and should be a stand-alone executable. |
Sounds great! Do you plan to create a release for this?
I know that the psl-cli has really its standalone nature, but I was thinking about someone might want to use the psl-neural in his java project like the way I used the psl-java. In this case the problem arises with the uber-jar since the psl-neural is dependent on the psl-cli and it is an uber-jar! |
We don't have any dates for the next release yet. Eventually psl-neural will use the PSL Runtime (this was part of the reason for the creation of the runtime), so that will eventually solve the issue. |
Hi,
I currently upgraded from
CANAR-2.3.1
to2.3.0
and I found out that you are using apache'smaven-shade-plugin
on the build atpom.xml
. I think you should avoid creating uber-jar inpsl-java
because I assume it was not intended as a standalone executable application before, was it? I think the standalone version ofPSL
is thepsl-cli
.Anyway, the exact problem is when I use this uber-jar the
Slf4J
or any common dependency betweenpsl-java
and my application causes class file duplication.The text was updated successfully, but these errors were encountered: