fxlauncher icon indicating copy to clipboard operation
fxlauncher copied to clipboard

cannot have duplicate artifact names

Open sirolf2009 opened this issue 6 years ago • 2 comments

I'm using fxlauncher in a project of mine and I kept getting ClassNotFound errors. It took me a while to realize, but it turns out I have 2 dependencies where the artifactID are both called 'util'

		<dependency>
			<groupId>nl.np.util</groupId>
			<artifactId>util</artifactId>
			<version>1.9</version>
		</dependency>
		<dependency>
			<groupId>com.sirolf2009</groupId>
			<artifactId>util</artifactId>
			<version>0.0.4-SNAPSHOT</version>
		</dependency>

This is fine during development, but as soon as you launch it with fxlauncher, it will download both artifacts as util.jar to the same folder, so only one util.jar will remain, which is causing my ClassNotFound's.

I guess prefixing the group ID would fix it, but maybe it would be a nicer solution to have an maven repo folder layout?

sirolf2009 avatar Jan 24 '19 15:01 sirolf2009

We could have two options - one for maven style layout and one for prepending the package name for example, or simly giving a specific name to each dependency. I don't have time to work on this myself for now, but feel free to submit a PR.

edvin avatar Jan 25 '19 09:01 edvin

will do, I'm a little busy, so it might take a week or so.

sirolf2009 avatar Jan 30 '19 10:01 sirolf2009