I am getting an warning message because I manually added a jar file to my local maven repository.
[INFO] Downloading: http://repo.maven.apache.org/maven2/com/netsuite/nsws-2014/1.0/nsws-2014-1.0.pom
[WARNING] The POM for com.netsuite:nsws-2014:jar:1.0 is missing, no dependency information available
How do I properly add a jar file to my local Maven repository using Eclipse m2e on Luna Service (4.4.1)?
Like can I use the builder?
The local Maven repository is effectively a standard Maven repository; as such, it must adhere to a particular format (there are a few Maven-compatible repository formats).
Dropping files into a repository isn't going to cut it, unless you are able to mimic the creation of additional artifacts in accordance to the Maven repository format that you use.
The only foolproof way to do so would be to use the install:install-file
goal, as specified here: http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
To do this using m2e, you need to use a small hack. Create a Maven Launch configuration. In the "base directory" field, type in a value that will always resolve to a real directory, such as ${workspace_loc}
. In the "Goals", field, type install:install-file
, and then add the parameters (see the link in the paragraph below) in the "parameters" table (use the "Add" button to add parameters). Then run this launch configuration.