Closed rkovarik closed 2 months ago
No, vaadin-open
hasn't been merged into vaadin-server
. Open is used by the license checker to launch a web browser so that you can easily validate your license. That's it.
vaadin-server
includes license-checker
as a dependency. license-checker
includes vaadin-open
. There are no classes with the same package names in vaadin-server
and vaadin-open
- the classes in the first output listing in your report is the complete contents of vaadin-open
, and they are unique to vaadin-open
.
This is the first time I've seen this. To speed up testing, could you attempt to replicate this with a trivial project of some kind and provide it as a zip, or describe the steps you used to create it?
Indeed, I can’t find the duplicates in the source code. When I download the artifact though, unless I’m misunderstanding something, the files are present:
➜ test curl https://repo1.maven.org/maven2/com/vaadin/vaadin-server/8.24.0/vaadin-server-8.24.0.jar > vaadin-server-8.24.0.jar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2610k 100 2610k 0 0 1179k 0 0:00:02 0:00:02 --:--:-- 1179k
➜ test unzip vaadin-server-8.24.0.jar
Archive: vaadin-server-8.24.0.jar
...
inflating: com/vaadin/open/App.class
inflating: com/vaadin/open/Docker.class
inflating: com/vaadin/open/FileUtil.class
inflating: com/vaadin/open/LinuxProcFileReader.class
inflating: com/vaadin/open/OSUtils.class
inflating: com/vaadin/open/Open.class
inflating: com/vaadin/open/Options.class
inflating: com/vaadin/open/xdg-open
inflating: com/vaadin/pro/licensechecker/BuildType.class
...
➜ test curl https://repo1.maven.org/maven2/com/vaadin/open/8.5.0/open-8.5.0.jar > open-8.5.0.jar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 25730 100 25730 0 0 213k 0 --:--:-- --:--:-- --:--:-- 214k
➜ test unzip open-8.5.0.jar
Archive: open-8.5.0.jar
replace META-INF/MANIFEST.MF? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: META-INF/MANIFEST.MF
inflating: com/vaadin/open/xdg-open
inflating: com/vaadin/open/Open.class
inflating: com/vaadin/open/Options.class
inflating: com/vaadin/open/App.class
inflating: com/vaadin/open/OSUtils.class
inflating: META-INF/maven/com.vaadin/open/pom.xml
inflating: META-INF/maven/com.vaadin/open/pom.properties
inflating: META-INF/INDEX.LIST
inflating: com/vaadin/open/LinuxProcFileReader.class
inflating: com/vaadin/open/Docker.class
inflating: com/vaadin/open/FileUtil.class
Could maybe a maven plugin copy these files during the release process? 🤔
That would be my guess, though a quick look through the pom.xml files did not reveal anything out of the ordinary. I'll need to take a good look at those.
Fixed in the newly released 8.25.1.
Looks like there are duplicate classes in
vaadin-server:8.24.0
andcom.vaadin:open:8.5.0
. There doesn't seems to be newer version ofhttps://mvnrepository.com/artifact/com.vaadin/open
or perhaps the entire content of this artifact has already been merged into vaadin-server and shouldn't be included anymore?mvn dependency:tree:
Maybe this could be used as a workaround: