I have seen the issue https://issues.jboss.org/browse/JBIDE-13139 and tried the solution given by Rob.
So I have added the system module and I have no more problems in the imports. Is this how to do or there is another solution. And what to do if we are working in eclipse. Are we obliged to use maven and have the JBoss Repository locally ?
Moved to the JBoss Tools forum which I think is a better place for this.