Hi, On Fri, May 27, 2011 at 8:05 PM, Chamika Weerasinghe <[email protected]>wrote:
> Hi all, > As Thomas said I configured android plugin for maven to build Android > projects. It will generate .apk file which can be deployed in Android > devices. > > Those who are interested in testing Android projects should first install > Android SDK and can put .apk files to the emulator which comes with Android > SDK. > http://developer.android.com/sdk/installing.html (installing SDK) > http://developer.android.com/sdk/index.html (Download SDK) > > > For adding android plugin to maven, following lines should be added to the > maven settings.xml > > <pluginGroups> > <pluginGroup>com.jayway.maven.plugins.android.generation2</pluginGroup> > </pluginGroups> > > after adding this, properly configured(pom.xml) Android project can be > built > using "mvn clean install" command and can be deployed to a running Android > emulator by using "mvn android:deploy" command. > > But when building using maven if the java classes have @Override > annotations > it will give following error > "annotations are not supported in -source 1.3 > (use -source 5 or higher to enable annotations) > @Override" > You might have to configure the maven compiler plugin: http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html Is the pom.xml one you created by hand? then I guess it would be ok to set your own source version. Hope this helps. Btw, don't be afraid to create new topics for new questions ;) - Asiri _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

