I have a problem with an Ivy publish build. Here's what I have in my module's ivy.xml:
<publications>
<artifact name="my-artifact" type="pom" ext="pom"/>
<artifact name="my-artifact" type="jar" ext="jar"/>
<artifact name="my-artifact" type="javadoc" ext="jar" m:classifier="javadoc"/>
</publications>
And here's my target:
<target name="my.publish.target">
<ivy:publish resolver="my-resolver" artifactspattern="${my.dir}/[artifact](-[classifier]).[ext]" pubrevision="${ivy.revision}" publishivy="false" overwrite="true"/>
</target>
This works fine when I run it on my local machine with Windows and publishes exactly 3 artifacts: a compiled jar, a pom and a javadoc jar. When I run it on the server (a Linux machine, not sure if matters), I get the same 3 artifacts but the javadoc jar contains the same classes as the compiled jar instead of the actual javadoc.
I don't understand this since I'm very new to Ivy. Can someone help me?
Thank you.
EDIT
I thought I had mentioned them but I guess I've forgotten. These are my resolvers:
Remote resolver (not working)
<ibiblio name="remote-resolver" m2compatible="true" usepoms="true" root="url_of_the_repository" />
Local resolver (working)
<filesystem name="local-repository" m2compatible="true" cache="local">
<ivy pattern="${myRoot}/${myPattern}" />
<artifact pattern="${myRoot}/[organisation]/[module]/[revision]/[module]-([classifier]-)[revision].[ext]"/>
</filesystem>