openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Woods <dwo...@apache.org>
Subject Re: Problems in setting up the work enviroment.
Date Tue, 05 May 2009 16:47:58 GMT
What level of Java and Maven are you using?
Also, it looks like you're using either Vista or Win2008 Server, so 
wondering does your user account have administrator rights or not?

On WinXP, I'm using the following to build trunk without problems -
	Sun Java 1.5.0_16
	Maven 2.0.9

 From the root of the source you checked out (trunk in my case), try 
running -
	mvn clean install


-Donald


Anurag Rai wrote:
> Hi all,
> I am getting the following error message while using maven install. I looked
> into the ..\openjpa-persistence\target\ directory but couldn't find
> "test-classes" directory there. Could anyone please help ??
> 
> [WARNING] Unable to locate Source XRef to link to - DISABLED
> [INFO] [resources:resources]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 8 resources
> [INFO] Copying 2 resources to META-INF
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
>       [jar] Building jar:
> C:\Users\anurag\Documents\acads\GSoC\OpenJPA\trunk\openjpa-persistence\target\test-classes\second-persistence.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: Problem creating jar:
> C:\Users\anurag\Documents\acads\GSoC\OpenJPA\trunk\openjpa-persistence\target\test-classes\second-persistence.jar
> (The system cannot find the path specified) (and the archive is probably
> corrupt but I could not delete it)
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An Ant
> BuildException has occured: Problem creating jar:
> C:\Users\anurag\Documents\acads\GSoC\OpenJPA\trunk\openjpa-persistence\target\test-classes\second-persistence.jar
> (The system cannot find the path specified) (and the archive is probably
> corrupt but I could not delete it)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
> 	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: An Ant
> BuildException has occured: Problem creating jar:
> C:\Users\anurag\Documents\acads\GSoC\OpenJPA\trunk\openjpa-persistence\target\test-classes\second-persistence.jar
> (The system cannot find the path specified) (and the archive is probably
> corrupt but I could not delete it)
> 	at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:131)
> 	at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
> 	at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
> 	... 16 more
> Caused by: Problem creating jar:
> C:\Users\anurag\Documents\acads\GSoC\OpenJPA\trunk\openjpa-persistence\target\test-classes\second-persistence.jar
> (The system cannot find the path specified) (and the archive is probably
> corrupt but I could not delete it)
> 	at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:574)
> 	at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:416)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> 	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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:357)
> 	at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
> 	... 19 more
> Caused by: java.io.FileNotFoundException:
> C:\Users\anurag\Documents\acads\GSoC\OpenJPA\trunk\openjpa-persistence\target\test-classes\second-persistence.jar
> (The system cannot find the path specified)
> 	at java.io.FileOutputStream.open(Native Method)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
> 	at org.apache.tools.zip.ZipOutputStream.<init>(ZipOutputStream.java:267)
> 	at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:487)
> 	... 29 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 27 seconds
> [INFO] Finished at: Tue May 05 21:20:27 IST 2009
> [INFO] Final Memory: 29M/52M
> [INFO]
> ------------------------------------------------------------------------
> 
> 

Mime
View raw message