Maven install plugin not found

1.1k Views Asked by At

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?

1

There are 1 best solutions below

12
Ahamed N On

For the first time you need to use internet, so that your local/central repository get all the plugins which required to use mvn install.

Then you can work on offline mode.