Thanks (and sorry for submitting this request to the wrong group earlier).

If I wasn't clear, I do need the result to be:

-- target
    |-- classes
    `-- AppServices
        |-- META-INF
        |   `-- services
        |       `-- org.apache.commons.logging.LogFactory
        `-- WEB-INF
            `-- classes

Not....

-- target
    |-- classes
    `-- AppServices
        |-- META-INF
        `-- WEB-INF
            |-- classes
            `-- META-INF
                `-- services
                    `-- org.apache.commons.logging.LogFactory 

Anyhow, you're right.  That did work.  I moved the META-INF directory 
under webapp to be a sibling of WEB-INF.  It's building as expected.

AppServices
|-- pom.xml
`-- src
     `-- main
         |-- java
         |-- resources
         `-- webapp
             |-- WEB-INF
             `-- META-INF
                 `-- services
                     `-- org.apache.commons.logging.LogFactory

I think our confusion was that this is a different practice than for a JAR 
project and we wanted to stay 'true' to the Maven directory structure. For 
a JAR (Java project), the custom META-INF does go under the resources 
directly and builds just fine.

Thanks again!






"Brett Porter" <[EMAIL PROTECTED]> 

06/05/2008 01:05 PM
Please respond to
"Maven Users List" <[email protected]>



To
"Maven Users List" <[email protected]>
cc

Subject
Re: WEB-INF/classes/META-INF






This isn't a bug - resources is "class path" resources in the context
of Java, which happens to be in WEB-INF/classes for a web app, and /
for a JAR.

You have two options:
- add the files directly to src/main/webapp
- use the war plugin's webResources configuration to add a new location

(this is assuming that this is what works, I'm not familiar if
META-INF/services is read from the root of a webapp or not)

- Brett

2008/6/6 Jerry Thome <[EMAIL PROTECTED]>:
> I need to add a 
"META-INF/services/org.apache.commons.logging.LogFactory"
> to tell commons-logging to use log4j (a pretty basic thing I think).  I
> thought I was suppose to add it to the main/resources/ directory.  As 
many
> of you know, it copies everything from here to the WEB-INF/classes
> directory.
>
> AppServices
> |-- pom.xml
> |-- src
> |    |-- main
> |    |   |-- java
> |    |   |-- resources
> |    |   |   `-- META-INF
> |    |   |       `-- services
> |    |   |           `-- org.apache.commons.logging.LogFactory
> |    |   `-- webapp
> |    |
> |    `-- test
> |        `-- java
> |            `-- ...
> `-- target
>    |-- classes
>    `-- AppServices
>        |-- META-INF
>        `-- WEB-INF
>            `-- classes
>                `-- META-INF
>                    `-- services
>                        `-- org.apache.commons.logging.LogFactory
>
> Is this a bug?  Am I putting the "META-INF/services" in the wrong place? 
I
> am currently using Maven 2.0.9.
>
>
>
> Thank you!
>
>
>
> The information contained in this e-mail and any accompanying documents 
may contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, or if 
this message has been addressed to you in error, please immediately alert 
the sender by reply e-mail and then delete this message, including any 
attachments. Any dissemination, distribution or other use of the contents 
of this message by anyone other than the intended recipient is strictly 
prohibited. All messages sent to and from this e-mail address may be 
monitored as permitted by applicable law and regulations to ensure 
compliance with our internal policies and to protect our business. E-mails 
are not secure and cannot be guaranteed to be error free as they can be 
intercepted, amended, lost or destroyed, or contain viruses. You are 
deemed to have accepted these risks if you communicate with us by e-mail.
>
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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





The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply e-mail and then delete this message, including any attachments. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. All messages 
sent to and from this e-mail address may be monitored as permitted by 
applicable law and regulations to ensure compliance with our internal policies 
and to protect our business. E-mails are not secure and cannot be guaranteed to 
be error free as they can be intercepted, amended, lost or destroyed, or 
contain viruses. You are deemed to have accepted these risks if you communicate 
with us by e-mail. 


Reply via email to