A pom, any pom, it doesn't matter. For example:
<?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> <parent> <groupId>au.com.warpspeed</groupId> <artifactId>warpspeed-parent</artifactId> <version>1.0</version> </parent> <groupId>au.com.warpspeed.gpdb</groupId> <artifactId>GPDB</artifactId> <version>1.0.6-SNAPSHOT</version> <packaging>pom</packaging> <name>GPDB - J2EE Multi Module Project</name> <description>GPDB - J2EE Multi Module Project</description> <url>http://gpdb.warpspeed.com.au</url> <organization> <name>WarpSpeed Computers</name> <url>http://www.warpspeed.com.au</url> </organization> <modules> <module>../GPDBResources</module> <module>../GPDBWeb</module> <module>../GPDBEAR</module> </modules> </project> or, even simpler: <?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>ij</groupId> <artifactId>ij</artifactId> <version>1.40</version> <name>ImageJ</name> <description>ImageJ. Image Processing and Analysis in Java.</ description> <url>http://rsbweb.nih.gov/ij/index.html</url> </project> Easy to reproduce: Close all files. Close eclipse. Start eclipse. Right Click on a pom, choose: Open With>Maven POM Editor Pom editor opens correctly, all ok. Close the POM file. Right Click on a pom, choose: Open With>Maven POM Editor and you get: Unable to create this part due to an internal error. Reason for the failure: index=0, size=0 with the stack trace as shown below. -Chris Eugene Kuleshov <[EMAIL PROTECTED]> wrote on 11/07/2008 10:17:17: > Chris, > > Thanks for checking out the pom editor, but what are you trying to > load? Can you please provide more details. > > regards, > Eugene > > > [EMAIL PROTECTED] wrote: > > Sounds like an initialization failure. > > It correctly loads the first time but not subsequent times. It > > reports this error: > > > > org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: > > index=0, size=0 > > at > > org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:512) > > at > > org.maven.ide.components.pom.util.PomResourceImpl. > getModel(PomResourceImpl.java:63) > > > > at > > org.maven.ide.eclipse.editor.pom.MavenPomEditor. > readProjectDocument(MavenPomEditor.java:292) > > > > at > > org.maven.ide.eclipse.editor.pom.MavenPomEditor. > addPages(MavenPomEditor.java:232) > > > > at > > org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:142) > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > The following message has been automatically added by the Internet mail > gateway to comply with the Group's Information Security requirements. > > "This e-mail has arrived via the Internet, and therefore you should be > cautious about its origin and content. Replies which contain sensitive > information and / or legal/contractual obligations are particularly vulnerable. > > In these cases you should not reply unless you are authorised to do so, > and adequate encryption is employed." > > If you have any questions, please contact the IS Service Desk. ********************************************************************** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended recipient of this message you must: - Not use, copy, distribute or disclose it to anyone other than the addressee; - Notify the sender via return email; and - Delete the message (and any related attachments) from your computer immediately. Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent. Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI. ********************************************************************** --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
