reset password
Author Message
yxu22
Posts: 25
Posted 19:10 Jan 07, 2014 |

For example, What I did is :

1. Add the api in Dependencies and edits the scope to system.

2. System Path : ${basedir}/src/main/webapp/WEB-INF/lib/chatter-bot-api.jar  

3. Drag the jar file to the location above.

I saw someone commented that "Using system scope may work but it is not recommended even in the Maven specification. it is not portable." on Stack Overflow.

So is there a better way to do that ? 

cysun
Posts: 2935
Posted 21:39 Jan 07, 2014 |

Just copy the jar file to src/main/webapp/WEB-INF/lib. You don't need to add it as a Maven dependency as there's little benefit in doing that.