I have spring-cloud-contract-maven-plugin in my pom.xml of producer project. When I use the below plugin, it is not installing the jars to .m2 repository.
I have tried adding multiple versions of spring-cloud-contract and 2.0.2.RELEASE only seems stable to build successfully.
` <plugin>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-maven-plugin</artifactId>
<version>2.0.2.RELEASE</version>
<!--<executions>-->
<!--<execution>-->
<!--<goals>-->
<!--<goal>convert</goal>-->
<!--<goal>generateStubs</goal>-->
<!--<goal>generateTests</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<extensions>true</extensions>
<configuration>
<packageWithBaseClasses>com.sam.fraud.fcm.fraudcase.gateway.test.contracts</packageWithBaseClasses>
</configuration>
</plugin>`
If the above plugin is added in pom, .m2 folder is not at all getting installed dependency jars locall, stubs are generated but in target folder, .m2 not updated
`[INFO] Installing com.sam.fraud.fcm:fraud-case-gateway-api:1.0.0-SNAPSHOT at end`
If I remove the plugin or comment it out, I get the below, which is installing & working fine, but the stubs are not generated in the target, which I need.
`[INFO] Installing C:\Users\sam\FCM-forks\fraud-case-gateway-contract-tests\api\pom.xml to C:\Users\sam\.m2\repositoryFCM2\com\sam\fraud\fcm\fraud-case-gateway-api\1.0.0-SNAPSHOT\fraud-case-gateway-api-1.0.0-SNAPSHOT.pom`
I need the correct plugin of this as, this is used with base class of tests and package. I have also tried with
`<baseClassForTests>
com.sam.fraud.fcm.fraudcase.gateway.test.contracts.RepreclientBase
</baseClassForTests>`
Aucun commentaire:
Enregistrer un commentaire