To add the Stream plugin to an existing Pricefx project, you need to modify your pom.xml.
Add Pricefx Artifact Repository (you may already have that in settings):
Code Block |
---|
language | xml |
---|
theme | Midnight |
---|
title | pom.xml |
---|
linenumbers | false |
---|
|
<project>
<!-- ... -->
<repositories>
<repository>
<id>Default repo</id>
<url>https://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>Pricefx public maven artifacts</id>
<url>https://nexus.pricefx.net/tools</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<!-- ... -->
</project> |
Add the plugin dependency:
Code Block |
---|
language | xml |
---|
theme | Midnight |
---|
title | pom.xml |
---|
linenumbers | false |
---|
|
<project>
<!-- ... -->
<dependencies>
<dependency>
<groupId>net.pricefx.learn</groupId>
<artifactId>pricefx-stream-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<!-- ... -->
</project> |
Code Block |
---|
language | xml |
---|
theme | Midnight |
---|
title | pom.xml |
---|
linenumbers | false |
---|
|
<project>
<!-- ... -->
<build>
<plugins>
<!-- ... -->
<plugin>
<groupId>net.pricefx.learn</groupId>
<artifactId>pricefx-stream-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<!-- Following properties come from
maven profile in ~/.m2/settings.xml -->
<url>${pricefx-stream.url}</url>
<partition>${pricefx-stream.partition}</partition>
<username>${pricefx-stream.username}</username>
<password>${pricefx-stream.password}</password>
</configuration>
</plugin>
<!-- ... -->
</plugins>
</build>
<!-- ... -->
</project> |