Yann Albou wrote:
Hello,
I have exactly the same problem.
I also tried to create a profile directly in the pom :
<profiles>
<profile>
<id>my.profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<eclipse.home>....</eclipse.home>
</properties>
</profile>
</profiles>
But it doesn't work.
Then I tried to put directly the properties in the pom:
<properties>
<eclipse.home>....</eclipse.home>
</properties>
but it still failed
It seems that profiles or properties are not resolved
when checking dependencies
so that dependencies are not validate.
The only way to make it work is to specify a
-Delcipse.home=... in maven command
line.
Could someone help on this problem ?
Thanks
Yann.
Sorry this message was in response to :
From: Nicolas De Loof <nicolas.deloof <at> capgemini.com>
Subject: <scope>system in plugin
Newsgroups: gmane.comp.jakarta.turbine.maven.user
Date: 2006-09-13 10:49:40 GMT (2 weeks, 1 day, 9 hours and 3 minutes ago)
Hello,
I'm trying to write a plugin ("maven-jet-compiler") that uses some
eclipse jars. As they are not available on ibiblio, I first tried to use
a <systemPath> to point ot my {eclipse.home} :
<dependency>
<groupId>org.eclipse.core</groupId>
<artifactId>runtime</artifactId>
<version>3.2.0</version>
<scope>system</scope>
<systemPath>${eclipse.home}/plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar</systemPath>
</dependency>
The plugin compiles well as expected.
Now, in another maven project, I include this plugin. When runing maven,
I get a strange POM validation failure :
POM Location: Artifact [info.jmonit:maven-jet-compiler:pom:1.0.0-SNAPSHOT]
Validation Messages:
[0] For dependency Dependency {groupId=org.eclipse.core,
artifactId=boot, version=3.1.100, type=jar}: system-scoped dependency
must specify an absolute path systemPath.
The POM installed in my local repo as the expected <systemPath>. What's
wrong ? Doesn't maven use my profile properties when reading plugins POM
? mvn -X doesn't give me more infos.
Nico.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]