Hi Simon,

 yes, I think it does make sense, just as transitive dependencies make
sense.

  if you publish a component containing another set of jars and their
various versions, you may want it to be known as a single version e.g. 3.5
  and if update your bundle only advance the components version (say to
3.5.1)
  with no need for every deveoper to change the version of every component
but just the main version (here 3.5->3.5.1).

  And of cause you are right, why should a pom only version not work.

 I agree, if it is a bug it is maven-eclipse-plugin ' bug.

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"MODEL-DRIVEN DESIGN demands that the model stay in lockstep with the
implementation, but it allows freedom to choose any implementation that
faithfully captures the meaning of the model"
from Eric Evans: Domain-Driven Design p. 230



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:[EMAIL PROTECTED]
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


                                                                           
             "[EMAIL PROTECTED]                                             
             hello.at"                                                     
             <[EMAIL PROTECTED]                                          An 
             hello.at>                  Maven Users List                   
                                        <[email protected]>           
             25.02.2008 15:58                                        Kopie 
                                                                           
                                                                     Thema 
              Bitte antworten           Re: Antwort: Re: simple question   
                    an                  concerning transitive dependencies 
               "Maven Users             [Virus checked]                    
                   List"                                                   
             <[EMAIL PROTECTED]                                             
                  he.org>                                                  
                                                                           
                                                                           
                                                                           




Does your setup work when maven is run from the command-line?
If so, then that is a bug in the maven-eclipse-plugin, not in maven itself.

I'm not entirely convinced that the whole idea of having a block of
dependencies that multiple projects depend on is useful. Why would you
want such a thing? A project should normally declare exactly the
dependencies it needs, no more and no less. It would be odd for several
projects to have exactly the same dependencies.

Anyway, the obvious way of managing "shared" dependencies (assuming you
really want to) would be to have a common parent pom, not by separating
out dependencies into a separate pom-project that is used as a dependency.

However I cannot see why a pom-only dependency wouldn't work. If it
works in maven from the command-line, but the maven-eclipse-plugin
cannot handle it, then I suggest you file a bug against the
maven-eclipse-plugin.

Are you perhaps trying to force specific versions of transient
dependencies to be used, eg you are depending on external projects and
want to be sure that *if* library Foo is pulled in transiently then a
specific version is used? That is handled via dependencyManagement, not
dependency declarations...

Regards,
Simon

[EMAIL PROTECTED] schrieb:
> Hi Nicole,
>
> Thanks for the prompt reply.
> Yes the packaging is POM and it works (therefor) now.
> BUT:
>       only
>              mvn eclipse:eclipse
> now just wants to download the jar.
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
>
>

>              "Nicole Lacoste"

>              <[EMAIL PROTECTED]

>              il.com>
An
>                                         "Maven Users List"

>              25.02.2008 14:09           <[email protected]>

>
Kopie
>

>               Bitte antworten
Thema
>                     an                  Re: simple question concerning

>                "Maven Users             transitive dependencies [Virus

>                    List"                checked]

>              <[EMAIL PROTECTED]

>                   he.org>

>

>

>

>

>
>
>
>
> Hi Wolfgang,
>
> Make sure that in the pom that contains the dependencies has right
> <packaging>.  It should be pom, if you don't mention packaging the
default
> is jar.  When you depend on this artifact you need to mention type, I am
> not
> sure what you put here? Maybe pom too?  We have the same sort of thing,
but
> we define this artifact as the parent of all our projects.
>
> Viel Gluck,
>
> Nicole
>
> On 25/02/2008, [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
>
>> Hi All,
>>
>> in some projects, we need the same dependencies.
>> Although there must be a better way, I create a pom by hand containing
>> those dependencies in my local repository
>> and declared one dependency in the project to pull in that list.
>> Unfortunately, it does not work and MAVEN complains, there is no jar
file
>> for this dependency (and there isn't, of cause).
>>
>> Can someone point me to some docs explaining how to set up these
>> transitive
>> dependencies ?
>>
>> And how do I install those into a repository (like archiva) ?
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: [EMAIL PROTECTED]
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Reply via email to