From 54ba67c4491278a8e7fff2dfbbdebf95896f8eea Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 5 Nov 2019 17:53:15 +0100 Subject: [PATCH] Added doc entry about manual sources adding to the pom.xml; fixes gh-1079 --- docs/src/main/asciidoc/maven-project.adoc | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/src/main/asciidoc/maven-project.adoc b/docs/src/main/asciidoc/maven-project.adoc index e19f65b1be..7d6e640887 100644 --- a/docs/src/main/asciidoc/maven-project.adoc +++ b/docs/src/main/asciidoc/maven-project.adoc @@ -44,6 +44,33 @@ You can read more in the spring-cloud-contract-maven-plugin/index.html[Spring Cloud Contract Maven Plugin Documentation]. +Sometimes, regardless of the picked IDE, you can see that the `target/generated-test-source` folder is not visible on the IDE's classpath. To ensure that it's always there, you can add the following entry to your `pom.xml` + +==== +[source,xml,indent=0] +---- + + org.codehaus.mojo + build-helper-maven-plugin + + + add-source + generate-test-sources + + add-test-source + + + + ${project.build.directory}/generated-test-sources/contracts/ + + + + + +---- +==== + + [[maven-rest-assured]] == Maven and Rest Assured 2.0