How can I include the jboss-client.jar present in the Wildfly bin/client folder to my maven project?

1.1k Views Asked by At

I have a maven project to which I have to add a external jar jboss-client.jar which is located in Jboss Wildfly 10 bin folder(bin/client). There is no version specified in the jar name.

When I add the jar manually in build path-it works fine.

However, since this is a maven project, I require a better way of doing this.

Note: The project works with only this jar and not other versions specified in pom.xml which I tried downloading.

Also, if I try to specify the external dependency in pom.xml, it asks for version of the dependency. However, I cannot specify the same as it is not mentioned in the jar.

My ultimate aim is to deploy this project in Jboss Wildfly 10.

Is there any other alternate way, I can add the jar?

2

There are 2 best solutions below

1
On

You can use maven to install third party library in local. https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Using below command you can install.

mvn install:install-file -Dfile=path-to-file/jboss-client.jar -DgroupId=org.jboss -DartifactId=jboss-client -Dversion=1.0

8
On

Copy your jar to some other location and unzip/decompress it, then find Manifest file located at META-INF\MANIFEST.MF path.

Open it in text editor and look for Implementation-Version.

It will give you the version.

Reference