Unable to play.
Here's how I did it (Eclipse 4.3 Kepler, Oracle JDK 7u25):
I created a new Java Hello World project (right-click in Package Explorer -> New Java project ):

I named it Hello World and clicked Finish . I created a new package in the src folder named hello and a new HelloWorld class in it:

I implemented the HelloWorld class and ran it ( F11 ):


I converted the project to a Maven project (right click on the project -> Configure Convert to Maven Project ) by clicking Finish

I fixed the errors that Maven threw at me.
He said: "Project build error:" artifactId "with a value of" Hello World "does not match a valid identifier pattern." So I realized that Hello World might be invalid due to a space. I was right. Removing space from Artifact Id and Group Id fixed the assembly.
Before:

After (do not forget to save the file using Ctrl + s ):

Now everything is working as intended. The HelloWorld class at startup still displays the same as before. The project now had a slightly different folder structure (new bin and target folders, a new pom.xml file):

I added a Selena addiction. Open pom.xml , go to the Dependencies tab, click Add ... , find Selenium-java , specify version 2.33.0 .

After I clicked OK and saved the POM file, I had to wait for Maven to load all the pros and dependencies of Selenium, it took some time (pay attention to the Progress toolbar in Eclipse, which does something).
The only thing that has changed is that the project structure had a new Maven Dependencies element containing Selenium and all its dependencies.

I was ready to give up with Selen:

When launched, Firefox opens, goes to Google and ends.
source share