Put source and javadoc generation in a profile
Fix some inheritance