Show Table of Contents
5.2. Validating Agent Plug-ins
If the agent plug-in was generated using the JBoss ON plug-in generator and built with Maven, the plug-in itself can be validated using Maven. The JBoss ON/RHQ plug-in source files have a special validation class which can help ensure that the agent plug-in is valid before deploying it (and potentially harming an agent).
mvn org.rhq:rhq-plugin-validator:rhq-plugin-validate
If the agent plug-in was not created using the JBoss ON/RHQ plug-in generator, then add a <build> element to point to the validator and a pointer to the <pluginRepositories> element to point to the Maven repository.
<build>
<plugins>
<plugin>
<groupId>org.rhq</groupId>
<artifactId>rhq-core-plugin-validator</artifactId>
<version>1.0.1-SNAPSHOT</version>
</plugin>
</plugins>
</build>
...
...
<pluginRepositories>
<pluginRepository>
<id>jboss</id>
<name>JBoss Plugin Repository</name>
<url>http://repository.jboss.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
...

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.