Daniel,

I tried moving your .properties files from src/main/java to src/main/resources (Am I right in thinking that is where Maven normally expects non Java files?), which didn't initially work, I think because there is a copy resources filter in the plugin's POM. Changing the top of the POM like this did the trick:

<build>
   <resources>
     <resource>
       <directory>.</directory>
       <includes>
         <include>plugin.xml</include>
         <include>about.html</include>
         <include>plugin.properties</include>
         <include>plugin_*.properties</include>
       </includes>
     </resource>
     <resource>
       <directory>src/main/resources</directory>
       <includes>
         <include>**/*</include>
       </includes>
     </resource>
     <resource>
       <targetPath>META-INF</targetPath>
       <directory>META-INF</directory>
       <includes>
         <include>MANIFEST.MF</include>
       </includes>
     </resource>
     <resource>
       <targetPath>lib</targetPath>
       <directory>lib</directory>
       <includes>
         <include>*.jar</include>
       </includes>
     </resource>
   </resources>

Note the second resource.

Cheers

Jon

Daniel S. Haischt wrote:
just realized that the package ...

  org\apache\openejb\helper\annotation\fixtures

contains messages.properties files as well. I've just added them
to SVN. So these properties should be contained in the JAR...

org.apache.openejb.helper.annotation.test_1.0.0.jar

-------- Original Message --------
Return-Path: <[EMAIL PROTECTED]>
Received: from ?127.0.0.1? ( [91.89.102.216]) by mx.google.com with ESMTPS id 18sm7505120hue.9.2008.03.25.03.50.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Mar 2008 03:50:29 -0700 (PDT)
Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 25 Mar 2008 11:53:10 +0100
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: [email protected]
Subject: Re: [INFO] OpenEJB plugin for Eclipse
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
From: Daniel S. Haischt <[EMAIL PROTECTED]>

Jacek Laskowski wrote:
On Tue, Mar 25, 2008 at 2:46 AM, Daniel S. Haischt
<[EMAIL PROTECTED]> wrote:

 *open issues:
* did not manage to include messages.properties files while assembling
    a JAR using Maven

Where is it so I could tackle on it? Describe the steps you followed
until the issue has cropped up.


Try to execute mvn clean install within the openejb-eclipse-plugin
directory.

The build should succeed as usual... BUT... the
org.apache.openejb.helper.annotation JAR file does not contain the
messages*.properties file which can be found in the following
package(s):

  org.apache.openejb.helper.annotation
  org.apache.openejb.helper.annotation.actions
  org.apache.openejb.helper.annotation.wizards

This obviously yields a runtime error while trying to access the
OpenEJB wizard dialogs right within Eclipse.

Solution:
---------

Maven should include these properties while assembling the Eclipse
plugin JAR file.

How to reproduce:
-----------------

Follow the steps described in: openejb-eclipse-plugin/README.txt
and inspect the org.apache.openejb.helper.annotation_1.0.0.jar
plugin file. Properties files should be missing.

Minor nitpick:
--------------

I realized that maven uses a hyphen to differentiate the version from
the jar filename. Tho, cause this are Eclipse plugins, an underscore
should be used, no?

Eaxmple: org.apache.openejb.helper.annotation_1.0.0.jar (OK)
         org.apache.openejb.helper.annotation-1.0.0.jar (not OK)


Reply via email to