Hi,

why should only parent projects from type pom? In my opinion say pom only, that 
no other artifact was created. Only the dependences should be used. On the 
command line it's works. If the dependencies are not provided, it also works in 
m2Eclipse. Only if the dependencies are provieded in the aggregated pom, 
m2eclipse dont show the artifacts in the "Maven Dependencies". 
The actual way ist, the dependencies are not provided and in the ear packaging 
this was excluded.

It would be beautiful if Maven2 and the Plugin were retained equally.

With regards,
Andreas

-----Ursprüngliche Nachricht-----
Von: Schulz, Daniel [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 27. März 2007 07:42
An: [email protected]
Betreff: RE: [m2eclipse-user] problem with dependency poms

hi andreas,

imho only parent projects are of artifact type pom (multiproject roots or site 
root projects). the resulting artifact of such a project is pom, so using it as 
a dependency wont enrich the classpath much. 

There are at least two solutions:

a) use com.os.ecm.server:server-client-dependencies:0.0.1-SNAPSHOT as the 
parent project to inherit its dependencies

b) change the artifact type of com.os.ecm.server:server-client-dependencies to 
jar (default packaging) and 
   use it as a jar dependency

You can also use a mix of a) and b).

Look at the org.springframework:spring pom 
(http://repo1.maven.org/maven2/org/springframework/spring/2.0.3/spring-2.0.3.pom).
 It's a mix of a) and b) and inherits all dependendencies for all spring 
submodules from its parent org.springframework:spring-full and adds third party 
and api dependencies. It is of packaging type jar. By using 
org.springframework:spring as a dependency you will get all required spring and 
external jars.

have a nice day,

daniel



> -----Original Message-----
> From: Andreas Dunkel [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 26, 2007 1:57 PM
> To: [email protected]
> Subject: [m2eclipse-user] problem with dependency poms
> 
> 
> hi,
>  
> I use a pom which contains several "provided" jars. This pom is from 
> packaging type "pom". She was used in an other pom in this way:
> 
>               <dependency>
>                       <groupId>com.os.ecm.server</groupId>
>                       
> <artifactId>server-client-dependencies</artifactId>
>                       <version>0.0.1-SNAPSHOT</version>
>                       <type>pom</type>
>               </dependency>
> 
> That works in maven2. But the m2eclipse plugin dont show the jars in 
> the "Maven Dependency". If the jars are not provided, it works.
> 
> Please help.
>  
> with regards
> 
> i.A. Andreas Dunkel
> 
> Senior Software Developer
> 
>  
> 
> flexible software  | for your way of working
> 
> 
> OPTIMAL SYSTEMS
> Gesellschaft für innovative Computertechnologien mbH Cicerostraße 26, 
> 10709 Berlin
> Tel.: 030 - 8 95 70 80
> Fax: 030 - 8 95 70 88 88
> E-Mail: [EMAIL PROTECTED]
> Web: www.optimal-systems.de <http://www.optimal-systems.de/>
> 
> 
> 
> Hier können Sie den aktuellen Newsletter des Monats nachlesen:
> 
> http://www.optimal-systems.de/news
> 
> ______________________________________________________________
> ____________________
> 
> Sitz der Gesellschaft: Berlin
> 
> HRB 38 560 Amtsgericht Charlottenburg - USt-IdNr.: DE 136 722 551
> 
> Geschäftsführer: Karsten Renz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to