java - Apache Ivy inside NetBeans to resolve imports -
i use apache ivy resolve dependencies(imports) inside project in java. i'm using netbeans 7.1.2 (java ee version). i've installed ivybeans plugin (version 1.2). built project , ivy has created ivyfiles , ivylibraries folder inside project folder (both of them empty). problem no libraries resolved. obtain following message builder:
[path_to_project]\nbproject\ivy-impl.xml:92: settings file not exist: [path_to_project]\${ivy.settings.location} this ivy-resolve output:
resolving compile scope ... :: loading settings :: url = jar:file:/c:/users/jakub/.netbeans/7.1.2/modules/ext/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: ivythriftapp#ivythriftapp;1.0 confs: [compile] :: resolution report :: resolve 6ms :: artifacts dl 0ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | compile | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- resolving processor scope ... :: loading settings :: url = jar:file:/c:/users/jakub/.netbeans/7.1.2/modules/ext/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: ivythriftapp#ivythriftapp;1.0 confs: [compile] :: resolution report :: resolve 3ms :: artifacts dl 0ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | compile | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- resolving runtime scope ... :: loading settings :: url = jar:file:/c:/users/jakub/.netbeans/7.1.2/modules/ext/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: ivythriftapp#ivythriftapp;1.0 confs: [compile, runtime] :: resolution report :: resolve 3ms :: artifacts dl 0ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | compile | 0 | 0 | 0 | 0 || 0 | 0 | | runtime | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- resolving compile_test scope ... :: loading settings :: url = jar:file:/c:/users/jakub/.netbeans/7.1.2/modules/ext/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: ivythriftapp#ivythriftapp;1.0 confs: [compile, compile-test] :: resolution report :: resolve 4ms :: artifacts dl 0ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | compile | 0 | 0 | 0 | 0 || 0 | 0 | | compile-test | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- resolving runtime_test scope ... :: loading settings :: url = jar:file:/c:/users/jakub/.netbeans/7.1.2/modules/ext/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: ivythriftapp#ivythriftapp;1.0 confs: [compile, compile-test, runtime, runtime-test] :: resolution report :: resolve 4ms :: artifacts dl 0ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | compile | 0 | 0 | 0 | 0 || 0 | 0 | | compile-test | 0 | 0 | 0 | 0 || 0 | 0 | | runtime | 0 | 0 | 0 | 0 || 0 | 0 | | runtime-test | 0 | 0 | 0 | 0 || 0 | 0 | --------------------------------------------------------------------- is there misunderstanding side of how apache ivy works under netbeans or @ all? vision use dependencies inside project - build , ivy automatically gets dependencies internet , dont have care adding external libraries project.
any suggestions how resolve problem ?
thank or recommendations :)
looks ivy resolve working fine. within build file how using using resolved jars populate ant project's classpath?
one popular option call ivy retrieve task populate local lib directory:
<ivy:retrieve/> <path id="build.path"> <fileset dir="lib" includes="**/*.jar"/> </path> my preference , recommendation use ivy's cachepath task:
<ivy:cachepath pathid="build.path"/> a more complete example (using ivy configurations) given here:
Comments
Post a Comment