Forum Discussion

bzzup's avatar
bzzup
Occasional Contributor
11 years ago

How to include custom plugin into Maven build in Hudson?

Hi,
I developed several assertion plugins and can use them running SOAPUI locally. But how to use them when i use Maven test build in Hudson?
  • bzzup's avatar
    bzzup
    Occasional Contributor
    Thanks. This example is useful but it doesn't work for me. I have my custom plugin (custom assertion) deployed to our local Nexus repo. SOAPUI project pom includes multiple repositories configured, but Hudson still shows ERROR [TestAssertionRegistry] Missing assertion for type [SampleTestAssertionID] for each assertion. Could you point me what's wrong with my configuration? My pom (part):


    <pluginRepositories>
    <pluginRepository>
    <id>smartbear-sweden-plugin-repository</id>
    <url>http://www.soapui.org/repository/maven2/</url>
    </pluginRepository>
    <pluginRepository>
    <id>Atena-Nexus</id>
    <name>Local repo</name>
    <url>http://atena:8081/nexus/content/repositories/releases/</url>
    </pluginRepository>
    </pluginRepositories>

    <build>
    <plugins>
    <plugin>
    <groupId>com.smartbear.soapui</groupId>

    <artifactId>soapui-pro-maven-plugin</artifactId>
    <version>5.1.2</version>
    <dependencies>
    <dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc6</artifactId>
    <version>11.2.0.3</version>
    </dependency>
    <dependency>
    <groupId>soap.ahr.plugins</groupId>
    <artifactId>soap-ahr-json-plugin</artifactId>
    <version>0.5-plugin</version>
    </dependency>
    <dependency>
    <groupId>org.reflections</groupId>
    <artifactId>reflections</artifactId>
    <version>0.9.9-RC1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml</artifactId>
    <version>3.10-FINAL</version>
    <exclusions>
    <exclusion>
    <groupId>org.apache.xmlbeans</groupId>
    <artifactId>xmlbeans</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>
    <executions>

    <execution>
    <phase>test</phase>
    <id>testProject</id>
    <configuration>
    <testFailIgnore>true</testFailIgnore>
    <projectFile>business/testProject.xml</projectFile>
    <outputFolder>${project.build.directory}/surefire-reports</outputFolder>
    <junitReport>true</junitReport>
    <exportAll>false</exportAll>
    <printReport>true</printReport>

    <soapuiProperties>
    <property>
    <name>soapui.logroot</name>
    <value>${project.build.directory}/soapui-logs/</value>
    </property>
    </soapuiProperties>
    </configuration>
    <goals>
    <goal>test</goal>
    </goals>
    </execution>
    </executions>
    </plugin>

    </plugins>
    </build>


    Thanks in advance