You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roy Siu <vo...@yahoo.com.hk> on 2006/07/21 12:50:09 UTC
Want explain on Dependencies Scope
I am newbie to Maven, and now want to write a custom plugin. But I get
confuse on maven's transitive dependency handling. My poms' dependencies
setting is something like:
Project A
...
saxpath
saxpath
1.0-FCS
${compile}
jaxen
jaxen
1.0-FCS
${compile}
...
(1) (2)
[pluginProject] <--- [CommonLib] <--- [Jaxen]
<-- [saxpath]
I have read an article
http://cvs.peopleware.be/training/maven/maven2/dependencies.html
http://cvs.peopleware.be/training/maven/maven2/dependencies.html and test
with all the scope dependency
I get confuse on the dependency scope.
--
View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5431731
Sent from the Maven - Users forum at Nabble.com.
Re: Want explain on Dependencies Scope
Posted by Roy Siu <vo...@yahoo.com.hk>.
I just want to know how can my [plugin] project use [jaxen], [saxpath]
properly with only set dependency on [CommonLib].
Or more general, if there is artifact C, B, A, X-Z
- artifact A has a function dynamic load (Class.forName) some of the class
appeared in project X-Z
- artifact B wrap the project A function into a class
- artifact C want to use project B's wrapper class of project A function
Then what dependency and corresponding scope I need to set in pom.xml of
artifact C and artifact B?
--
View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5436092
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Want explain on Dependencies Scope
Posted by Wayne Fay <wa...@gmail.com>.
Can you be a little more explicit about what exactly is the source of
your confusion? What about Maven's transitive dependency handling is
hard to understand and causing you troubles?
Wayne
On 7/21/06, Roy Siu <vo...@yahoo.com.hk> wrote:
>
> I am newbie to Maven, and now want to write a custom plugin. But I get
> confuse on maven's transitive dependency handling. My poms' dependencies
> setting is something like:
>
>
> Project A
>
> ...
>
> saxpath
> saxpath
> 1.0-FCS
> ${compile}
>
>
> jaxen
> jaxen
> 1.0-FCS
> ${compile}
>
> ...
>
>
> (1) (2)
> [pluginProject] <--- [CommonLib] <--- [Jaxen]
> <-- [saxpath]
>
>
> I have read an article
> http://cvs.peopleware.be/training/maven/maven2/dependencies.html
> http://cvs.peopleware.be/training/maven/maven2/dependencies.html and test
> with all the scope dependency
>
> I get confuse on the dependency scope.
>
>
> --
> View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5431731
> Sent from the Maven - Users forum at Nabble.com.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Want explain on Dependencies Scope
Posted by Roy Siu <vo...@yahoo.com.hk>.
Yes, it's what i want
--
View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5442789
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Want explain on Dependencies Scope
Posted by Wayne Fay <wa...@gmail.com>.
C pom
<dep>jdom
B pom
<dep>C
A pom
<dep>B
Isn't this what you want?
Wayne
On 7/21/06, Roy Siu <vo...@yahoo.com.hk> wrote:
>
> Thanks. I have read it yet. But the samples do not suit my case. What I want
> is how to let project A use project B's wrapper function of project C, in
> which the function use "Class.forName" or more specific that how can my
> [plugin] project use [CommonLib]'s wrapper of [JDom's XPath]'s function
> which use "Class.forName" to dynamic load classes.
> --
> View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5436211
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Want explain on Dependencies Scope
Posted by Roy Siu <vo...@yahoo.com.hk>.
Thanks. I have read it yet. But the samples do not suit my case. What I want
is how to let project A use project B's wrapper function of project C, in
which the function use "Class.forName" or more specific that how can my
[plugin] project use [CommonLib]'s wrapper of [JDom's XPath]'s function
which use "Class.forName" to dynamic load classes.
--
View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5436211
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Want explain on Dependencies Scope
Posted by Frederik Bayart <fr...@yahoo.co.uk>.
Did you read this ? May be it helps.
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
----- Original Message ----
From: Roy Siu <vo...@yahoo.com.hk>
To: users@maven.apache.org
Sent: Friday, 21 July, 2006 3:50:09 AM
Subject: Want explain on Dependencies Scope
I am newbie to Maven, and now want to write a custom plugin. But I get
confuse on maven's transitive dependency handling. My poms' dependencies
setting is something like:
Project A
...
saxpath
saxpath
1.0-FCS
${compile}
jaxen
jaxen
1.0-FCS
${compile}
...
(1) (2)
[pluginProject] <--- [CommonLib] <--- [Jaxen]
<-- [saxpath]
I have read an article
http://cvs.peopleware.be/training/maven/maven2/dependencies.html
http://cvs.peopleware.be/training/maven/maven2/dependencies.html and test
with all the scope dependency
I get confuse on the dependency scope.
--
View this message in context: http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5431731
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org