• 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: Henrique Prange <email@hidden>
  • Date: Tue, 22 Mar 2016 13:29:18 -0300

Hi Hugi,

AFAIR, the wolifecycle-maven-plugin copies all files from src/main/resources into the Resources folder. However, you can use the maven-resources-plugin to copy the required files into the Maven output directory.

<build>
  <plugins>
    <plugin>
      <artifactId>maven-resources-plugin</artifactId>
      <version>2.6</version>
      <executions>
        <execution>
          <id>copy-resources</id>
          <phase>validate</phase>
          <goals>
            <goal>copy-resources</goal>
          </goals>
          <configuration>
            <outputDirectory>${project.build.outputDirectory}</outputDirectory>
            <resources>
              <resource>
                <directory>src/main/resources</directory>
              </resource>
            </resources>
          </configuration>
        </execution>
      </executions>
    </plugin>
  </plugins>
</build>

See the maven-resources-plugin [1] documentation for more information.

[1]https://maven.apache.org/plugins/maven-resources-plugin/

Cheers,

Henrique
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: Hugi Thordarson <email@hidden>
References: 
 >Maven not copying java resources into jar file (From: Hugi Thordarson <email@hidden>)
 >Re: Maven not copying java resources into jar file (From: Hugi Thordarson <email@hidden>)
 >Re: Maven not copying java resources into jar file (From: Lachlan Deck <email@hidden>)
 >Re: Maven not copying java resources into jar file (From: Hugi Thordarson <email@hidden>)
 >Re: Maven not copying java resources into jar file (From: Lachlan Deck <email@hidden>)
 >Re: Maven not copying java resources into jar file (From: Hugi Thordarson <email@hidden>)

  • Prev by Date: Re: UUID data type
  • Next by Date: Re: Maven not copying java resources into jar file
  • Previous by thread: Re: Maven not copying java resources into jar file
  • Next by thread: Re: Maven not copying java resources into jar file
  • Index(es):
    • Date
    • Thread