On Mon, Nov 10, 2008 at 6:13 PM, kunduruswaroop <[EMAIL PROTECTED]> wrote:
> 1) I used a assembly goal and run it using mvn assembly:assembly. I got 2
> jar files instead of one they are as follows.
>
> java_app-1.0-SNAPSHOT-jar-with-dependencies.jar
> java_app-1.0-SNAPSHOT.jar
>
> I wanted to eliminate java_app-1.0-SNAPSHOT.jar file.

I believe the minijar and/or shade plugins have the ability to replace
the main artifact. I'm not so sure the assembly plugin does.

Is the problem really that the original jar gets installed, or is it
that the jar with dependencies does _not_?  If so, you might want to
use one of the goals that attaches the assembly to the build so that
it does get deployed, and just ignore the other jar.

> 2) I have a resource file (a log4j.properties file) there is a dinamic
> variable ${APP_HOME} that application cannot replace with original value
> while running. I tested it in windows and linux too. in both the places it
> is not filling with oeiginal exported value.

I can't quite tell what you mean here... do you want to filter a value
into the log4j.properties file and it's not happening?

(It's helpful to ask unrelated questions in separate threads with
descriptive subject lines, and to include the relevant bits of your
pom and build output.)

-- 
Wendy

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

Reply via email to