A combination of Multiverse 4.1.0 and zPermissions 1.5 causes the following error on startup.
[17:35:57 INFO]: [HeadsPluginAPI] Enabling HeadsPluginAPI v2.0.6
[17:36:00 WARN]: [HeadsPluginAPI] Loaded class javax.persistence.EntityManagerFactory from zPermissions v1.5-SNAPSHOT which is not a depend, softdepend or loadbefore of this plugin.
[17:36:01 INFO]:
_ _ _ _____ _ _ _____ _____
| | | | | | | __ \ | | (_) /\ | __ \|_ _|
| |__| | ___ __ _ __| | ___ | |__) || | _ _ __ _ _ _ __ / \ | |__) | | |
| __ | / _ \ / _` | / _` |/ __| | ___/ | || | | | / _` || || '_ \ / /\ \ | ___/ | |
| | | || __/| (_| || (_| |\__ \ | | | || |_| || (_| || || | | | / ____ \ | | _| |_
|_| |_| \___| \__,_| \__,_||___/ |_| |_| \__,_| \__, ||_||_| |_| /_/ \_\|_| |_____|
_________________________________________________ __/ | ________________________________
|_________________________________________________| |___/ |________________________________|
:: HeadsPluginAPI - version 2.0.6 ::
[17:36:01 INFO]: No active profile set, falling back to default profiles: default
[17:36:02 WARN]: [HeadsPluginAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
[17:36:02 INFO]: Bootstrapping Spring Data JPA repositories in DEFAULT mode.
[17:36:02 INFO]: Finished Spring Data repository scanning in 251ms. Found 5 JPA repository interfaces.
[17:36:03 INFO]: BeanFactory id=ef61a8c4-5e20-3877-8932-c9c0e3e91fbd
[17:36:05 INFO]: HHH000204: Processing PersistenceUnitInfo [name: default]
[17:36:05 INFO]: HHH000412: Hibernate ORM core version [WORKING]
[17:36:05 WARN]: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
[17:36:05 INFO]:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[17:36:05 ERROR]:
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.hibernate.jpa.boot.internal.PersistenceUnitInfoDescriptor.getValidationMode(PersistenceUnitInfoDescriptor.java:88)
The following method did not exist:
javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
The method's class, javax.persistence.spi.PersistenceUnitInfo, is available from the following locations:
jar:file:/D:/Projects/Java/Minecraft/Servers/heads/plugins/HeadsPluginAPI-2.0.6.jar!/javax/persistence/spi/PersistenceUnitInfo.class
It was loaded from the following location:
file:/D:/Projects/Java/Minecraft/Servers/heads/plugins/zPermissions-1.5-SNAPSHOT.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of javax.persistence.spi.PersistenceUnitInfo