I would like to create a "project" with maven, when I try to install the template or whatever its called into maven it throws up an error that it needs a plugin to "install" things. I downloaded the "install" plugin from github but can't find any actual instruction where this folder should be placed nor how get maven to see & use it.
Can anyone give me a straight forward answer?
This is my first time using maven (attempting to use it anyway). Also I am using Windows.
What I have tried: I've searched for answers online & the "answers" I've found about this are frustratingly unhelpful and explain nothing.
What I expected to happen: I expected to find actual intelligible instructions, written for people who don't already know how to use maven. However,the only even remotely useful instructions I've found say to place the plugin in a folder that doesn't exist & give no clue where this folder should be created. It's almost like some big troll joke from Apache: they might as well say "to install the install plugin, install it using the install command using the install plugin installation which requires the install plugin to be installed". One answer I saw says basically "find a machine with it already installed & copy it onto the other machine".
What actually resulted: A growing desire to print the plugin code onto paper, roll it into a tube & "install" it up the developer's butt. >:(
First make sure you have installed maven with this command in terminal.
mvn -v
Maven bin folder contain executable files including the 'mvn' command. Make sure this folder is in your system's PATH. If not, you need to add it yourself.
Maven dont require separately install plugin. It automatically downloads plugins. If you're dealing with specific plugin then specify its version in your project's pom.xml file under section.
<build>
<plugins>
<plugin>
<groupId>com.example</groupId>
<artifactId>your-plugin</artifactId>
<version>1.0.0</version>
</plugin>
</plugins>
</build>
Repository Configuration: Ensure Maven settings.xml file (found in the Maven conf directory) includes Maven Central Repository. If not, add the following within the section:
<mirror>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
Make Sure you have correct project structure and pom.xml
Build Your Project: Run mvn clean install in your project's directory. Maven will automatically download necessary plugins and dependencies.
mvn clean install