Timetracker building error


The following error occurs when building.

-------------------------------------- -------------------------------------- -------------------------------------- --------------------------------------
INFO [AndroMDA] + registering component 'translation-library'
INFO [AndroMDA] - core initialization complete: 1.094[s] -
INFO [AndroMDA] loading model --> 'file:/home/roque/workspace/andromda-src-3.4_1/andromda-documentation/samples/timetracker/mda/src/main/uml/timetracker.xmi'
INFO [AndroMDA] referenced model --> 'jar:file:/home/roque/.m2/repository/org/andromda/profiles/uml2/andromda-profile/3.4-SNAPSHOT/andromda-profile-3.4-SNAPSHOT.xml.zip!/andromda-profile-3.4-SNAPSHOT.xml'
org.netbeans.lib.jmi.util.DebugException: XMI version attribute is missing.
at org.netbeans.lib.jmi.xmi.XmiContext.setVersion(XmiContext.java:210)
at org.netbeans.lib.jmi.xmi.XmiElement$Document.<init>(XmiElement.java:94)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXReader.java:169)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

-------------------------------------- -------------------------------------- -------------------------------------- --------------------------------------
The uml14 model should be referenced but instead of the uml2 was found. I don't know how to explain, but I have already noticed that this version of Ubuntu has a different index for files.

I think that the best ideia would be to replace the following line:

<location patterns="*/.xml.zip">${settings.localRepository}/org/andromda/profiles</location>


<location patterns="*/.xml.zip">${settings.localRepository}/org/andromda/profiles/uml14</location>


Ubuntu 10.04 Lucid Lynx


Walter Mourão
November 24, 2010, 4:39 AM

I don't think it is an Andromda bug. Just tested in a similar environment and the build was fine... Maybe it is related wit your Maven repo. Try the build with an empty repository.

Bob Fields
November 24, 2010, 6:35 AM

We need to update the timetracker project generated configuration with all of the changes that have been made over the last year or so. This particular problem is fixed in andromdapp, the modelSearchLocations actually looks like:

<location patterns="*/${andromda.version}/.xml.zip">${settings.localRepository}/org/andromda/profiles/uml14</location>

this should be a minor, not a major bug, since there is an easy workaround.

This prevents confusion with other andromda versions and other repositories.

There are other things that need to be updated too, like dependency and plugin versions, and the updated references to web.generated.[web | java.]dir.

Roque Pinel
November 24, 2010, 6:42 AM

Sorry about the misunderstood, I should have put as Minor. I know that this issue can particular to some enviroments, but it is good to be documented for future doubts.

Bob Fields
December 29, 2010, 1:38 AM

Updated the andromdapp templates and the timetracker sample project to find and load profile modules correctly.


Former user


Roque Pinel



Fix versions

Affects versions