java - How to set the Play framework local dependencies of a WSDL generated JAR? -


i have created jar file using saleforce's wsc. want use jar file in play framework app (v.1.2.*). local file, put jar file in special jar folder, , set in dependencies.yml following lines:

- provided:         type:       local         artifact:   ${application.path}/jar/sfpartner.jar         contains:             - provided -> * 

unfortunately doesn't seem work. suspect it's because jar file doesn't have revision number. idea how fix it?

the lines you've added dependencies.yml define repository: tell play framework packages group "provided" under location specified.

you still need tell play actual dependency. add line under require: section of file looks this:

- provided -> sfpartner 1.0 

the format of these lines group -> package version, since repository contains 1 artifact, package , version write won't matter. usually, parameterize artifact element, this:

    artifact: ${application.path}/jar/[module].jar 

this way, package (module) name determines jar use. might want if think you'll have more 1 non-maven jar files in project.

you seem have unrelated problem discovered when put jar file directly in lib directory. open question more details, or, know, email me. ;)


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -