ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From efe4it <ext.atos-origin.emmanuel.fou...@sncf.fr>
Subject IvyDE Workspace Resolver
Date Mon, 18 Apr 2011 16:10:56 GMT

Hi 

I have some questions about the way to use revision when publishing module's
artifacts.
I also cannot get IvyDE's Workspace resolver to work.
See
http://ant.apache.org/ivy/ivyde/history/latest-milestone/cpc/workspace.html

I am quite new to IVY and after having followed the tutorials, I try to
setup my own Ivy repositories and settings
I actually work on migrating to ivy an old multimodule project, that
previously relied on a shared "javalibs" folder.

I use:
ANT-1.8.2
IVY 2.2.0.final_20100923230623
Eclipe-3.6 with IvyDE-2.1.0.201008101807-RELEASE

My settings:
In my specific ivysettings file, I use an url resolver (called external) for
third party librairies 
and a file resolver (called project) for my own modules.
see attached ivysettings-dev02.xml
http://old.nabble.com/file/p31425340/ivysettings-dev02.xml
ivysettings-dev02.xml 

I have two projects/modules IvyTest-lib-exception and
IvyTest-lib-win32registry, with win32registry depending on exception.
Since I have 2 modules, I need to publish the dependee to compile the
depender.

IvyTest-lib-exception declares one artifact of type jar 
see attached lib-exception.ivy.xml
http://old.nabble.com/file/p31425340/lib-exception.ivy.xml
lib-exception.ivy.xml 

    <publications>
    	<artifact name="${ivy.module}-main" type="jar"  conf="compile"
ext="jar"/> 
    </publications>
	
I publish the "trunk" revision using 
	<ivy:publish resolver="project"
artifactspattern="build/lib/[artifact].[ext]" 
		pubrevision="trunk"
		conf="*(public)" 
		update="true" 
		overwrite="true"
	/>

When publishing IvyTest-lib-exception, the jar file
"IvyTest-lib-exception-main.jar"
is correctly written to the "project" repository under the path
"org.efe4it\IvyTest-lib-exception\trunk\jars"

IvyTest-lib-win32registry declares a dependancy on "trunk" revision of
IvyTest-lib-exception module
see attached lib-win32registry.ivy.xml
http://old.nabble.com/file/p31425340/win32registry.ivy.xml
win32registry.ivy.xml 

When publishing via ANT, using ivy:buildlist task to order the build,
everything works fine.
Under Eclipse, the IvyTest-lib-win32registry project does resolve fine.

If I delete the files under my local repository ("project"), this project
won't resolve any more.

I have configured the "build path" to and the dependancy on the other
project
.classpath is:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src/main/java"/>
	<classpathentry kind="src" path="src/test/java"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="con"
path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=ivy.xml&amp;confs=*"/>
	<classpathentry combineaccessrules="false" kind="src"
path="/IvyTest-lib-exception"/>
	<classpathentry kind="output" path="bin"/>
</classpath>

Error message box says:
Some projects fail to be resolved
Impossible to resolve dependencies of
org.efe4it#IvyTest-lib-win32registry;working@wgl-9016
download failed:
org.efe4it#IvyTest-lib-exception;working@wgl-9016!IvyTest-lib-exception-main.jar
download failed:
org.efe4it#IvyTest-lib-exception;working@wgl-9016!IvyTest-lib-exception-main.jar
download failed:
org.efe4it#IvyTest-lib-exception;working@wgl-9016!IvyTest-lib-exception-main.jar

Ivy Console:
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
resolving dependencies of ivy.xml in 'IvyTest-lib-win32registry'


IVYDE: calling resolve on ivy.xml

:: resolving dependencies ::
org.efe4it#IvyTest-lib-win32registry;working@wgl-9016
	confs: [compile, runtime, test]
	found org.slf4j#slf4j;1.5.8 in external
	found org.apache.log4j#log4j;1.2.15 in external
	[1.2.15] org.apache.log4j#log4j;[1.2,1.3[
	found org.efe4it#IvyTest-lib-exception;working@wgl-9016 in
IvyTest-lib-win32registry-ivyde-workspace-resolver
	[working@wgl-9016] org.efe4it#IvyTest-lib-exception;trunk (forced)
	found org.apache.commons#commons-collections;3.2.1 in external
	found org.junit#junit;4.5 in external
:: resolution report :: resolve 188ms :: artifacts dl 15ms
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|      compile     |   4   |   2   |   1   |   0   ||   5   |   0   |
	|      runtime     |   4   |   2   |   1   |   0   ||   6   |   0   |
	|       test       |   5   |   2   |   1   |   0   ||   7   |   0   |
	---------------------------------------------------------------------

:: problems summary ::
:::: WARNINGS
		[FAILED     ]
org.efe4it#IvyTest-lib-exception;working@wgl-9016!IvyTest-lib-exception-main.jar: 
(0ms)


I do not understand why IvyDE is looking for the revision
"working@`hostname`"

Any ideas ?

Regards

	Emmanuel

-- 
View this message in context: http://old.nabble.com/IvyDE-Workspace-Resolver-tp31425340p31425340.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message