Hey guys,
I've reread all the docs and archived mail messages, but I'm having a
really tough time getting my publishing to work.
My goal: Build my project, then publish an .ear file to my internal
ivy repository.
Ivy.xml snippet:
<publications>
<artifact name="ServiceNetworkManagement" type="ear"/>
</publications>
Build file snippet:
<target name="ivy-publish" depends="init, ivy-setup" description="-->
setup ivy configuration">
<ivy-publish resolver="default" revision="${VERSION}"
organisation="pointserve" module="ServiceNetworkManagement"
validate="false" publishivy="false" haltonmissing="false"
srcivypattern="${ivy.project.dir}/ivy.xml">
<artifacts pattern="bin/ServiceNetworkManagement.ear" />
</ivy-publish>
</target>
Results of building:
$ ant ivy-publish
Buildfile: build.xml
init:
init-properties:
ivy-setup:
ivy-publish:
[ivy-publish] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/
::
[ivy-publish] :: configuring :: file =
C:\Builds\newESOBuilds\v27_0_0\snm\build
config\ivy\ivyconf.xml
[ivy-publish] :: publishing :: [ pointserve | ServiceNetworkManagement ]
BUILD FAILED
C:\Builds\newESOBuilds\v27_0_0\snm\build\task-dependency.xml:41:
impossible to
ublish artifacts for [ pointserve | ServiceNetworkManagement | 27.0.0 ]:
java.l
ng.IllegalStateException: ivy file not found in cache for [ pointserve |
Servic
NetworkManagement | 27.0.0 ]: please resolve dependencies before
publishing (C:
Documents and
Settings\scarter\.ivy\cache\resolved-pointserve-ServiceNetworkMan
gement-27.0.0.xml)
Obviously there is no file xml where it is looking, but I have no idea
how that file is supposed to get there. Do I have to somehow create
an xml file specifically for my artifact I wish to publish?
I'm confused. Any suggestions?
Ruel Loehr
Configuration Management
Pointserve, Inc.
110 Wild Basin Road
Suite 300
Austin, Texas 78746
O: 512.617.5314
F: 512.617.0466