You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/09/13 12:49:40 UTC

system in plugin

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.






This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: system in plugin

Posted by Yann Albou <ya...@club-internet.fr>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: system in plugin

Posted by Yann Albou <ya...@club-internet.fr>.
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.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org