Sunday, January 19, 2014
Tuesday, January 7, 2014
Sunday, December 29, 2013
Google App Engine Project using Maven
Since folks from google have created the archetypes for Google App Engine Web projects it is takes seconds to actually create a sample web application and deploy it!
In the post I am going to show you how to do just that, read on..
In the post I am going to show you how to do just that, read on..
#Create a maven project using app engine archetype mvn archetype:generate -Dfilter=com.google.appengine: #Select an archetype of choice #At the time of writing this blog post, following are the options available Choose archetype: 1: remote -> com.google.appengine.archetypes:appengine-skeleton-archetype (-) 2: remote -> com.google.appengine.archetypes:guestbook-archetype (-) 3: remote -> com.google.appengine.archetypes:skeleton-archetype (-) 4: remote -> com.google.appengine.demos:guestbook-archetype (-) Note: Run the following maven commands inside the project directory where the .pom exists #Verify the demo application mvn verify #Start the app engine devserver on your machine mvn appengine:devserver #Test the demo application locally http://localhost:8080 #Update the 'appengine-web.xml' with the following details{appengine.app.id} ${appengine.app.version} ####### Deploy the application on app engine mvn appengine:update #The END! Now you will be able to use the app url and access the application default being http://{appengine.app.id}.appspot.com https://{appengine.app.id}.appspot.com
Thursday, November 28, 2013
HBase Query Results to File
1. Create a file hbase_query with all your HBase Queries
2. Run the following command
cat hbase_query | hbase shell > hbase_output
2. Run the following command
cat hbase_query | hbase shell > hbase_output
Wednesday, November 27, 2013
Sunday, November 24, 2013
How to type control characters into a file using Vi
Its simple.. For example if you need to write ^@ in a file in unix
1. Open the file in insert mode using vi
2. Use the keys in the order they have been listed
(ctrl+v) + (ctrl+@)
All it means is keep the ctrl key pressed and use v & @ in close succession
1. Open the file in insert mode using vi
2. Use the keys in the order they have been listed
(ctrl+v) + (ctrl+@)
All it means is keep the ctrl key pressed and use v & @ in close succession
Thursday, November 21, 2013
Most frequently used Maven Plugins
maven-assembly-plugin
A plugin to package a runnable jar with all its dependencies.
'SkipAssembly' property when set to false packages the dependencies inside the jar!
maven-javadoc-plugin
A plugin to create java-docs using the java-doc comments in your codebase
A plugin to package a runnable jar with all its dependencies.
'SkipAssembly' property when set to false packages the dependencies inside the jar!
'manifest' tag can be used to set the jar manifest entriesfalse
com.bytemeagain.json.JsonPrettyPrinter com.bytemeagain.json
maven-assembly-plugin jar-with-dependencies package single jar-with-dependencies false com.bytemeagain.json.JsonPrettyPrinter com.bytemeagain.json development https://github.com/homebrewcode/java
maven-javadoc-plugin
A plugin to create java-docs using the java-doc comments in your codebase
org.apache.maven.plugins maven-javadoc-plugin attach-javadocs jar
Subscribe to:
Posts (Atom)