- This topic has 3 replies, 2 voices, and was last updated 14 years, 7 months ago by support-chakri.
-
AuthorPosts
-
mlafleurMemberUML2 Import XMI 2.1 file
I am getting:
“The resource selected for import is invalid. Please select a valid XMI 2.1 file.”I have tried both with a file generated by an external tool and a file generated within MyEclipse.
Example file created in MyEclipse:
<?xml version=”1.0″ encoding=”UTF-8″?>
<uml:Model xmi:version=”2.1″ xmlns:xmi=”http://schema.omg.org/spec/XMI/2.1″ xmlns:uml=”http://www.eclipse.org/uml2/3.0.0/UML” xmi:id=”_qb8akM37EdqwVrslYOdUDA” name=”test1″>
<packagedElement xmi:type=”uml:Class” xmi:id=”_dXVNwFhkEd-WDZk3pa04GA” name=”MarcClass”/>
</uml:Model>Is there a special project type that I need to import into?
*** Date:
Wednesday, May 5, 2010 11:59:54 AM CDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.5
Build id: 8.5-20100319*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 8.5
Build id: 8.5-20100319Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 8.5\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup
C:\Program Files\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-install
C:/Program Files/Genuitec/MyEclipse 8.5
-configuration
configuration
-clean
-vm
C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
support-chakriMemberHi mlafleur,
It is not reproducible at my end. Can you try the steps given below:
1) Create a web project.
2) Create an UML2 diagram and add a Class with name “SamClass”.
3) Right click on the project and select “Export–>UML2–>XMI 2.1 (MyEclipse)” and click “Next” button.
4) Give the destination and select the .uml and click “Finish” button.
5) Now create another web project and try to import the XMI file into the new web project.Please let me know.
Thanks,
Chakri Vedula.
mlafleurMemberOkay, apparently the file needs to have a .xmi extension for it to work. Thanks.
support-chakriMemberHi mlafleur,
Good to hear that you are all set. Thank you.
Thanks,
Chakri Vedula. -
AuthorPosts