M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

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

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

dependency

Hello M&M,

You forget to post lines, could you try it again ?

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

dependency

hi,

These 2 lines below

code
<dependency id="org&#46;apache&#46;cordova&#46;geolocation" />
<dependency id="org&#46;apache&#46;cordova&#46;dialogs" />
/code

thanks

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

dependency

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...

Return to “Issues”