Unable to create skeleton of PlayN project in Eclipse

I get to such an extent that I almost abandoned the use of PlayN. I tried the PlayN Getting Started guide here , as well as the updated GamesFromScratch guide here , with no luck. Every time I try to create New-> Other → "Maven Project" using the code.googlecode.playn 1.3.1 file, I get the following error message:

'Create playn-archetype' has encountered a problem

Cannot create project from archetype [com.googlecode.playn: playn-archetype: 1.3.1] A specific artifact is not an archetype

I wonder what I'm doing something wrong? I read that Eclipse ships with Maven version 3.0.2 (I use Eclipse Juno), so I installed Maven 3.0.4, although I don’t know how to upgrade the version of Eclipse (or if that matters).

Thanks so much for your time,

+5
source share
2 answers

Eclipse Juno ships with Maven 3.0.4, so this is not a problem.

Here is the solution I came up with:

  • Download apache-maven-3.0.x from Apache
  • (On Windows) Add the location of the bin folder in apache-maven-3.0.x to the PATH environment variable (click on edit, add a semicolon and the path to the bin folder to the end)
  • Create a new project with Maven (not Eclipse):

    mvn archetype: generate -DarchetypeGroupId = com.googlecode.playn -DarchetypeArtifactId = playn-archetype -DarchetypeVersion = 1.3.1

  • ( Eclipse) - > - > Maven; , (, ) .
  • , " Maven" gameName, gameName-core
!
+9

Maven //Maven/. - , Maven Run - , , , Maven.

0

All Articles