dependency
I am trying to add a cordova plugin and I was looking at the plugin.xml file of the cordova plugin. I see the following 2 lines
If I want to use this plugin, where should I add / use the above 2 lines?
Thanks,
M&M
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I am trying to add a cordova plugin and I was looking at the plugin.xml file of the cordova plugin. I see the following 2 lines
If I want to use this plugin, where should I add / use the above 2 lines?
Thanks,
M&M
Hello M&M,
You forget to post lines, could you try it again ?
hi,
These 2 lines below
code
<dependency id="org.apache.cordova.geolocation" />
<dependency id="org.apache.cordova.dialogs" />
/code
thanks
Hello M&M.
1) check if your dependency stored as jar in maven already, by checking it on mvnrepository.org
if jar wasn't found
2) create repo/xxx/yyy/zzz.jar, repo/xxx/yyy/zzz.pom
where xxx/yyy/zzz - package name of your jar file
3) add dependency to pom.xml
http://gyazo.com/9a81175806f6e19841e5...
code
<dependency>
<groupId>PACKAGE_NAME</groupId>
<artifactId>JAR-ARTIFACT </artifactId>
<version>VERSION </version>
</dependency>
/code
if jar was found, then simply add dependency to pom.xml
http://gyazo.com/9a81175806f6e19841e5...