The following comment has been added to this issue:

     Author: Dominique Collette
    Created: Fri, 23 Apr 2004 10:00 AM
       Body:
actually jboss-server-conf is a .jar that contains resources.  I've isolated the one 
resource that is required to execute this plugin (standardjboss.xml) and it should be 
placed in the plugin's plugin-resources directory.

Here's the patch :

plugin.jelly :

+  <!--
       + ========================================================================
+       Verify the ejb's integrity.
       + ========================================================================
+  -->
+  <goal name="jboss:ejb-verify">
+    <!-- Point to the standardjboss.xml  -->
+    <j:if test="${context.getVariable('maven.jboss.verify.jboss.xml') == null}">
+        <j:set var="maven.jboss.verify.jboss.xml" value="${maven.jboss.script.dir}"/>
+        <echo>Using standardjboss.xml in ${maven.jboss.verify.jboss.xml}</echo>
+    </j:if>
+      <util:replace var="jarPath" oldChar="\" newChar="/" 
value="${maven.build.dir}/${maven.final.name}.jar"/>
+      <path id="verifyClasspath">
+          <pathelement location="${jarPath}"/>
+          <pathelement location="${plugin.getDependencyPath('jboss:jboss')}"/>
+          <pathelement location="${plugin.getDependencyPath('jboss:jpl-util')}"/>
+          <pathelement location="${plugin.getDependencyPath('jboss:jpl-pattern')}"/>
+          <pathelement location="${plugin.getDependencyPath('jboss:jboss-system')}"/>
+          <pathelement location="${plugin.getDependencyPath('jboss:jboss-common')}"/>
+          <pathelement location="${maven.jboss.verify.jboss.xml}"/>
+          <path refid="maven.dependency.classpath"/>
+      </path>
+      <echo>Verifying EJB in ${jarPath}...</echo>
+      <java classname="org.jboss.verifier.Main" fork="true" failonerror="true">
+          <arg line="beanverifier ${jarPath}"/>
+          <classpath refid="verifyClasspath"/>
+      </java>
+  </goal>


plugin.properties :

+ # (optional) Location of standardjboss.xml, which is used for ejb verification
+ # The default version of this file can be found in plugin-resources.
+ # maven.jboss.verify.jboss.xml = 
${pom.getPluginContext('maven-jboss-plugin').getVariable('plugin.dir')}/plugin-resources

project.xml :

+  <dependencies>
+        <!--
+           |
+           | EJB Verifier Dependencies
+           |
+        -->
+        <dependency>
+            <groupId>jboss</groupId>
+            <artifactId>jboss</artifactId>
+            <version>3.2.2</version>
+        </dependency>
+        <dependency>
+            <groupId>jboss</groupId>
+            <artifactId>jpl-util</artifactId>
+            <version>3.2.2</version>
+        </dependency>
+        <dependency>
+            <groupId>jboss</groupId>
+            <artifactId>jpl-pattern</artifactId>
+            <version>3.2.2</version>
+        </dependency>
+        <dependency>
+            <groupId>jboss</groupId>
+            <artifactId>jboss-system</artifactId>
+            <version>3.2.2</version>
+        </dependency>
+        <dependency>
+            <groupId>jboss</groupId>
+            <artifactId>jboss-common</artifactId>
+            <version>3.2.2</version>
+        </dependency>
+  </dependencies>



---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJBOSS-10&page=comments#action_19001

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJBOSS-10

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJBOSS-10
    Summary: Add jboss:ejb-verify goal
       Type: New Feature

     Status: Unassigned
   Priority: Minor

 Original Estimate: 2 hours
 Time Spent: Unknown
  Remaining: 2 hours

    Project: maven-jboss-plugin
   Versions:
             1.4

   Assignee: 
   Reporter: Dominique Collette

    Created: Tue, 13 Apr 2004 8:51 AM
    Updated: Fri, 23 Apr 2004 10:00 AM
Environment: N/A

Description:
I propose the following goal for ejb verification under jboss :

  <!--
       ========================================================================
       Verify the ejb's integrity.
       ========================================================================
  -->
  <goal name="jboss:ejb-verify">
      <util:replace var="jarPath" oldChar="\" newChar="/" 
value="${maven.build.dir}/${maven.final.name}.jar"/>
      <path id="verifyClasspath">
          <pathelement location="${jarPath}"/>
          <pathelement location="${plugin.getDependencyPath('jboss:jboss')}"/>
          <pathelement location="${plugin.getDependencyPath('jboss:jpl-util')}"/>
          <pathelement location="${plugin.getDependencyPath('jboss:jpl-pattern')}"/>
          <pathelement location="${plugin.getDependencyPath('jboss:jboss-system')}"/>
          <pathelement 
location="${plugin.getDependencyPath('jboss:jboss-server-conf')}"/>
          <pathelement location="${plugin.getDependencyPath('jboss:jboss-common')}"/>
          <path refid="maven.dependency.classpath"/>
      </path>
      <echo>Verifying EJB in ${jarPath}...</echo>
      <java classname="org.jboss.verifier.Main" fork="true" failonerror="true">
          <arg line="beanverifier ${jarPath}"/>
          <classpath refid="verifyClasspath"/>
      </java>
  </goal>

The following artifacts should be referenced in the plugin's project.xml :

  <dependencies>
        <!--
           |
           | EJB Verifier Dependencies
           |
        -->
        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss</artifactId>
            <version>3.2.3</version>
        </dependency>
        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jpl-util</artifactId>
            <version>3.2.3</version>
        </dependency>
        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jpl-pattern</artifactId>
            <version>3.2.3</version>
        </dependency>
        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss-system</artifactId>
            <version>3.2.3</version>
        </dependency>
        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss-server-conf</artifactId>
            <version>3.2.3</version>
        </dependency>
        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss-common</artifactId>
            <version>3.2.3</version>
        </dependency>
  </dependencies>




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to