OpearPackageMojo extends AbstractCommonMojo { String getOwnVersion() { final Properties properties = new Properties(); return uncheck0(() -> { try (InputStream input = getClass().getResourceAsStream("version.properties")) { properties.load(input); return properties.getProperty("version"); } }).get(); }  @Override void execute(); static final String OPEAR; }
@Test public void testGetOwnVersion() { assertFalse("getOwnVersion", newMojo().getOwnVersion().isEmpty()); }