-
Notifications
You must be signed in to change notification settings - Fork 345
Description
I m developing a microservice and I have used maven to generate my project:
mvn archetype:generate -DarchetypeGroupId=org.wso2.msf4j
-DarchetypeArtifactId=msf4j-microservice -DarchetypeVersion=2.6.4
-DgroupId=it.telcolab -DartifactId=CMIS-Service -Dversion=0.1-SNAPSHOT
-Dpackage=it.telcolab.service -DserviceClass=CmisService
When I execute maven install, the generated .jar have a Manifest with main class and no Microsevices element.
This is my pom:
<modelVersion>4.0.0</modelVersion>
<groupId>it.telcolab</groupId>
<artifactId>CMIS-Service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.wso2.msf4j</groupId>
<artifactId>msf4j-service</artifactId>
<version>2.6.4</version>
</parent>
<dependencies>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<!-- Generic properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<microservice.mainClass>it.telcolab.service.Application</microservice.mainClass>
<microservice.resourceClasses>it.telcolab.service.CmisService</microservice.resourceClasses>
</properties>
Caused by: org.wso2.msf4j.internal.deployer.MicroserviceDeploymentException: Manifest entry 'microservices' not found: /usr/lib/wso2/wso2ei/6.4.0/wso2/msf4j/deployment/microservices/CMIS-Service-0.0.1-SNAPSHOT.jar
The manifest is the following:
Manifest-Version: 1.0
Implementation-Title: CMIS-Service
Implementation-Version: 0.0.1-SNAPSHOT
Archiver-Version: Plexus Archiver
Built-By: ubuntu18
Specification-Vendor: WSO2
Specification-Title: CMIS-Service
Implementation-Vendor-Id: it.telcolab
Implementation-Vendor: WSO2
Main-Class: it.telcolab.service.Application
Created-By: Apache Maven 3.3.9
Build-Jdk: 1.8.0_171
Specification-Version: 0.0.1-SNAPSHOT
Implementation-URL: http://www.wso2.org/CMIS-Service/
Can you help me? Please.
Regards
Antonio