aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'it/it-plugins')
-rw-r--r--it/it-plugins/pom.xml6
-rw-r--r--it/it-plugins/sonar-fake-plugin/pom.xml41
-rw-r--r--it/it-plugins/sonar-fake-plugin/src/main/java/FakePlugin.java12
3 files changed, 59 insertions, 0 deletions
diff --git a/it/it-plugins/pom.xml b/it/it-plugins/pom.xml
index d901ff66a44..8fb85d96e95 100644
--- a/it/it-plugins/pom.xml
+++ b/it/it-plugins/pom.xml
@@ -25,5 +25,11 @@
</plugins>
</build>
+ <properties>
+ <apiVersion>${project.parent.version}</apiVersion>
+ </properties>
+ <modules>
+ <module>sonar-fake-plugin</module>
+ </modules>
</project>
diff --git a/it/it-plugins/sonar-fake-plugin/pom.xml b/it/it-plugins/sonar-fake-plugin/pom.xml
new file mode 100644
index 00000000000..c2ce047c495
--- /dev/null
+++ b/it/it-plugins/sonar-fake-plugin/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.sonarsource.it</groupId>
+ <artifactId>it-plugins</artifactId>
+ <version>5.2-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>sonar-fake-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>sonar-plugin</packaging>
+ <name>Plugins :: Fake</name>
+ <description>SonarQube Integration Tests :: Fake Plugin</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-plugin-api</artifactId>
+ <version>${apiVersion}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.sonar</groupId>
+ <artifactId>sonar-packaging-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ <version>1.12.1</version>
+ <configuration>
+ <pluginClass>FakePlugin</pluginClass>
+ <pluginKey>fake</pluginKey>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/it/it-plugins/sonar-fake-plugin/src/main/java/FakePlugin.java b/it/it-plugins/sonar-fake-plugin/src/main/java/FakePlugin.java
new file mode 100644
index 00000000000..ef57a7acfe1
--- /dev/null
+++ b/it/it-plugins/sonar-fake-plugin/src/main/java/FakePlugin.java
@@ -0,0 +1,12 @@
+import org.sonar.api.SonarPlugin;
+
+import java.util.Collections;
+import java.util.List;
+
+public final class FakePlugin extends SonarPlugin {
+
+ public List getExtensions() {
+ return Collections.emptyList();
+ }
+
+}