Now the Openfire code is in the maven repository, I’ve been able to meet all my dependencies using Maven, but I can;t get it to build a plugin. I get build success but it’s empty so far as building a jar goes, and I’m not sure it’s packing the structure correctly.
Does anyone have a working pom.xml that I can use to build the jar correctly?
I changed ${openfire.version} to 4.2.0 and it seems to compile but doesn’t seem to package any classes into the jar. I’ve tried both mvn install and mvn package without luck.
Is there something I’m missing? Do I need to use a special mvn commands or put my code in a special location? I have used exactly the same structure as when I used to use the ant plugin.
The pom.xml of openfire example plugin generate two jar files.
exampleplugin.jar and exampleplugin-1.0.0-SNAPSHOT.jar.
The second one contains only the classes and the META-INF folder, none of the configuration files. While the first one contains the folders: lib, META-INF, web and i18n. It does not have the configuration files either.
Consequently none of the jar can be uploaded to openfire.