I didn't understood if you're not getting how to install maven
or how to "install" PlayN.
Maven is a kind of portable app. To install it, you just have to download it, unzip it somewhere, and set the path to it's bin
folder into your $PATH
variable.
About PlayN, it is not something you "install". PlayN can be seen as a set of Java libraries that let you create multiplatform games. You can create a new PlayN project with maven
running the following command on a terminal/command prompt:
mvn archetype:generate -DarchetypeGroupId=com.googlecode.playn -DarchetypeArtifactId=playn-archetype -DarchetypeVersion=1.6
This command creates a blank project using the latest (as of march 2013) version of PlayN. Maven downloads everything you need, so you should'nt worry about downloading by hand anything else besides maven.
Just after creating a new project, it is already possible to compile and test the project using maven
, just by entering a terminal, changing the directory into the one you created your project and running the following commands: For Java you run the command mvn test
(and then a window with the game will open), for HTML5 you run mvn -Phtml integration-test
(and then you can access your game via browser, using localhost:8080
), and for Android you run mvn -Pandroid install
(assuming you have an Android device connected to your computer, or a running emulator instance)
Hope I could be of some help.