Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions sdks/java/maven-archetypes/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.4</version>
<executions>
<!-- archetype-packaging above binds this plugin's goals as follows:
archetype:jar to the package phase,
archetype:integration-test to the integration-test phase,
archetype:update-local-catalog to the install phase.
We defer the integration-test goal to the install phase, since
this test actually depends on the core SDK to be installed. -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a comment that this is the case until the sdk has an actual artifact that is released which the archetype can then depend on.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, not quite. Ideally, the build should be always be using an artifact produced by this build. Say, we could have introduced backward-incompatible changes that would break this again even if a matching artifact is released previously.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, without the user installing the artifacts, I don't know how to get the archetypes to use an output of the build otherwise this would be a non-issue.

<execution>
<id>default-integration-test</id>
<phase>install</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
Expand Down
15 changes: 15 additions & 0 deletions sdks/java/maven-archetypes/starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.4</version>
<executions>
<!-- archetype-packaging above binds this plugin's goals as follows:
archetype:jar to the package phase,
archetype:integration-test to the integration-test phase,
archetype:update-local-catalog to the install phase.
We defer the integration-test goal to the install phase, since
this test actually depends on the core SDK to be installed. -->
<execution>
<id>default-integration-test</id>
<phase>install</phase>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
Expand Down