I am using to manage dependency on my project.
So far, I have specified the dependence on the hibernate and servlet-API, however, there are many dependencies in the hibernate jar which are not really needed, such as the other.
It becomes a show because Jays and Jack are the Sun Library and therefore their licenses do not refuse to give them the place in the Maven Repos, Ivy can not be found there.
- How do I download Ivy to Hibernate, but not both?
- In the form of a bonus, if I really need them and downloaded my jar from the sun, in which can see the folder iv in my machine?
How do I download Ivy to Hibernate but not both?
Ivy called it "configuration", use it. Your ivy.xml
which represents Hibernate, will need to provide different configurations to represent different use-cases to be hibernate. (Clearly some hibernate is used which requires JAC and JACC, but apparently you do not use that case.)
The documentation on the configuration is if you have ivy .xml
, you are using for hibernate, I can provide pointers on building configurations that will remove specific libraries to be removed.
If I really needed those people and downloaded their jars from the sun, in which Ivy will see the folder in my machine?
"Directory" that are visible to Ivy files and artifacts I list the list of resolutions you are using revolver list IV settings file (usually ivysettings.xml
is designated). Usually these are not local directories, but the remote URL is there; However, a local file resolver type that will work for it.
If you do this, you will need to provide both Ivy files and artifacts (jars), with each filename that corresponds to the resolver pattern. Details on that are in documentation.
Here is an example of a local file resolver from an IVV settings file:
& lt; Filesystem name = "myfiles" checkconsistency = "wrong" checksum = "" transaction = "wrong" & gt; & Lt; IV pattern = "/ data / repo / [organization] / [module] - [amendment] .ivy.xml" /> & Lt; Artifact pattern = "/ data / repo / [organization] / [module] - [amendment]." [Ext] "/> & Lt; / File system & gt;
Also keep in mind that you will need to point to your Ivy functions in the right resolver. You can do this with the Resolver attribute on ant functions, or with the defaultResolver
attribute in the IV settings file with the Settings
element.
Documentation on Resolver is
Edit: OP found a short-time deep solution for its specific core problem. Worked for the "child" to exclude dependency tags:
& lt; Dependency & gt; & Lt; Dependency org = "org.hibernate" name = "hibernate-core" rev = "3.3.1.GA" conf = '..' & gt; & Lt; Do not leave the name = 'Jas' /> & Lt; Name = 'jacc' / & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt;
Comments
Post a Comment