I have a pre-established project that originally had all jars checked in with the project. We are in the process of retrofitting this project to make use of Ivy for dependency management. For most of the jars utilized, I was able to locate them on ibiblio, and so the public resolver works just fine. However, there are a handful of jars that I cannot locate publicly. Example: 1.) I just haven't looked hard enough, 2.) the jar is under US export control so isn't exposed on a public repository, or 3.) the jar is a patch release - the unpatched version exists, but not the patch.
Ideally, I'd like to push these extra jars to our Enterprise repository (shared). I can change the settings so that
Ant will use the public repository and then fall back on the shared repository. That should allow the projects to be 3rd-party-jar clean and let Ivy do the heavy lifting.
My problem is that I don't know how to take a jar and upload it to a repository. The <ivy:publish> target looks promising but seems to be geared toward pushing artifacts up - the jars here aren't really artifacts. I'm trying to create a one-time-use thing to push the extra libs up to the repository.
Here's example:
Output:
BUILD FAILED
impossible to publish artifacts for javax.resource#connector;working@jbennett: java.lang.IllegalStateException: bad
ivy file for javax.resource#connector;working@jbennett: C:\MyWorkspace\MyProject\thirdparty\lib\connector-1_5.jar: java.text.ParseException: [[Fatal Error
] connector-1_5.jar:1:1: Content is not allowed in prolog. in file:/C:/MyWorkspace/MyProject/thirdparty/lib/connector-1_5.jar