Did I make a mistake by running "mvn compile" before "mvn install"?

I tried to run "mvn install", it ran out of java heap memory. :(

On Mon, Jul 4, 2011 at 5:18 PM, Mike Edwards <
[email protected]> wrote:

> Nirmal,
>
> I did an Update followed by a full build this morning and I don't see this
> error - the build works fine for me, with only a couple of known test
> failures relating to some Policy function that is under development.
>
>
> Yours,  Mike.
>
>
> On 02/07/2011 08:35, Nirmal Fernando wrote:
>
>> Hi,
>>
>> FYI: I tried building the trunk, it failed with following error.
>>
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Building Apache Tuscany SCA iTest Base
>> [INFO]    task-segment: [compile]
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Building Apache Tuscany SCA iTest Base Dependencies
>> [INFO]    task-segment: [compile]
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/src/main/**resources
>> [INFO] Copying 0 resource
>> [INFO] Copying 3 resources
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] No sources to compile
>> [INFO] [dependency:copy-dependencies {execution: copy}]
>> [INFO] Copying classes to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Error copying artifact from
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>>
>> Embedded error: 
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> (Is a
>> directory)
>> [INFO] ------------------------------**------------------------------**
>> ------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.**LifecycleExecutionException: Error copying
>> artifact from
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoals(**
>> DefaultLifecycleExecutor.java:**719)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**
>> executeGoalWithLifecycle(**DefaultLifecycleExecutor.java:**556)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoal(**
>> DefaultLifecycleExecutor.java:**535)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**
>> executeGoalAndHandleFailures(**DefaultLifecycleExecutor.java:**387)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**
>> executeTaskSegments(**DefaultLifecycleExecutor.java:**348)
>>     at org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**execute(**
>> DefaultLifecycleExecutor.java:**180)
>>     at org.apache.maven.DefaultMaven.**doExecute(DefaultMaven.java:**328)
>>     at org.apache.maven.DefaultMaven.**execute(DefaultMaven.java:138)
>>     at org.apache.maven.cli.MavenCli.**main(MavenCli.java:362)
>>     at org.apache.maven.cli.compat.**CompatibleMain.main(**
>> CompatibleMain.java:60)
>>     at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
>>     at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
>> NativeMethodAccessorImpl.java:**39)
>>     at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
>> DelegatingMethodAccessorImpl.**java:25)
>>     at java.lang.reflect.Method.**invoke(Method.java:597)
>>     at org.codehaus.classworlds.**Launcher.launchEnhanced(**
>> Launcher.java:315)
>>     at org.codehaus.classworlds.**Launcher.launch(Launcher.java:**255)
>>     at org.codehaus.classworlds.**Launcher.mainWithExitCode(**
>> Launcher.java:430)
>>     at org.codehaus.classworlds.**Launcher.main(Launcher.java:**375)
>> Caused by: org.apache.maven.plugin.**MojoExecutionException: Error
>> copying artifact from
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> to
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/testing/itest/**
>> base/dependencies/target/**dependency/classes
>>     at
>> org.apache.maven.plugin.**dependency.**AbstractDependencyMojo.**copyFile(
>> **AbstractDependencyMojo.java:**194)
>>     at
>> org.apache.maven.plugin.**dependency.**CopyDependenciesMojo.**
>> copyArtifact(**CopyDependenciesMojo.java:186)
>>     at org.apache.maven.plugin.**dependency.**
>> CopyDependenciesMojo.execute(**CopyDependenciesMojo.java:85)
>>     at org.apache.maven.plugin.**DefaultPluginManager.**executeMojo(**
>> DefaultPluginManager.java:490)
>>     at
>> org.apache.maven.lifecycle.**DefaultLifecycleExecutor.**executeGoals(**
>> DefaultLifecycleExecutor.java:**694)
>>     ... 17 more
>> Caused by: java.io.FileNotFoundException:
>> /media/798D-18B1/GSoC-2011/**Tuscany/trunk/modules/**assembly/target/classes
>> (Is a directory)
>>     at java.io.FileInputStream.open(**Native Method)
>>     at java.io.FileInputStream.<init>**(FileInputStream.java:106)
>>     at org.codehaus.plexus.util.**FileUtils.copyFile(FileUtils.**
>> java:929)
>>     at
>> org.apache.maven.plugin.**dependency.**AbstractDependencyMojo.**copyFile(
>> **AbstractDependencyMojo.java:**189)
>>     ... 21 more
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> C.S.Nirmal J. Fernando
>> Department of Computer Science & Engineering,
>> Faculty of Engineering,
>> University of Moratuwa,
>> Sri Lanka.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>


-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to