Hi,
I'm building a project using maven-local.
My pom file has dependency to hamcrest-core and hamcrest-library version 1.2.1
My spec file has
BuildRequires: hamcrest12
In my local box (f17) it resolved correctly. But when I try to build it in mock targeting rawhide, it always resolve to hamcrest (which is 1.1 and fail to compile)
I've tried to add a depmap with -Dmaven.local.depmap.file as below, still no luck. Any one know why is that and how can I force it to reference hamcrest12 package? Thanks.
============= local dep map ===================
<dependency>
<maven>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.2.1</version>
</maven>
<jpp>
<groupId>JPP/hamcrest12</groupId>
<artifactId>core</artifactId>
<version>1.2</version>
</jpp>
</dependency>
<dependency>
<maven>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.2.1</version>
</maven>
<jpp>
<groupId>JPP/hamcrest12</groupId>
<artifactId>library</artifactId>
<version>1.2</version>
</jpp>
</dependency>
I'm building a project using maven-local.
My pom file has dependency to hamcrest-core and hamcrest-library version 1.2.1
My spec file has
BuildRequires: hamcrest12
In my local box (f17) it resolved correctly. But when I try to build it in mock targeting rawhide, it always resolve to hamcrest (which is 1.1 and fail to compile)
I've tried to add a depmap with -Dmaven.local.depmap.file as below, still no luck. Any one know why is that and how can I force it to reference hamcrest12 package? Thanks.
============= local dep map ===================
<dependency>
<maven>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.2.1</version>
</maven>
<jpp>
<groupId>JPP/hamcrest12</groupId>
<artifactId>core</artifactId>
<version>1.2</version>
</jpp>
</dependency>
<dependency>
<maven>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.2.1</version>
</maven>
<jpp>
<groupId>JPP/hamcrest12</groupId>
<artifactId>library</artifactId>
<version>1.2</version>
</jpp>
</dependency>
Patrick Huang
Senior Software Engineer
Engineering - Internationalisation
Red Hat, Asia-Pacific Pty Ltd
Level 1, 193 North Quay
Brisbane 4000
Office: +61 7 3514 8278
Fax: +61 7 3514 8199
IRC: pahuang
github: github.com/huangp
Website: www.redhat.com
Senior Software Engineer
Engineering - Internationalisation
Red Hat, Asia-Pacific Pty Ltd
Level 1, 193 North Quay
Brisbane 4000
Office: +61 7 3514 8278
Fax: +61 7 3514 8199
IRC: pahuang
github: github.com/huangp
Website: www.redhat.com
-- java-devel mailing list java-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/java-devel