use Eclipse repo for deployment
diff --git a/pom.xml b/pom.xml
index 6af1ff0..754d72f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -255,23 +255,6 @@
</ciManagement>
<url>${osbp.site.repository.url}</url>
- <distributionManagement>
- <repository>
- <id>osbp-nexus-release</id>
- <name>Nexus Release Repository</name>
- <url>${distribution.repository.release.url}</url>
- </repository>
- <snapshotRepository>
- <id>osbp-nexus-snapshots</id>
- <name>Sonatype Nexus Snapshots</name>
- <url>${distribution.repository.snapshot.url}</url>
- </snapshotRepository>
- <site>
- <id>gh-pages</id>
- <name>OSBP GitHub Pages</name>
- <url>${distribution.site.url}</url>
- </site>
- </distributionManagement>
<scm>
<!-- connection and developerConnection must be added in children in order
to use with git -->
@@ -314,6 +297,56 @@
<profiles>
+ <profile>
+ <id>isEclipseBuild</id>
+ <activation>
+ <property>
+ <name>isEclipseBuild</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <distributionManagement>
+ <repository>
+ <id>repo.eclipse.org</id>
+ <name>Project Repository - Releases</name>
+ <url>https://repo.eclipse.org/content/repositories/osbp-releases/</url>
+ </repository>
+ <snapshotRepository>
+ <id>repo.eclipse.org</id>
+ <name>Project Repository - Snapshots</name>
+ <url>https://repo.eclipse.org/content/repositories/osbp-snapshots/</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ </profile>
+ <profile>
+ <id>isNoEclipseBuild</id>
+ <activation>
+ <property>
+ <name>!isEclipseBuild</name>
+ </property>
+ </activation>
+
+ <distributionManagement>
+ <repository>
+ <id>osbp-nexus-release</id>
+ <name>Nexus Release Repository</name>
+ <url>${distribution.repository.release.url}</url>
+ </repository>
+ <snapshotRepository>
+ <id>osbp-nexus-snapshots</id>
+ <name>Sonatype Nexus Snapshots</name>
+ <url>${distribution.repository.snapshot.url}</url>
+ </snapshotRepository>
+ <site>
+ <id>gh-pages</id>
+ <name>OSBP GitHub Pages</name>
+ <url>${distribution.site.url}</url>
+ </site>
+ </distributionManagement>
+ </profile>
+
<profile>
<id>whenIsAggregatorProject</id>
<activation>