MicroEJ Services Issue: avoid ivy:resolve

Hello,

in the event of Microej servide issue I get my compilation stuck at

[ivy:resolve] Configure microej module manager semantic cache for microEJForgeDeveloper resolver.
[ivy:resolve] Configure microej module manager semantic cache for microEJCentral resolver.
[ivy:resolve] Configure microej module manager semantic cache for LocalFetchResolver resolver.
[ivy:resolve] Configure microej module manager semantic cache for LocalPublishResolver resolver.

I saw that disconnecting the machine from the network makes the compilation progress

Is there any way to waive the ivy:resolve or reduce drastically the timeout?

with a hot cache the compilation works OK even with no network :slight_smile:

Thanks

Regards

guido

Hi @guido.roncarolo ,

Your issue is due to the Ivy resolvers that try to fetch artifacts from forge.microej.com, that is still impacted by our Services issue.
You should be able to fix it by removing the concerned resolvers in your Ivy settings file. Here is an example of a settings file that does not fetch from forge.microej.com :

<ivy-settings>

	<property name="microej.repository.name" value="repository.microej.com" override="false"/>
	<property name="microej.repository.version" value="5" override="false"/>
	<!-- URL of the MicroEJ Ivy repository -->
	<property name="microej.repo.url" value="https://${microej.repository.name}/modules" override="false"/>
	<!-- URL of the local repository -->
	<property name="local.repo.url" value="${user.home}/.ivy2/repository" override="false"/>

	<property name="microej.ivy.pattern" value="[organization]/[module]/[branch]/[revision]/ivy-[revision].xml" override="false"/>
	<property name="microej.artifact.pattern" value="[organization]/[module]/[branch]/[revision]/[artifact]-[revision](-[classifier]).[ext]" override="false"/>
	<property name="microej.default.resolver" value="MicroEJChainResolver" override="false"/>
	<property name="microej.default.publication.resolver" value="microEJLocal" override="false"/>

	<settings defaultResolver="${microej.default.resolver}" defaultConflictManager="latest-compatible" defaultResolveMode="dynamic" defaultBranch=""/>

	<!-- Map generic EasyAnt resolver (*.resolver) to allow local artifacts publication -->
	<property name="release.resolver" value="${microej.default.publication.resolver}" override="false"/>
	<property name="shared.resolver" value="${microej.default.publication.resolver}" override="false"/>
	<property name="local.resolver" value="${microej.default.publication.resolver}" override="false"/> 

	<!-- Define a dedicated cache directory for this repository -->
	<caches defaultCacheDir="${user.home}/.microej/caches/${microej.repository.name}-${microej.repository.version}" />

	<resolvers>

		<!-- MicroEJ Central repository -->
		<url name="microEJCentral" m2compatible="true">
			<artifact pattern="${microej.repo.url}/${microej.artifact.pattern}" />
			<ivy pattern="${microej.repo.url}/${microej.ivy.pattern}" />
		</url>

		<!-- Local repository -->
		<filesystem name="microEJLocal" m2compatible="true">
			<artifact pattern="${local.repo.url}/${microej.artifact.pattern}" />
			<ivy pattern="${local.repo.url}/${microej.ivy.pattern}" />
		</filesystem>

		<!-- MicroEJ Chain Resolver -->
		<chain name="${microej.default.resolver}">
			<resolver ref="microEJCentral"/>
			<resolver ref="microEJLocal"/>
		</chain>

	</resolvers>

</ivy-settings>

Regards
Denis for MicroEJ

Thanks!

Regards
guido