Also, once you have installed the file, you must add a <dependency> in your pom.xml file with the proper GAV coordinates just like any other dependency.
Wayne On Mon, Oct 26, 2009 at 8:42 AM, Antonio Jacob Costa <[email protected]> wrote: > Hi Anil, > > In the *mvn install:install-file* statement you posted you have the > packaging wrong, it should be just *jar*. > > Best regards, > -- > António Jacob Costa > IBM Certified Deployment Professional - Maximo V6 EAM > > MAXIMO Consultant and Software Engineer > LinkedIn: http://www.linkedin.com/in/antoniojacobcosta > -- > > > > On Mon, Oct 26, 2009 at 14:20, anil.kumar <[email protected]> wrote: > >> >> While compiling the project source code using "mvn compile" command (mvn >> compile >>error.log) . One of the errors logged in was "package >> com.salmonllc.html does not exist" >> For successful compilation of the the project,it requires jar file >> (salmon.jar) . This jar file is not available in maven repository >> (http://repo1.maven.org/maven2/) . I need to install the above jar file in >> maven local repository. >> The default location of the maven local repository is "My >> Documents/.m2/repository/.. ". >> I installed the salmon.jar dependency using the command >> mvn install:install-file -Dfile="F:\3rdParty\salmon\jars\salmon.jar" >> -DgroupId="salmon" -DartifactId="salmon" -Dversion="1.0" >> -Dpackaging="salmon.jar" -DgeneratePom=true -e >> The Jar File is created in the location "C:\Documents and >> Settings\AK\.m2\repository". The compile time issue " package >> com.salmonllc.html does not exist" exits. >> Can some please tell me as to what could have gone wrong. >> -- >> View this message in context: >> http://www.nabble.com/Resolving-Compile-Time-issues-tp26059618p26059618.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
