I am attempting to set up a local ivy/artifactory repository for the various
third-party tools we use.
This works nicely in many cases, and I'm trying to make my process documented
and reusable &c.
I have a problem, though, getting the latest hibernate distribution. What's
happening is that I'm getting the source jars instead of the compiled classes.
Here's what I do
Simple ant install target:
<target name="test">
<ivy:cleancache/>
<ivy:settings id="basic.settings"
file="${basedir}/../ivysettings.xml"/>
<ivy:install settingsRef="basic.settings"
organisation="org.hibernate"
module="hibernate-core"
revision="3.5.2-Final"
from="jboss" to="mmodal-artifactory"
overwrite="true"
/>
</target>
Where those resolvers are:
<url name="mmodal-artifactory">
<artifact
pattern="http://repo/artifactory/shared/[organization]/[module]/[revision]/[artifact]-[revision].[ext]"/>
<ivy
pattern="http://repo/artifactory/shared/[organization]/[module]/[revision]/ivy-[revision].xml"
/>
</url>
<ibiblio name="jboss"
root="https://repository.jboss.org/nexus/content/repositories/releases"
m2compatible="true"/>
And I see:
downloading
https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final-sources.jar
...
.......................................................................
................................................................................................
................................................................................................
....................................... (2335kB)
.. (0kB)
[SUCCESSFUL ]
org.hibernate#hibernate-core;3.5.2-Final!hibernate-core.jar(source) (6625ms)
downloading
https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.jar
...
.................................................................
...............................................................................
....................
.............................................................................
................................................................................
(2491kB)
.. (0kB)
[SUCCESSFUL ] org.hibernate#hibernate-core;3.5.2-Final!hibernate-core.jar
(8703ms)
:: installing in mmodal-artifactory ::
published hibernate-core to
http://repo/artifactory/shared/org.hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.jar
published hibernate-core to
http://repo/artifactory/shared/org.hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.jar
published ivy to
http://repo/artifactory/shared/org.hibernate/hibernate-core/3.5.2-Final/ivy-3.5.2-Final.xml
So, sadly, the source jar which I don't want at all is overwriting the classes
jar. Can I somehow, somewhere exclude these sources?
Now, I do get a warning message,
[ivy:install] the module descriptor
https://repository.jboss.org/nexus/content/repositories/releases/org/hibernate/hibernate-core/3.5.2-Final/hibernate-core-3.5.2-Final.pom
has information which can't be converted into the system namespace. It will
require the availability of the namespace 'null' to be fully usable.
but don't know how to make use of it.
Maybe you all have a simple answer.
-Nathan