Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
CMS-10.0-alpha-1
-
None
-
None
Description
Reproduction path:
- Generate a project using archetype 2.01.00-alpha-1:
mvn archetype:generate -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=2.01.00-alpha-1 -DarchetypeRepository=http://maven.onehippo.com/maven2
- Run the project, start the essentials at http://localhost:8080/essentials
Expected result: essential wizard starts
Actual result: an empty page. Tomcat log is attachted.
Cause: the dependency javax.ws.rs:jsr311-api:jar:1.1.1 is used in com.wordnik:swagger-core_2.10:jar:1.3.0, which conflicts with javax.ws.rs:javax.ws.rs-api:jar:2.0.1.
Fix:
- Exclude jsr311-api from the swagger-jaxrs_2.10 in essentials/plugin-sdk/pom.xml
<dependency> <groupId>com.wordnik</groupId> <artifactId>swagger-jaxrs_2.10</artifactId> <version>${swagger-jaxrs_2.10.version}</version> <exclusions> <exclusion> <groupId>javax.ws.rs</groupId> <artifactId>jsr311-api</artifactId> </exclusion> </exclusions> </dependency>
- Update to plugin-sdk/implementation/pom.xml
<dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0.1</version> </dependency>