• Uncategorized

About java : Can-I-use-jar-file-in-maven-m2-directory-to-manually-install-in-Linux

Question Detail

I want to use the jar files in maven’s m2 directory from Windows to install the same artifact and same version to Linux. There is maven available in Linux. And I want to install the package using the command :

mvn install:install-file -Dfile=xxx.filepath.jar -DgroupId=xxx.org.group.id -DartifactId=xxx.packageartifactid -Dversion=xxx.1.0.0 -Dpackaging=jar.

Does that work?

Question Answer

jar files are intended to run on any OS on which a JVM exists unless you have OS-specific code in your files.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.