target path should just be META-INF. It is relative to maven.build.dest.
You can file a bug in JIRA so that Maven can figure out that you've
done this though - there should be a better error message.
- Brett
On Thu, 9 Sep 2004 03:06:59 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a strange problem, perhaps you know, what I can do about it. I happens as
> well on w2k as on red hat. When there are resources defined in the project.xml and
> the ejb:install goal is invoked, the target path for the resources is duplicated.
> Any idea what the reason for that strange behaviour is? I don't want to quote the
> whole output from 'maven -X ...' yet, maybe someone encountered also the same
> problem once and nows how to deal with it.
>
> resource definition from project.xml:
>
> <resources>
> <resource>
> <directory>${basedir}/j2eesdk/1.4.01/src/deployment/ejb/META-INF</directory>
> <targetPath>${maven.build.dest}/META-INF</targetPath>
> <includes>
> <include>*.xml</include>
> </includes>
> </resource>
> </resources>
>
> Starting the reactor...
> Our processing order:
> OSS/J Common API Reference Implementation
> +----------------------------------------
> | Building OSS/J Common API Reference Implementation
> | Memory: 2M/3M
> +----------------------------------------
> build:start:
> ri:
> build:start:
> ejb:init:
> java:prepare-filesystem:
> [mkdir] Created dir: C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes
> java:compile:
> [echo] Compiling to C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri/target/classes
> [javac] Compiling 101 source files to C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes
> java:jar-resources:
> Copying 1 file to C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes\C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes\META-INF
> BUILD FAILED
> File...... C:\Users\My Development\ossj\java.net\project\ossj\common\maven.xml
> Element... m:reactor
> Line...... 21
> Column.... 127
> Unable to obtain goal [ejb:init] -- C:\Documents and
> Settings\aebbert\.maven\cache\maven-java-plugin-1.4\plugin.jelly:149:38:
> <maven:copy-resources> Failed to copy C:\USERS\My
> Development\ossj\java.net\project\ossj\common\ri\j2eesdk\1.4.01\src\deployment\ejb\META-INF\sun-ejb-jar.xml
> to C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes\C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes\META-INF\sun-ejb-jar.xml
> due to C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes\C:\Users\My
> Development\ossj\java.net\project\ossj\common\ri\target\classes\META-INF\sun-ejb-jar.xml
> (The filename, directory name, or volume label syntax is incorrect)
> Total time: 11 seconds
> Finished at: Thu Sep 09 02:54:06 CEST 2004
>
> Andreas Ebbert
> Software Design Engineer - Nokia Networks OSS
> gsm: +49-177-9413928, fax: +49-211-94123838
> Heltorfer Stra�e 1, 40472 D�sseldorf, Germany
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]