The following comment has been added to this issue:
Author: Vincent Massol
Created: Fri, 23 Apr 2004 4:36 PM
Body:
Thanks Dominique. I'm attaching my changes to your patch. I cannot commit as there is
a big drawback to your patch. See below.
Some comments:
- next time, please:
- submit a *real* patch (cvs diff). It was a pain to apply it
- don't forget to submit a patch for properties.xml, goals.xml
- I have made some modifications (see attached patch)
But more importantly: your patch has a severe limitations. It will only work for JBoss
3.2.3 (or rather the version defined in the dependent jars). However, the JBoss plugin
is supposed to work with any JBoss version. In addition we need to add a JBoss source
to the file system which is not allowed (the jboss standardjboss.xml file) as it is
under a LGPL license.
Could you please post another patch to support different JBoss versions?
I really think the best approach is to use ${maven.jboss.home} and compute the diffent
files and libs using this property. This will also allow removing the
standardjboss.xml file and thus it'll make your patch generic.
Thanks
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPJBOSS-10&page=comments#action_19018
---------------------------------------------------------------------
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 4:36 PM
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]