EU law trumps German law.
In US terms such a requirement is not “constitutional”.
Then what is the selective service?
See my other comment: https://news.ycombinator.com/item?id=47653207
Then what is the selective service?