You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Florian Posch <f....@rball.com> on 2010/10/29 11:50:41 UTC

MINA Integration JMX 2.0.0 Maven dependency issue

Hello,

To be honest, I'm not absolutely sure if is a MINA-project-related-issue or if it is rather related to my local Maven configuration(Eclipse Maven Integration) or even to our internal repo... (Artifactory 2.2.5)

I recently tried to upgrade my maven project from mina-core-2.0.0-RC1 and mina-integration-jmx-2.0.0-RC1 to 2.0.0 (also tried 2.0.1)... should be an quite easy job by just increasing version numbers in the dependencies section of my pom.xml:

	<dependency>
		<groupId>org.apache.mina</groupId>
		<artifactId>mina-core</artifactId>
		<version>2.0.0</version>
	</dependency>
	<dependency>
		<groupId>org.apache.mina</groupId>
		<artifactId>mina-integration-jmx</artifactId>
		<version>2.0.0</version>
	</dependency>

That worked well for mina-core - sources/jar are successfully fetched by our internal repo and downloaded to my local repository. mina-integration-jmx is also fetched correctly, but its dependencies (mina-core, mina-integration-beans, mina-integration-ognl) seem to be missing - here's the log from my eclipse plugin

	29.10.10 11:13:31 MESZ: [DEBUG] Unable to find resource 'org.apache.mina:mina-integration-ognl:bundle:2.0.0' in repository internal-repository (http://192.168.222.89:8081/artifactory/runningball-common) Failure to resolve org/apache/mina/mina-integration-ognl/2.0.0/mina-integration-ognl-2.0.0.bundle from http://192.168.222.89:8081/artifactory/runningball-common was cached in the local repository. Resolution will not be reattempted until the update interval of internal-repository has elapsed or updates are forced.
	29.10.10 11:13:31 MESZ: Missing artifact org.apache.mina:mina-core:bundle:2.0.0:compile
	29.10.10 11:13:31 MESZ: Missing artifact org.apache.mina:mina-integration-beans:bundle:2.0.0:compile
	29.10.10 11:13:31 MESZ: Missing artifact org.apache.mina:mina-integration-ognl:bundle:2.0.0:compile

Only the direct dependencies of my project are resolved, but further dependencies are missing - even 'mina-core', though it is in my local repository and also referenced directly. To get rid of our local repository caching repo2 in a virtual repository, I changed my local maven settings.xml to access repo2 (repo2.maven.org/maven2) directly - with no effect:

	29.10.10 11:13:31 MESZ: [DEBUG] Unable to find resource 'org.apache.mina:mina-integration-ognl:bundle:2.0.0' in repository internal-repository (http://192.168.222.89:8081/artifactory/runningball-common) Failure to resolve org/apache/mina/mina-integration-ognl/2.0.0/mina-integration-ognl-2.0.0.bundle from http://192.168.222.89:8081/artifactory/runningball-common was cached in the local repository. Resolution will not be reattempted until the update interval of internal-repository has elapsed or updates are forced.
	29.10.10 11:13:31 MESZ: Missing artifact org.apache.mina:mina-core:bundle:2.0.0:compile
	29.10.10 11:13:31 MESZ: Missing artifact org.apache.mina:mina-integration-beans:bundle:2.0.0:compile
	29.10.10 11:13:31 MESZ: Missing artifact org.apache.mina:mina-integration-ognl:bundle:2.0.0:compile

On the first look, the maven project structure of the parent POM has changed a bit since 2.0.0-RC1 - for example using ${project.version} property in dependencies of mina-integration-jmx.

I found this entry in the Artifactory log file:

	repo1: Error in getting information for '${project/groupId}/mina-core/${project.version}/mina-core-${project.version}.pom' (Failed retrieving resource from http://repo1.maven.org/maven2/${project/groupId}/mina-core/${project.version}/mina-core-${project.version}.pom: Invalid uri 'http://repo1.maven.org/maven2/${project/groupId}/mina-core/${project.version}/mina-core-${project.version}.pom': escaped absolute path not valid).

Is this an Artifactory issue - why didn't it work with direct access to repo1/2 as well?

Kind regards,
Florian

RE: MINA Integration JMX 2.0.0 Maven dependency issue

Posted by Florian Posch <f....@rball.com>.
Okay, but the other mina jars are also missing for version 2.0.0 as long they are indirectly referenced - when stepping back to 2.0.0-RC1, jars are successfully downloaded while 2.0.0 folders only contain *.bundle.lastUpdated, *.pom and *.pom.sha1 files...

-----Original Message-----
From: Emmanuel Lecharny [mailto:elecharny@gmail.com] 
Sent: Friday, October 29, 2010 12:41 PM
To: users@mina.apache.org
Subject: Re: MINA Integration JMX 2.0.0 Maven dependency issue

On 10/29/10 12:37 PM, Florian Posch wrote:
> Well, then it's the same issue with its dependencies...
>
> 	29.10.10 12:14:29 MESZ: Missing artifact org.apache.mina:mina-core:bundle:2.0.0:compile
> 	29.10.10 12:14:29 MESZ: Missing artifact org.apache.mina:mina-integration-beans:bundle:2.0.0:compile
>
> When configuring Artifactory to 'eagerly fetch jars', everything is fine as long as my local machine is not concerned.
>
> For example, .\.m2\repository\org\apache\mina\mina-core\2.0.0 is only containing
>
> 	mina-core-2.0.0.bundle.lastUpdated
> 	mina-core-2.0.0.pom
> 	mina-core-2.0.0.pom.sha1

which is plain normal. The other mina jar swill be found on :

.m2\repository\org\apache\mina\mina-integration-beans
.m2\repository\org\apache\mina\mina-integration-jmx
.m2\repository\org\apache\mina\mina-integration-ognl
...




-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: MINA Integration JMX 2.0.0 Maven dependency issue

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 10/29/10 12:37 PM, Florian Posch wrote:
> Well, then it's the same issue with its dependencies...
>
> 	29.10.10 12:14:29 MESZ: Missing artifact org.apache.mina:mina-core:bundle:2.0.0:compile
> 	29.10.10 12:14:29 MESZ: Missing artifact org.apache.mina:mina-integration-beans:bundle:2.0.0:compile
>
> When configuring Artifactory to 'eagerly fetch jars', everything is fine as long as my local machine is not concerned.
>
> For example, .\.m2\repository\org\apache\mina\mina-core\2.0.0 is only containing
>
> 	mina-core-2.0.0.bundle.lastUpdated
> 	mina-core-2.0.0.pom
> 	mina-core-2.0.0.pom.sha1

which is plain normal. The other mina jar swill be found on :

.m2\repository\org\apache\mina\mina-integration-beans
.m2\repository\org\apache\mina\mina-integration-jmx
.m2\repository\org\apache\mina\mina-integration-ognl
...




-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


RE: MINA Integration JMX 2.0.0 Maven dependency issue

Posted by Florian Posch <f....@rball.com>.
Well, then it's the same issue with its dependencies...

	29.10.10 12:14:29 MESZ: Missing artifact org.apache.mina:mina-core:bundle:2.0.0:compile
	29.10.10 12:14:29 MESZ: Missing artifact org.apache.mina:mina-integration-beans:bundle:2.0.0:compile

When configuring Artifactory to 'eagerly fetch jars', everything is fine as long as my local machine is not concerned.

For example, .\.m2\repository\org\apache\mina\mina-core\2.0.0 is only containing 

	mina-core-2.0.0.bundle.lastUpdated
	mina-core-2.0.0.pom
	mina-core-2.0.0.pom.sha1

If referenced directly, everything is fine and (for example) mina-core-2.0.0.jar is downloaded locally - but as indirect dependency of ognl/jmx its still 'missing'... 

So, I guess it is not an Artifactory issue, rather problems with the Eclipse plugin...

-----Original Message-----
From: Emmanuel Lecharny [mailto:elecharny@gmail.com] 
Sent: Friday, October 29, 2010 12:13 PM
To: users@mina.apache.org
Subject: Re: MINA Integration JMX 2.0.0 Maven dependency issue

On 10/29/10 11:50 AM, Florian Posch wrote:
> Hello,
>
> To be honest, I'm not absolutely sure if is a MINA-project-related-issue or if it is rather related to my local Maven configuration(Eclipse Maven Integration) or even to our internal repo... (Artifactory 2.2.5)
>
> I recently tried to upgrade my maven project from mina-core-2.0.0-RC1 and mina-integration-jmx-2.0.0-RC1 to 2.0.0 (also tried 2.0.1)... should be an quite easy job by just increasing version numbers in the dependencies section of my pom.xml:
>
> 	<dependency>
> 		<groupId>org.apache.mina</groupId>
> 		<artifactId>mina-core</artifactId>
> 		<version>2.0.0</version>
> 	</dependency>
> 	<dependency>
> 		<groupId>org.apache.mina</groupId>
> 		<artifactId>mina-integration-jmx</artifactId>
> 		<version>2.0.0</version>
> 	</dependency>
>

What if you add the mina-integration-ognl dependency in your pom ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: MINA Integration JMX 2.0.0 Maven dependency issue

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 10/29/10 11:50 AM, Florian Posch wrote:
> Hello,
>
> To be honest, I'm not absolutely sure if is a MINA-project-related-issue or if it is rather related to my local Maven configuration(Eclipse Maven Integration) or even to our internal repo... (Artifactory 2.2.5)
>
> I recently tried to upgrade my maven project from mina-core-2.0.0-RC1 and mina-integration-jmx-2.0.0-RC1 to 2.0.0 (also tried 2.0.1)... should be an quite easy job by just increasing version numbers in the dependencies section of my pom.xml:
>
> 	<dependency>
> 		<groupId>org.apache.mina</groupId>
> 		<artifactId>mina-core</artifactId>
> 		<version>2.0.0</version>
> 	</dependency>
> 	<dependency>
> 		<groupId>org.apache.mina</groupId>
> 		<artifactId>mina-integration-jmx</artifactId>
> 		<version>2.0.0</version>
> 	</dependency>
>

What if you add the mina-integration-ognl dependency in your pom ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com