You can edit and test new components with Eclipse. However, it is recommended that you create the component outside of Eclipse and then to import it into the Eclipse Workspace.
Your new stage should now be imported into Eclipse and available for Unit Testing.
In newer versions of Eclipse, after clicking Finish, the import may fail with a Null Pointer Exception due to compatibility issues in the Maven plugin.
<artifactId>maven-compiler-plugin</artifactId> <version>2.3.3</version> <artifactId>maven-source-plugin</artifactId> <version>2.1.2</version>
Eclipse may reporti a problem in the pom.xml file at the start of the maven-bundle-plugin block that looks like this:
Error(s) found in manifest configuration (org.apache.felix:maven-bundle-plugin:2.3.7:bundle:default-bundle:package)
If so, build the stage from the command-line once: mvn clean install.