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 pa...@targetgroup.net on 2009/01/29 10:33:46 UTC

Help needed on missing artifact message





Can someone explain to me exactly what the message below means. I'm
confused as to what fields are what in it, and what the # ; and ! indicate

impossible to publish artifacts for
net.example#net.example.TestIntegrationResultSchemas; working@CD01571N:
java.io.IOException: missing artifact
net.example#net.example.TestIntegrationResultSchemas;20090129091628!net.example.TestIntegrationResultSchemas.jar

Can I make a suggestion for improving this message as when I get publishing
errors I am finding it very hard to understand why it has not published.
Anyone any ideas ?

My ivy file is:

<ivy-module version="2.0">
      <info organisation="net.example" module=
"net.example.TestIntegrationResultSchemas" status="integration" />

      <configurations>
            <conf name="compile" visibility="public" />
      </configurations>

      <publications>
            <artifact />

      </publications>

      <dependencies>
            <dependency org="org.apache.xmlbeans" name=
"com.springsource.org.apache.xmlbeans" rev="2.4.0" conf="compile->compile"
/>
            <dependency org="javax.xml.stream" name=
"com.springsource.javax.xml.stream" rev="1.0.1"  conf="compile->compile"/>
    </dependencies>

</ivy-module>

and my build file:

<?eclipse.ant.import?>
<project name="TestIntegrationResultSchemas" basedir="." xmlns:ivy=
"antlib:org.apache.ivy.ant">


      <description>
    Build file for TestIntegrationResultSchemas
      </description>

      <property name="from-resolver" value="default" />
      <property name="to-resolver" value="teamivy" />
      <property name="workspaceloc" location=".." />

      <property name="xmlgenlocation" location=
"${workspaceloc}/xmlbeansgen" />
      <property name="srclocation" location="${xmlgenlocation}/src" />
      <property name="jarlocation" location="${xmlgenlocation}/jar" />
      <property name="schemaslocation" location="./schema" />
      <property name="ivy.lib.dir" location="lib" />

      <tstamp>
            <format property="timestamp" pattern="yyyyMMddHHmmss" timezone=
"GMT" />
      </tstamp>
      <target name="ivy-init">
            <property name="ivy.lib.dir" location="lib" />
            <path id="compile.classpath">
                  <fileset dir="${ivy.lib.dir}">
                        <include name="*.jar" />
                  </fileset>

            </path>

            <property name="src.dir" location="src" />
            <property name="dist.dir" location="dist" />
            <property name="xmlbeansjar.dir" location="nonivyjars" />

            <property name="build.dir" location="bin" />
            <delete dir="${dist.dir}" failonerror="false" />

            <property name="ivy.organisation" value="net.example" />
            <property name="ivy.module" value=
"net.example.TestIntegrationResultSchemas" />
            <property name="ivy.revision" value="${timestamp}" />

            <ivy:settings file="y:\\ivySettings.xml" />

            <property name="target.jar" value=
"${ivy.module}-${ivy.revision}.jar" />
            <property name="target-sources.jar" value=
"${ivy.module}-sources-${ivy.revision}.jar" />
      </target>

      <target name="ivy-resolve" depends="ivy-init">
            <echo>Ivy cache dir: ${ivy.cache.dir}</echo>
            <ivy:resolve />
      </target>

      <target name="ivy-retrieve" depends="ivy-resolve">
            <ivy:retrieve pattern=
"${ivy.lib.dir}/[artifact]-[revision].[ext]" sync="true" />
      </target>

      <target name="ivy-report" depends="ivy-resolve">
            <ivy:report todir="${build.dir}/ivy/report" />
      </target>




      <target name="ivy-publish" depends="generateXMLbeans">
            <echo message="${ivy.revision}" />
            <copy includeemptydirs="false" file="ivy.xml" tofile=
"${dist.dir}/ivy-${ivy.revision}.xml" />
            <ivy:publish resolver="teamivy" warnonmissing="false"
overwrite="true" update="true" artifactspattern=
"${dist.dir}/[artifact]-[revision].[ext]" />
            <delete dir="${dist.dir}" />
      </target>

      <target name="ivy-clean" depends="ivy-init">
            <delete dir="${ivy.lib.dir}" />
      </target>
      <target name="createRootFolders">
            <mkdir dir="${xmlgenlocation}" />

      </target>


      <target name="generateXMLbeans" depends=
"createRootFolders,ivy-retrieve">
            <mkdir dir="${dist.dir}" />

            <property name="xmlbeansjarname" value=
"TestIntegrationResultSchemas.jar" />

            <mkdir dir="${srclocation}" />


            <taskdef name="xmlbean" classname=
"org.apache.xmlbeans.impl.tool.XMLBean" classpathref="compile.classpath" />

            <echo message="ivy rev ${ivy.revision} target jar
${target.jar}" />
            <xmlbean download="false" srcgendir="${srclocation}" destfile=
"${dist.dir}/${target.jar}" classpathref="compile.classpath" debug="true"
srconly="false">

                  <fileset dir="${schemaslocation}" includes=
"ResultWSI.wsdl" />
            </xmlbean>

      </target>


</project>




Target
www.targetgroup.net
 
Target is a trading name of Target Group Limited, 
registered in England and Wales No. 1208137
Registered office:  Target House, Cowbridge Road East, Cardiff CF11 9AU

**********************************************************************
DISCLAIMER.
This message is intended only for the use of the Addressee and may
contain information that is PRIVILEGED and CONFIDENTIAL. 
If you are not the intended recipient you must not copy, 
distribute or take any action or reliance upon it. 
The content of this message may also contain personal 
views of an employee of this company and does
not necessarily represent the view of the company.
**********************************************************************
This message has been scanned by Norton Anti-Virus. 
It has also been scanned by MAILsweeper to enforce our e-mail 
policy. If you have any concerns or comments about the content 
of this message, please  e-mail support@targetgroup.net.
**********************************************************************


_____________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com