Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends example for maven-invoker-plugin #96

Merged
merged 1 commit into from
Jun 3, 2022
Merged
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
17 changes: 14 additions & 3 deletions mrm-maven-plugin/src/site/apt/examples/invoker-tests.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,21 @@ Using with Maven Invoker and Repositories
</executions>
<configuration>
<repositories>

<!-- serve content from mock repository -->
<mockRepo>
<source>src/it/mrm/repository</source>
<!-- cloneTo>target/mock-repo</cloneTo -->
<!-- cloneClean>true</cloneClean -->
<!-- lazyArchiver>false</lazyArchiver -->
</mockRepo>

<!-- serve content installed by maven-invoker-plugin -->
<localRepo>
<source>\${project.build.directory}/local-repo</source>
</localRepo>

<!-- pass everything else to current Maven instance -->
<proxyRepo/>
</repositories>
</configuration>
Expand Down Expand Up @@ -110,7 +119,7 @@ Using with Maven Invoker and Repositories

Additionally, when <<<mrm:start>>> is invoked, it will bind to an available port and set the property
<<<repository.proxy.url>>> to the URL on which the repository is being hosted, and the repository content
will be based on the mock content generated from the following files in <<<src/it/mrm/repository>>>:
will be based on the <<<mockRepo>>> content generated from the following files in <<<src/it/mrm/repository>>>:

* <<<**/*.pom>>>

Expand All @@ -123,8 +132,10 @@ Using with Maven Invoker and Repositories
* <<<archetype-catalog.xml>>>

[]

In addition, all the repositories available to the current Maven instance will be available too.

In additional content install by <<<maven-invoker-plugin:install>>> will be available by <<localRepo>>

Finally thanks to <<<proxyRepo>>>, all the repositories available to the current Maven instance will be available too.

We tell <<<maven-invoker-plugin>>> to use the <<<settings.xml>>> file from <<<src/it/mrm/settings.xml>>>
which will look something like:
Expand Down