maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maria Cristina <>
Subject how to copy resources? how to create a zip file with the app jar, the dependent jars and the resources?
Date Thu, 23 Feb 2012 18:40:43 GMT
Sorry for the duplicate post. I am new to Maven and need some help. This
what I currently have:

my project's src/main/resources contains two packages:
the default package contains two files and
another package named contains one file called

my pom includes:

my class references the resource bundle as follows:
private static final String BUNDLE_NAME =

inside the generated executable jar file app-1.0.jar contains:

in the manifest the following class path and main class:
Class-Path: config/ log4j-1.2.7.jar (and other dependent jars)



my IDE results is successful:
clean and build works and the JUnit tests run successfully

then I do several manual steps
copy app-1.0.jar to a my destination folder named testapp
remove and from app-1.0.jar and copy to a
folder named config in folder testapp
copy log4j-1.2.7.jar (and other dependent jars) to the folder testapp

my command line result is successful:
java -jar app-1.0.jar

I'd like to make some changes to achieve the following:

because I'd like to automate my manual steps, I'd like to use Maven to
automate the creation of a zip file containing:

lib/log4j-1.2.7.jar (and other dependent jars)

I've been trying and I don't know how to copy the resources to the config
folder without breaking the JUnit tests. Is it possible, if so how? How
would I create the zip with the structure?

Thanks in advance.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message