I have to add some .pom files to the local .m2 repository and I am working on an offline system.
After successfully installing maven (checked with mvn -v
) i tried to install the desired files using mvn install:install-file -Dfile=<Path/to/pom>
.
However, this leads to a NoPluginFoundforPrefixException, because the prefix "install" is apparently unknown. Trying to download it from the central repository after execution obviously fails since the computer is not connected to the internet.
How can I get mvn install to work?