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?