Re: adds same artifacts(different version)?

2006-12-01 Thread franz see
Good day to you, Sha Jiang, Maven2 handles dependencies by searching for versionless artifact keys from the dependency tree and chooses the version which is closest to the root ( the pom you ran your mvn command on ). Therefore, you cannot depend on two different versions of an artifact. If you s

maven ibiblio repository beign moved

2006-12-01 Thread Ernesto Celis
I was trying to download some artifacts from ibiblio.org central repository, but the downloads always failed with the 301 http status code, doing some investigations I found that ibiblio is moving some contents to mirrors.ibiblio.org. To solve this just change the URL on your build.properties to:

Re: site:run not showing some apt pages

2006-12-01 Thread franz see
Good day to you, Chris, You may want to do a mvn -cpu site:run to update forcefully update your plugin just in case you're not running the latest version. Cheers, Franz Christofer Jennings-2 wrote: > > Looks like it! Thanks! > > On 11/30/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: >> >> On 11

Re: [m2] Offline Maven Docs - How???

2006-12-01 Thread franz see
Good day to you, Jens, The only way i know is to check out the site from [1]. And as for the the plugin docs, you'd have to check out the plugins and do mvn site on them. That goes with the other maven modules that you would want to have their documentation offline. you'd check out the correspond

Re: Parameter priority

2006-12-01 Thread franz see
Good day to you, Martin, How are you using specifying your "host" in the pom, and how are you using it in your mojo? Thanks, Franz Martin Gilday wrote: > > I am writing a mojo that requires a parameter called "host". If I set > this in my depdendant projects POM then it works. If I use the

Re: Installing continuum 1.1 SNAPSHOT

2006-12-01 Thread L. J.
Yes, I try to log in as admin Here is the log jvm 3| 2006-12-01 18:13:55,539 [SocketListener0-0] INFO Action:configuratio n - baseUrl='http://localhost:8585/continuum' jvm 3| 2006-12-01 18:13:55,689 [SocketListener0-0] DEBUG AutoLoginCookies - Remember Me Cookie Not

Re: dependencies on eclipse 3.2 plugins

2006-12-01 Thread Tom Huybrechts
There is a Maven repository with the Eclipse bundles at http://repo1.maven.org/eclipse/ I don't expect this to be around forever, but I guess it will eventually be integrated in the central repository. On 12/2/06, Bhupendra Bhardwaj <[EMAIL PROTECTED]> wrote: Hi, I have developed an eclipse RCP

Re: Question about transitive dependencies

2006-12-01 Thread Tom Huybrechts
Say you depend on a ClassA from dependency A. Class A extends ClassB from dependency B. When you compile against ClassA you will also need ClassB even if you do not access it directly. That is the reason B is automatically put on your compile classpath if you depend on A. There are several ways t

Re: Quality Dashboard

2006-12-01 Thread Alexandre Poitras
I went to a conference in Montreal today and from what Vincent said, it's going to be based on XWiki. I'll let him talk more about it by himself :) On 9/7/06, Wim Deblauwe <[EMAIL PROTECTED]> wrote: Hi, reading through http://idisk.maven.org/jvanzyl/Public/presos/Feynman.pdf, there is talk of V

Re: Installing continuum 1.1 SNAPSHOT

2006-12-01 Thread Jesse McConnell
check the logs for anything odd and post that here and we can help I had someone report something similar earlier today but I couldn't confirm and when I tried it things worked on a fresh install. you are logging in after the initial admin account creation with 'admin' right? jesse On 12/1/06,

dependencies on eclipse 3.2 plugins

2006-12-01 Thread Bhupendra Bhardwaj
Hi, I have developed an eclipse RCP and it can run as an standalone application. Now I need to do a maven build for it. This project will be part of another open source project. As the eclipse plugins are not available in maven repository, do I need to add those plugins like swt3.2.., jface3.2 et

Re: Surefire and TestNG

2006-12-01 Thread Jason van Zyl
On 14 Nov 06, at 10:11 AM 14 Nov 06, Christopher Maki wrote: Hi I seem to be having a problem with TestNG 5.1 and the Surefire plugin (either 2.3-SNAPSHOT or 2.2). When using Surefire 2.3- SNAPSHOT I get this error when I try to run my tests: Kenney is working another release of the su

Source code in multiple modules problem

2006-12-01 Thread Petar Tahchiev
Hello to everybody, I am currently trying to refactor a source tree that used to be built with Ant. The source tree contains of three modules ModuleA, ModuleB and ModuleC. At startup a property is being given, and based on that property only one of these modules is being built. The problem is tha

RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-01 Thread Marilyn Sander -X \(marilysa - Digital-X, Inc. at Cisco\)
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, December 01, 2006 2:53 AM > To: users@maven.apache.org > Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml > > > -Original Message- > > From: Marilyn Sander -X (marilysa - Digital-X, Inc. at

Re: Release a project

2006-12-01 Thread Dan Tran
if you checkout, build, and tag. Your tag may have not teh same file in your orignal checkout. the release plugin does: - build <-- precaution thinging - tag - checkout tag - build the checkedout tag working copy -D On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: What I'm

Re: Question about transitive dependencies

2006-12-01 Thread Alexander Sack
On 12/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 12/1/06, Alexander Sack <[EMAIL PROTECTED]> wrote: > > And in fact, one can actually remove the transitive dependencies that are > unwanted during the build classpath by declaring them in the POM as > "provided." I believe that fits his

Re: Question about transitive dependencies

2006-12-01 Thread Craig McClanahan
On 12/1/06, Alexander Sack <[EMAIL PROTECTED]> wrote: And in fact, one can actually remove the transitive dependencies that are unwanted during the build classpath by declaring them in the POM as "provided." I believe that fits his scenario where he is building against a library that has a tran

Re: Question about transitive dependencies

2006-12-01 Thread Alexander Sack
And in fact, one can actually remove the transitive dependencies that are unwanted during the build classpath by declaring them in the POM as "provided." I believe that fits his scenario where he is building against a library that has a transitive dependency that he does not want on his build cla

Re: Question about transitive dependencies

2006-12-01 Thread Craig McClanahan
On 12/1/06, Alexander Sack <[EMAIL PROTECTED]> wrote: This maybe an artifact of the fact that many plugins use the classpath for runtime constraints as well. It's also possible to avoid this behavior, by declaring a scope of on the dependency. That way, the module is *not* included on the c

Re: Build error with pde-maven-plugin

2006-12-01 Thread Dan Tran
are you able to run the m2eclipse example? -D On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, i always get an error, when i try to build an eclipse plugin: Does't anyone have an idea what is wrong? Thanks and best Reragrds, Thorsten [INFO] Scanning for projects... [INFO] -

Re: Question about transitive dependencies

2006-12-01 Thread Alexander Sack
This maybe an artifact of the fact that many plugins use the classpath for runtime constraints as well. -aps On 12/1/06, Heck, Joe <[EMAIL PROTECTED]> wrote: I couldn't answer this for one of the devs in our team, so I thought I'd push the question to you all for any feedback you could provide

RE: Release a project

2006-12-01 Thread Grosskop, Kay
why can't you just call mvn scm:checkout release:prepare As one statement? You must have a really active scm-repository or a very long build if you are concerned about intermediat commits. Since you will do a checkout of the latest revision just before you build. Or didn't I understand you well

Question about transitive dependencies

2006-12-01 Thread Heck, Joe
I couldn't answer this for one of the devs in our team, so I thought I'd push the question to you all for any feedback you could provide. Any insight would be great... -joe -- -- Can anyone explain to me why transitive dependencies (even of dependencies that are specified as "compile" scope in

Installing continuum 1.1 SNAPSHOT

2006-12-01 Thread L. J.
Hi, I try to install the continuum 1.1 SNAPSHOT on my local machine which I build from the main trunk after svn checkout. I can't log on after creating an admin user. Is there anything i am missing during the installation? Thanks. LJ

Re: Help with Maven 2 error!

2006-12-01 Thread Wayne Fay
Neither of those are errors. Both are warnings. Where's the error? Wayne On 12/1/06, Shaun McGlinchey <[EMAIL PROTECTED]> wrote: I have made no changes to my configuration, files of a Maven project which was until recently working. When trying to build the project I get the following error:

Re: Clover coverage

2006-12-01 Thread Mirko Nasato
Morgovsky, Alexander (US - Glen Mills) wrote: Does Clover have line coverage or branch coverage or both? Thanks. http://www.cenqua.com/clover/eg/ant/report/ Cheers Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Clover coverage

2006-12-01 Thread Morgovsky, Alexander \(US - Glen Mills\)
Does Clover have line coverage or branch coverage or both? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any

Help with Maven 2 error!

2006-12-01 Thread Shaun McGlinchey
I have made no changes to my configuration, files of a Maven project which was until recently working. When trying to build the project I get the following error: [WARNING] POM for 'org.jvnet.staxex:stax-ex:pom:1.0-SNAPSHOT:runtime' is invalid. It will be ignored for artifact resolution. Reaso

Re: m2eclipse plugin

2006-12-01 Thread Achim
Brigitte.Ilsanker wrote: > > Is there anyone there in the universer who is (successfully) using eclipse > 3.x and the m2eclipse plugin even for later goals like package, install, > ??? > > I tryed to use it in the following way: select the pom.xml in the package > explorer then in context

Re: Maven2 & Hibernate.

2006-12-01 Thread Eric Redmond
You're going to have to create a new resources and include only hbm.xmlfiles. src/main/java **/*.hbm.xml http://maven.apache.org/pom.html On 12/1/06, Robert Langridge <[EMAIL PROTECTED]> wrote: Hi Hermod, I do appriciate this, unfortunate

Re: Passing JVM options

2006-12-01 Thread Wayne Fay
Did you also try -DXrunpiAgent:server=enabled? Wayne On 12/1/06, Tom Huybrechts <[EMAIL PROTECTED]> wrote: Does jetty:run use the same VM ? Then you can do: set MAVEN_OPTS=-X On 12/1/06, Dan Adams <[EMAIL PROTECTED]> wrote: > I'm trying to run jetty:run but I need to pass in arguments to t

RE: Release a project

2006-12-01 Thread bjorn.de.bakker
Yeah that's right. But the problem is, if there are any differences beween the version stored on my computer and the one stored in the repository, the whole thing fails. I want the command to perform a checkout from the repository, make a clean build and tag that along with the version on the

Re: Continuum and multimodule setup

2006-12-01 Thread Emmanuel Venisse
continuum use the url you provide in Add Project screen and it add the module path. So with parent url http://svn.sandsli.dnb.no/svn/felles/IT-01/IT01-main/trunk/pom.xml and module ../it01 continuum think that the module url is http://svn.sandsli.dnb.no/svn/felles/IT-01/IT01-main/trunk/../it01/p

RE: [M2] A good guide to Multi-Module Assemblies?

2006-12-01 Thread Peter . Pilgrim
> -Original Message- > From: Pilgrim, Peter ==== > > -Original Message- > > From: Mick Knutson [mailto:[EMAIL PROTECTED] > > Sent: 30 November 2006 18:47 > > To: Maven Users List > > Subject: Re: [M2] A good guide to Multi-Module Assemblies? > > > > What is the issue? > > >

Re: Passing JVM options

2006-12-01 Thread Tom Huybrechts
Does jetty:run use the same VM ? Then you can do: set MAVEN_OPTS=-X On 12/1/06, Dan Adams <[EMAIL PROTECTED]> wrote: I'm trying to run jetty:run but I need to pass in arguments to the JVM (-XrunpiAgent:server=enabled to run the eclipse TPTP profiler) but doing 'mvn -XrunpiAgent:server=enable

Passing JVM options

2006-12-01 Thread Dan Adams
I'm trying to run jetty:run but I need to pass in arguments to the JVM (-XrunpiAgent:server=enabled to run the eclipse TPTP profiler) but doing 'mvn -XrunpiAgent:server=enabled jetty:run' doesn't work because it just thinks it's the -X option and prints debug stuff. Anyone know how to do this? Than

scm clearcase help

2006-12-01 Thread Ye, Yingyang \(Contractor\)
Hello, We are trying to use continuum with clearcase but we get this error: jvm 1| 2006-12-01 09:47:35,611 [Thread-3] INFO ContinuumScm - Checking out project: 'Unnamed - com.fanniemae.fapt:ipv:war:1.0', id: '51' to 'D:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\

Antwort: Re: Re: m2eclipse plugin

2006-12-01 Thread Brigitte . Ilsanker
Hello Marco, thans for your hints! So I understand that there could be an issue with the plugin and the callisto distri. This is what I use. The steps that I did were just downloading the callisto distri and then did the eclipse software upgrade and pointed to http://m2eclipse.codehaus.org whi

RE: Release a project

2006-12-01 Thread Grosskop, Kay
Hi Björn, As far as I can judge, the maven-release-plugin IS exactly what you need. There is even some documentation on it. http://maven.apache.org/plugins/maven-release-plugin/ http://maven.apache.org/guides/mini/guide-releasing.html quote from the mini-guide: -

Re: Maven2 & Hibernate.

2006-12-01 Thread Geoffrey De Smet
See the project reference, there you can set the source directory, the resources directory and included and excludes of the resources directory. Don't bother with the direct compiler configuration for that. Robert Langridge wrote, On 2006-12-01 1:57 PM: Hi Hermod, I do appriciate this, unfort

Re: Re: m2eclipse plugin

2006-12-01 Thread Marco Mistroni
hello brigitte, try this link and see if it can help http://blogs.unixage.com/blojsom/blog/adam.kruszewski/eclipse/?permalink=Maven2-Eclipse-plugin-with-latest-WTP-from-callisto-update-site.html On 12/1/06, Marco Mistroni <[EMAIL PROTECTED]> wrote: Hello, can you tell steps you made to get

Re: Re: m2eclipse plugin

2006-12-01 Thread Marco Mistroni
Hello, can you tell steps you made to get to the point of using eclipse with Maven? there's a link on the web (guide to eclipse)... i assume you have followed it if you find no help before i get home (7 PM UK) i'll send you my project / pom etc and we can take it from there.. ok? but if y

Release a project

2006-12-01 Thread bjorn.de.bakker
What I'm trying to do is the following: I want to checkout the most recent version of my project from Subversion. When that's done, I want to create a build from this version and after that, tag those two. This way, we have a version in Subversion from our project and a build, created from

Re: Putting resources to somewhere else

2006-12-01 Thread Wendy Smoak
On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> I would like maven to put my resources not into the jar file, but next to classes in a resources directory, so my structure would be: Component + - lib + - mycomponent.jar - resources + -

Antwort: Re: m2eclipse plugin

2006-12-01 Thread Brigitte . Ilsanker
When selecting the compile goal, the console says: ... [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:compile Compiling 2 source files to D:\my\target\directory [ERROR] mojo-execute : compiler:compile Diagnosis: Compilation failure FATAL ERROR:

Re: Maven 2 and Axis 1.2

2006-12-01 Thread Rémy Sanlaville
2006/11/28, Raphaël Piéroni <[EMAIL PROTECTED]>: you can found an axistools maven plugin on codehaus (mojo.codehaus.org) Thanks a lot Raphaël, it's what I was looking for. Rémy

Build error with pde-maven-plugin

2006-12-01 Thread thorsten
Hi, i always get an error, when i try to build an eclipse plugin: Does't anyone have an idea what is wrong? Thanks and best Reragrds, Thorsten [INFO] Scanning for projects... [INFO] [INFO] Building ... project [INFO]

RE: Maven2 & Hibernate.

2006-12-01 Thread Robert Langridge
Hi Hermod, I do appriciate this, unfortunately I didn't write the code and cannot change the directory structure, hence I emailed you lot :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 01 December 2006 10:53 To: users@maven.apache.org Subject: RE: Maven2

Re: m2eclipse plugin

2006-12-01 Thread Marco Mistroni
Hello.. works fine for me... what's the error you are receiving? regards marco On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there anyone there in the universer who is (successfully) using eclipse 3.x and the m2eclipse plugin even for later goals like package, install, ???

Putting resources to somewhere else

2006-12-01 Thread marton.szabo.sp
Dear Users, I would like maven to put my resources not into the jar file, but next to classes in a resources directory, so my structure would be: Component + - lib + - mycomponent.jar - resources + - myresource.xml Etc. Could anybody hel

Re: generating an admin jsp at build time

2006-12-01 Thread Jeff Mutonho
On 12/1/06, David Delbecq <[EMAIL PROTECTED]> wrote: "This application was build on " @@SomeBuildDateProperty@@ And use the ant filtering rules to replace content between @@ (see ant docs) Thanx David.Ended up being this simple :

RE: Maven2 & Hibernate.

2006-12-01 Thread hermod.opstvedt
Hi You should place all resources under src/main/resources not under src/main/java. Then this will not be a problem. Hermod -Original Message- From: Robert Langridge [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 11:27 AM To: Maven Users List Subject: Maven2 & Hibernate.

maven-checkstyle-plugin - how to exclude files?

2006-12-01 Thread bob robertson
Hi, I'm having trouble getting the checkstyle plugin in maven2 to ignore particular classes. I've tried the tag in the configuration, and a suppression file, but nothing works. Can anyone show me a concrete example how I can configure the plugin to not apply any checks whatsoever t

Re: Webspear plugin for maven 1.0.2

2006-12-01 Thread Dion Gillard
http://maven-plugins.sourceforge.net/maven-was5-plugin/ Is not specifically for WebSphere portal, but was 5/5.1 On 12/1/06, Neeraj Bisht <[EMAIL PROTECTED]> wrote: hi all i am able to build all the artifact through maven 1..0.2 but now the time of deployment ,and we are planing to

RE: Maven2 & Hibernate

2006-12-01 Thread Robert Langridge
Winner!! Worked like a charm. Thanks a lot! Rob Langridge Analyst Programmer - Java CoE e: [EMAIL PROTECTED] t: 01925 554578 (Ex 444 4578) -Original Message- From: Tom Huybrechts [mailto:[EMAIL PROTECTED] Sent: 01 December 2006 11:45 To: Maven Users List Subject: Re: Maven2 & Hiber

Re: Maven2 & Hibernate

2006-12-01 Thread Marco Mistroni
ah i see, got same problem when porting a WAS/RAD based project to maven i tried too what you say, but it didnt preserved the directory structure i turned out to write an ant task that does it... not nice i know.. below is the plugin if you need it maven-antrun-plugin

Webspear plugin for maven 1.0.2

2006-12-01 Thread Neeraj Bisht
hi all i am able to build all the artifact through maven 1..0.2 but now the time of deployment ,and we are planing to do deployment in webspare portale can any one suggest me from where i can found the plugin of webspare for maven1.0.2 on googling i found plugin for tomcat and JBoss

Re: Maven2 & Hibernate

2006-12-01 Thread Tom Huybrechts
Add the entire src/main/java as a resource, and add an excludes for **/*.java On 12/1/06, Robert Langridge <[EMAIL PROTECTED]> wrote: Hi, Thanks for the suggestions guys. Unfortunately I cannot change the file structure of the project as it's all under clear case. I have added multiple tags

RE: Maven2 & Hibernate

2006-12-01 Thread Robert Langridge
Hi, Thanks for the suggestions guys. Unfortunately I cannot change the file structure of the project as it's all under clear case. I have added multiple tags to achieve the copying over of the *.xml files and properties files that live under the package structure. /Java

m2eclipse plugin

2006-12-01 Thread Brigitte . Ilsanker
Is there anyone there in the universer who is (successfully) using eclipse 3.x and the m2eclipse plugin even for later goals like package, install, ??? I tryed to use it in the following way: select the pom.xml in the package explorer then in context menu "run as ...", then "Maven build..." .

Re: Maven2 & Hibernate

2006-12-01 Thread Marco Mistroni
Hi, one idea might be to putyour hbm files in src\main\resources directory every file in that directory will go automatically in your jar hth marco On 12/1/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote: Hi Rob, For a web application for example you can put the xml configuration files under t

RE: Maven2 & Hibernate.

2006-12-01 Thread Gianfranco Oldani
Hi Rob, For a web application for example you can put the xml configuration files under the WEB-INF directory. For example my hibernate.cfg.xml is under WEB-INF and for the .hbm.xml I have create a separated directory under WEB-INF called hibernate_map. Hope it helps Regards Gianfranco OLDA

RE: MAVEN_INSTALL_DIR/conf/settings.xml

2006-12-01 Thread Peter . Pilgrim
> -Original Message- > From: Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) > [mailto:[EMAIL PROTECTED] > Sent: 01 December 2006 00:15 > To: Maven Users List > Subject: RE: MAVEN_INSTALL_DIR/conf/settings.xml > > I tried the suggestion below for invoking Maven and it > worked.

Re: Maven2 & Hibernate.

2006-12-01 Thread Tom Huybrechts
Create a src/main/resources directory and put all resources that you want in your jar into that directory (with the right package structure). No need to configure anything. Tom On 12/1/06, Robert Langridge <[EMAIL PROTECTED]> wrote: Hi, I'm fairly new to maven and I have the task of creating

Maven2 & Hibernate.

2006-12-01 Thread Robert Langridge
Hi, I'm fairly new to maven and I have the task of creating an automated build for one of our hibernate projects. I have written a pom that compiles all my source and jar's it up. However when it compiles it does not copy across the .xml files of my hibernate entities or any of the .properties f

Re: generating an admin jsp at build time

2006-12-01 Thread David Delbecq
"This application was build on " @@SomeBuildDateProperty@@ And use the ant filtering rules to replace content between @@ (see ant docs) Jeff Mutonho a écrit : > I would like to create a sort of administration jsp that gets bundled > into my application war during build time.The administratio

RE: [M2] A good guide to Multi-Module Assemblies?

2006-12-01 Thread Peter . Pilgrim
> -Original Message- > From: Mick Knutson [mailto:[EMAIL PROTECTED] > Sent: 30 November 2006 18:47 > To: Maven Users List > Subject: Re: [M2] A good guide to Multi-Module Assemblies? > > What is the issue? > > There is this: > http://maven.apache.org/plugins/maven-assembly-plugin/assem

generating an admin jsp at build time

2006-12-01 Thread Jeff Mutonho
I would like to create a sort of administration jsp that gets bundled into my application war during build time.The administration jsp would probably look like this : "This application was build on " <%= new java.util.Date() %> but instead of "new java.util.Date()" , it would have the "bu

Re: changes report and bugzilla

2006-12-01 Thread Mark Hobson
On 01/12/06, Nathan Coast <[EMAIL PROTECTED]> wrote: I see there is changes support for jira in the changes plugin. Is there any support for bugzilla as the issue tracking system? If not, is this in the pipeline? http://jira.codehaus.org/browse/MCHANGES-58 Mark -

changes report and bugzilla

2006-12-01 Thread Nathan Coast
Hi, I see there is changes support for jira in the changes plugin. Is there any support for bugzilla as the issue tracking system? If not, is this in the pipeline? cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED]

xref for generated source

2006-12-01 Thread Nathan Coast
Hi, is it possible to configure the jxr plugin to generate xref for generated sources in addition to the main sources? cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Resources with different encoding

2006-12-01 Thread Robert Reiner
Hi! I have a question concerning the maven-resources-plugin: In my resource folder I have files with different encodings. The XML files are UTF-8, the properties files are ISO-8859-1. Since I set the encoding for copying the files to UTF-8, my property files are not copied properly. A workaround