DartifactId=morena -Dversion=7.0 -Dpackaging=jar See documentation for more details.Įxample: mvn install:install-file -Dfile=morena7.jar -DgroupId=sk.gnome \ This can be done with the mvn install:install-file command and the appropriate parameters. Installing dependencies in the local repositoryĪnother solution is to use the install plugin to install the jars in a local repository. You should then use a directory outside the project. Note: Maven has added a restriction on the use of libs within the project, as can be seen in the error edited in the question. The problem with this approach is that you need to keep the Jars in the repository, which is not very suitable. Use the $ variable to indicate the project home directory. These dependencies may also be within the project. You can also point to the dependency path of type system. The advantage of having your own repository is that you can use it to manage the versions of your projects as well.Īnother advantage is that it caches the central repository and its environment gets faster. For this you need a server with Artifactory or Nexus. The ideal is to install the jars in a repository of your company / house.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |