For the Apache MyFaces Trinidad project I wanted to include the Maven version number, into the MANIFEST.MF
The solution itself is pretty straightforward. You can use an existing plugin, to get the version number. The inclusion to the MANIFEST.MF is done with one of the packaging plugins (e.g. maven-jar-plugin).
Add the following to your pom.xml file, to integrate the build-helper-maven-plugin:
Now you can include the version information in to the generated MANIFEST.MF file. For that, just add the $maven.version variable to the manifestEntries section of your maven-jar-plugin:
That’s all you need!
The Apache Software Foundation has a lot of offerings for cloud based infrastructure. There are a lot of projects in that directions. A few examples are: Hadoop, Cassandra, HBase or some that are currently undergoing incubation: Whirr / Libcloud.
Two days ago, Amazon launched it’s AWS Elastic Beanstalk offer. A “Platform as a Service” (Paas) based on Apache Tomcat, Version 6.
Time to play!
Yesterday I tried to deploy my ‘kickstart’ project to the Amazon offer, and it worked. Within a few minutes my account was setup and I could upload the WAR file.
The project itself is quite simple, but it contains an interesting set of modern JavaEE 6 technologies:
-CDI (Apache OpenWebBeans)
-JPA (Apache OpenJPA)
-JSF2 (Apache MyFaces)
and a set of CDI extensions (Apache MyFaces CODI)!
The entire project had no problems when deploying it to the cloud. Why should it have a problem at all? The stack is running fine on a vanilla Tomcat 6. But getting it working, in the cloud, was still pretty exciting
The project itself can be found on github. Give it (and perhaps Beanstalk) a try!
In March 2010 I bought an Android device: The Google Nexus One phone. A great phone so far. What I really appreciate is its trackball and the Android feature to have multiple languages on the keyboard: Just slide on “space” to switch to another language (I am using German and English).
Yesterday (January 10th, 2011) it died. SHOCKING!!
I did a (simple) shutdown, but during that process it did vibrate around five to seven times. Quite unusual, but I was not shocked at that time….
A minute later, I tried to start it. Nothing happened. No matter how long I was pressing the POWER button. I asked on Twitter for help. I got some feedback to try all kind of (weird) combinations of POWER, TRACKBALL and SOUND buttons. Nothing helped.
Another mystery: I connected my phone with its charger and there was no green/orange light… (the light is visible when the phone is charging).
Fortunately @jwildeboer suggested to charge it without the battery. This (sorta) did the trick… After I connected it without the battery the light was blinking: green and orange! Interesting….
Now I put the battery back in. That was the final step! YEAH – I was able to boot it. Battery is was still at 93%…
I am really happy to be able to use my Nexus One, again