Cichy
Cichy

Reputation: 1329

"mvn install" witk skipped the artifacts folder

I have got simple java project:

  <groupId>pl.cichon.andrzej.primefaces</groupId>
  <artifactId>jfaces-theme</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>

With structure in src folder like this:

Project structure

How to generate simple jar, with content just like my structure? When i run "mvn install", it creates jar with src folder "pl.cichon.andrzej.primefaces.jfaces-theme" with no content inside. I want to simple jar with the structure like my src content.

Upvotes: 0

Views: 26

Answers (1)

Charlee Chitsuk
Charlee Chitsuk

Reputation: 9069

As mentioning at Introduction to the Standard Directory Layout. Put those files under the src/main/resources. e.g.

src
`--main
   `--resources
      `--META-INF
         `--resources
            `--primefaces-jfaces
               |--images
                `--themes.css

The mvn clean install will put those files in a form of the structure that you need.

Upvotes: 1

Related Questions