History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-61
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vance Karimi
Reporter: Leandro Hermida
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

AndroMDApp generated EJB3+Seam project incorrectly puts uml14 in dependencies when you have asked for uml2

Created: 19/Jun/07 03:48 PM   Updated: 19/Jun/07 05:07 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
When building a EJB3+Seam project using andromdapp I specified to use uml2 for the modeling but in the project pom.xml and the mda/pom.xml it incorrectly puts uml14:

In pom.xml:
<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.andromda.profiles.uml2</groupId>
                <artifactId>andromda-profile</artifactId>
                <version>3.3-SNAPSHOT</version>
                <type>xml.zip</type>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>org.andromda.profiles.uml14</groupId>
                <artifactId>andromda-profile-seam</artifactId>
                <version>1.1-SNAPSHOT</version>
                <type>xml.zip</type>
                <scope>runtime</scope>
            </dependency>
...

In mda/pom.xml:

<dependencies>
        <dependency>
            <groupId>org.andromda.profiles.uml2</groupId>
            <artifactId>andromda-profile</artifactId>
            <type>xml.zip</type>
        </dependency>
        <dependency>
            <groupId>org.andromda.profiles.uml14</groupId>
            <artifactId>andromda-profile-seam</artifactId>
            <type>xml.zip</type>
        </dependency>
...

This causes the build (mvn install) to fail with:

Downloading: http://team.andromda.org/maven2/org/andromda/profiles/uml14/andromda-profile-seam/1.1-SNAPSHOT/andromda-profile-seam-1.1-SNAPSHOT.xml.zip
[WARNING] Unable to get resource 'org.andromda.profiles.uml14:andromda-profile-seam:xml.zip:1.1-SNAPSHOT' from repository andromda (http://team.andromda.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.andromda.profiles.uml14:andromda-profile-seam:xml.zip:1.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.andromda.profiles.uml14 -DartifactId=andromda-profile-seam \
          -Dversion=1.1-SNAPSHOT -Dpackaging=xml.zip -Dfile=/path/to/file

  Path to dependency:
        1) org.fmi.test:test-mda:pom:1.0
        2) org.andromda.profiles.uml14:andromda-profile-seam:xml.zip:1.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.fmi.test:test-mda:pom:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  andromda (http://team.andromda.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Jun 19 15:48:09 CEST 2007
[INFO] Final Memory: 9M/254M
[INFO] ------------------------------------------------------------------------


 All   Comments   Change History      Sort Order:
Comment by Vance Karimi [19/Jun/07 05:07 PM]
Fix checked into cvs.