maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fikin <nikolai.fii...@gmail.com>
Subject maven-jar-plugin does not recognise execute/configuration/classesDirectory
Date Sat, 07 May 2011 10:31:56 GMT
mvn 3.0.2

my pom.xml has following structure:
...
build/plugins/plugin/maven-jar-plugin
  execution=id1/configuration/
      classesDirectory=target/classesw
  execution=id2/configuration
      classifier=compile
      classesDirectory=target/classes

i'm running ant-task during compile which produces target/classesw out
of target/classes.

now, running package phase produces two jars:
aa.jar and aa-compile.jar. this is ok part.

but their content is identical. and this is the problem part.

build trace reveals classesDirectory is not being configured properly:
...
[DEBUG]   (f) classesDirectory = .../target/classes
...
[DEBUG]   (f) classesDirectory = .../target/classes
[DEBUG]   (f) classifier = compile
...

why?

if i set maven-jar-plugin/configurator/classesDirectory, then the
plugin recognises it but the two executions are still with same dir.

any proposals how to workaround this?

fikin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message