You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Loehr, Ruel" <rl...@pointserve.com> on 2007/06/21 21:48:29 UTC
Help with publishing
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
Re: Help with publishing
Posted by Gilles Scokart <gs...@gmail.com>.
You should not specify an organisation and a module.
You should firt make a resolve, then make your publish.
The method that you use (specifying organisation and module) assume
that the resolve has been done in a previous build run. Publish
search for some files that are kept in the cache between build.
I hope it help,
Gilles
2007/6/21, Loehr, Ruel <rl...@pointserve.com>:
> 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
>
>
>
>
--
Gilles SCOKART