• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maven not copying java resources into jar file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maven not copying java resources into jar file


  • Subject: Re: Maven not copying java resources into jar file
  • From: Hugi Thordarson <email@hidden>
  • Date: Mon, 21 Mar 2016 17:01:23 +0000

OK, turns out it was Eclipse that was copying the resources to the classes-folder… I should have known.

But the question then  still remains; how do I introduce the standard maven resources behaviour to my WO projects, i.e. make tem copy resources from src/main/resources into my jar file.

Cheers,
- hugi



> On 21. mar. 2016, at 16:26, Hugi Thordarson <email@hidden> wrote:
>
> Hi all.
>
> I’ve begun the fun task of converting all my WO apps to maven (finally) but I’m encountering odd behaviour with resources.
>
> In my src/main/resources I have a couple of xml files that should end up in the final jar (as they do with a regular java maven build). If I run “mvn pakage” on my dev machine, these xml-files are copied to the jar file as I would expect. But when I run the very same build on my jenkins server, the files just get copied to MyApp.woa/Contents/Resources, but not into the jar file.
>
> Any ideas?
>
> Cheers,
> - hugi
>
> // Hugi Thordarson
> // http://www.loftfar.is/
> // s. 895-6688
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Maven not copying java resources into jar file
      • From: Lachlan Deck <email@hidden>
References: 
 >Maven not copying java resources into jar file (From: Hugi Thordarson <email@hidden>)

  • Prev by Date: Maven not copying java resources into jar file
  • Next by Date: “undelete”?
  • Previous by thread: Maven not copying java resources into jar file
  • Next by thread: Re: Maven not copying java resources into jar file
  • Index(es):
    • Date
    • Thread