Hi All.

    Under Eclipse 3.2 (RSA V7) and the m2eclipse plugin
(0.9.3.20080421-2352), I have a library pom that aggregrates all of the jars
from the webspere v6.1 runtime.

    This is the pom itself:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.ibm.websphere.appserver</groupId>
    <artifactId>runtime</artifactId>
    <version>6.1</version>
    <packaging>pom</packaging>
    <description>Library POM for the WebSphere v6.1 runtime.</description>
    <dependencies>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.mq</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.mqjms</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>bootstrap</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>j2ee</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>mail-impl</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>marshall</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.ejbportable_6.1.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.emf_2.1.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.portletcontainer_2.0.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.runtime.dist_6.1.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.runtime_6.1.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.sib.server_2.0.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.sip.container_6.1.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.wccm_6.1.0</artifactId>
          <version>6.1</version>
        </dependency>
        <dependency>
          <groupId>com.ibm.websphere.appserver</groupId>
          <artifactId>com.ibm.ws.webcontainer_2.0.0</artifactId>
          <version>6.1</version>
        </dependency>
    </dependencies>
</project>


    When I get the m2 eclipse to add in this dependency, it considers it to
be a jar (that is what is shown in the add dependency dialog) and it adds
this:

        <dependency>
            <groupId>com.ibm.websphere.appserver</groupId>
            <artifactId>runtime</artifactId>
            <version>6.1</version>
        </dependency>

    It really needs to have <type>pom</pom> added to it, as that is the type
of this pom. And in this instance it also needs a scope of provided. It
would be useful for the add dependency dialog to have a dropdown of the
available scopes to be added to the generated output as well.

    Also, I just observed that with the add dependency, it correctly
recognises that it and it's dependencies have been added (shows in red, but
I would have used blue as red tends to indicate an error (which depending on
your perspective it may be)), but if I double click on the item it still
adds it again, so we end up with duplicate entries.

-Chris

-- 
View this message in context: 
http://www.nabble.com/Aggregate-Library-POMs-not-being-resolved-as-type-POM-tp17639514p17639514.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to