I now know why it worked last Friday.

I specified jar as the packaging but not "bundle". I.e. I get a ordinary
JAR. It is then converted into a bundle with "mvn bundle:bundle". After a
"mvn clean" I get back the original error "The default package '.' is not
permitted...". This could be a short term workaround for errors like this
but it does not solves the error.

If the class is empty (no methodes defined) nothing will be exported. This
causes the warning: "The JAR is empty: The instructions for the JAR named
mypackage did not cause any content to be exported..."

And I define a *public static final* member-variable in my class which is in
the default package. This causes "The default package '.' is not
permitted...".

so take care what you do...



--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/Invalid-package-name-tp5004065p5004122.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to