I hope this is helpful.You simply need to follow the instructions given by running the command shown as followsIf these dependencies are missing in the m2 folder you will get a message when building your application to inform you of this as belowThese dependencies are place in a folder .m2. If you are using windows7 or linux the m2 folder is located in the user home folder i.e c:\users\username(windows7/8/I use maven, currently. You would have to add your dependencies inside the <dependencies> tag something likeTherefore everything depends on how you build your application. The build tools you can use include Ant, Maven, Gradle just to mention a few.Dear Samuel,Ideally when you build your war(web archive) file, the dependencies i.e the jar files are placed in the lib folder. When the war is deployed in tomcat, it is self extracting and the application will reference those libraries.
.
.
.
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
.
.
.
</dependencies>10) or ~/.m2(linux)
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.ibm.mq:commonservices:jar:7.0.1_11
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.ibm.mq -DartifactId=commonservices -Dversion=7.0.1_11 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.ibm.mq -DartifactId=commonservices -Dversion=7.0.1_11 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.zeno.ebills:paybill:war:1.0
2) com.ibm.mq:commonservices:jar:7.0.1_11
mvn install:install-file -DgroupId=com.ibm.mq -DartifactId= commonservices -Dversion=7.1 -Dpackaging=jar -Dfile=/home/administrator/
workspace/paybills/libs/mq/com .ibm.mq .commonservices.jarOn Wed, Nov 16, 2016 at 9:18 AM, Samuel Waithaka via skunkworks <skunkworks@lists.my.co.ke> wrote:______________________________Will appreciate some advise.The main question though for the build; the ideal option I understand is to convert eclipse project to Maven. I'm wondering if there's anything we need to do with dependencies on pom.xml, or eclipse will do it automatically. I did with a test project and realized there's nothing on the dependacies on pom.xml.We use Eclipse, and Tomcat; during development, as usual we add libraries on the java build path (JDBC, Shiro authentication support, JSF and JSTL etc), we however discovered that we still have to add (some of) the libraries on Tomcat as well. (isn't there a better way of doing this?)Hello,I could use some help from java gurus, on building java web project. Here's my scenario:--Samuel Waithaka_________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke