error when running mvn site:deploy
Hello, I have error below when running mvn site:deploy. My maxs number of files seems to have appropriate values cat /proc/sys/fs/file-nr 35840 20 What could be the problem? [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Failed to upload to remote repository: /maven2/internal/site/axs/axs-root-pom/axs-core-root-pom/axs-ssh-adapter/./images/icon_sortright.gif : /var/axs/buildsite/basic.app/container/axs-ssh-adapter/target/site/images/icon_sortright.gif (Too many open files) [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:301) 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 uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:203) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) ... 16 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to upload to remote repository: /maven2/internal/site/axs/axs-root-pom/axs-core-root-pom/axs-ssh-adapter/./images/icon_sortright.gif : /var/axs/buildsite/basic.app/container/axs-ssh-adapter/target/site/images/icon_sortright.gif (Too many open files) at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:558) at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:546) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:187) ... 18 more Caused by: java.io.FileNotFoundException: /var/axs/buildsite/basic.app/container/axs-ssh-adapter/target/site/images/icon_sortright.gif (Too many open files) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2790) at org.apache.maven.wagon.providers.webdav.WebDavWagon.putDirectory(WebDavWagon.java:554) ... 20 more [INFO] - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error by running mvn package
Hi Mark, Many thanks. It runs. :-) Thomas ** Hi Thomas, Do you have the compiler plugin defined in your pom? At a minimum, you need to have this defined. * plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerArgument-verbose /compilerArgument source1.5/source target1.5/target /configuration /plugin* If you have a parent and child pom, you should have this in BOTH places. Regards, Mark Thomas Chang wrote: Hi all, I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run mvn oackage I got error as follow: E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\ DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) ListUser userList = userDao.findAll(); Someone knows how can I fix it? Regrads Thomas - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!
Re: Error by running mvn package
Hi Thomas, Do you have the compiler plugin defined in your pom? At a minimum, you need to have this defined. * plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerArgument-verbose /compilerArgument source1.5/source target1.5/target /configuration /plugin* If you have a parent and child pom, you should have this in BOTH places. Regards, Mark Thomas Chang wrote: Hi all, I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run mvn oackage I got error as follow: E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\ DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) ListUser userList = userDao.findAll(); Someone knows how can I fix it? Regrads Thomas - Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
Hi, In the recent version (2.0.7) the boot directory is not in core. I just created the core directory and placed the boot inside it and everything works fine now.. Regards Sateesh Sebastien Arbogast wrote: My mistake. I just realized that I installed maven in /usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven- 2.0.4. That should be the problem. Sorry about that and thanks for your time. 2007/1/16, franz see [EMAIL PROTECTED]: Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a12626519 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fatal error by running mvn install
Hi all, I downloaded a sample project from http://galaxy.andromda.org/images/stories/tutorial_java/timetracker-completed.zip;. As I want to to build the project by running mvn install, I got error as follow. This project contains several pom.xml. But none of them has an ArtifactID: timetracker-common. What could be wrong? Best regards C:\Wei\MyProjects\timetracker-completedmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included tra nsitively during the resolution process. Here is the information we do have for this artifact: o GroupID: org.andromda.timetracker o ArtifactID: timetracker-common o Version: MISSING o Type:jar [INFO] [INFO] Trace org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.andromda .timetracker:timetracker-common:null:jar}: The version cannot be empty. at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArt ifact.java:147) at org.apache.maven.artifact.DefaultArtifact.init(DefaultArtifact.java :122) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifa ct(DefaultArtifactFactory.java:158) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDepend encyArtifact(DefaultArtifactFactory.java:58) at org.apache.maven.project.DefaultMavenProjectBuilder.createManagedVers ionMap(DefaultMavenProjectBuilder.java:424) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:850) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Jul 19 08:32:42 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] C:\Wei\MyProjects\timetracker-completed -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fatal error by running mvn install
The artifact timetracker-common is a transitive dependency which some other dependency brings to the project automatically and now this timetracker-common dependency is missing from your project. You need to find out which dependency brings this timetracker-common to your project. If it's totally unneeded artifact, you can exclude it. Try mvn -X compile file.txt This writes the dependency tree to file.txt-file. From there you should find out which dependency brings this timetracker-common dependency to your project. To exclude this dependency in your pom, use the exclude tag in your pom.xml. I hope this helps :) -- View this message in context: http://www.nabble.com/Fatal-error-by-running-mvn-install-tf4108510s177.html#a11683511 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fatal error by running mvn install
Hi, The missing version is in /app/pom.xml under dependecy-management. The pom sort of intermixed the version in dependencyManagement and dependency. I think it should have been: dependencyManagement dependencies dependency groupId${pom.groupId}/groupId artifactIdtimetracker-common/artifactId version${pom.version}/version ... dependencies dependency groupId${pom.groupId}/groupId artifactIdtimetracker-common/artifactId /dependency After that, commons-digester will be the next error. Just add in version${pom.version}/version to it as well. It's building on my side now. Best regards, Teody Wei Chen wrote: Hi all, I downloaded a sample project from http://galaxy.andromda.org/images/stories/tutorial_java/timetracker-completed.zip;. As I want to to build the project by running mvn install, I got error as follow. This project contains several pom.xml. But none of them has an ArtifactID: timetracker-common. What could be wrong? Best regards C:\Wei\MyProjects\timetracker-completedmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included tra nsitively during the resolution process. Here is the information we do have for this artifact: o GroupID: org.andromda.timetracker o ArtifactID: timetracker-common o Version: MISSING o Type:jar [INFO] [INFO] Trace org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.andromda .timetracker:timetracker-common:null:jar}: The version cannot be empty. at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArt ifact.java:147) at org.apache.maven.artifact.DefaultArtifact.init(DefaultArtifact.java :122) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifa ct(DefaultArtifactFactory.java:158) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDepend encyArtifact(DefaultArtifactFactory.java:58) at org.apache.maven.project.DefaultMavenProjectBuilder.createManagedVers ionMap(DefaultMavenProjectBuilder.java:424) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:850) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Jul 19 08:32:42 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] C:\Wei\MyProjects\timetracker-completed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fatal error by running mvn install
Hi again, My bad, it seems to be that there's no 1.0-SNAPSHOT version of commons-digester in any of the repositories. I had a successful build using 1.7 though. Regards, Teody Wei Chen wrote: Hi all, I downloaded a sample project from http://galaxy.andromda.org/images/stories/tutorial_java/timetracker-completed.zip;. As I want to to build the project by running mvn install, I got error as follow. This project contains several pom.xml. But none of them has an ArtifactID: timetracker-common. What could be wrong? Best regards C:\Wei\MyProjects\timetracker-completedmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included tra nsitively during the resolution process. Here is the information we do have for this artifact: o GroupID: org.andromda.timetracker o ArtifactID: timetracker-common o Version: MISSING o Type:jar [INFO] [INFO] Trace org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.andromda .timetracker:timetracker-common:null:jar}: The version cannot be empty. at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArt ifact.java:147) at org.apache.maven.artifact.DefaultArtifact.init(DefaultArtifact.java :122) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifa ct(DefaultArtifactFactory.java:158) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDepend encyArtifact(DefaultArtifactFactory.java:58) at org.apache.maven.project.DefaultMavenProjectBuilder.createManagedVers ionMap(DefaultMavenProjectBuilder.java:424) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:850) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Jul 19 08:32:42 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] C:\Wei\MyProjects\timetracker-completed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fatal error by running mvn install
Many thanks! :-) Original-Nachricht Datum: Thu, 19 Jul 2007 15:40:52 +0800 Von: Teody Cue Jr. [EMAIL PROTECTED] An: Maven Users List users@maven.apache.org Betreff: Re: Fatal error by running mvn install Hi again, My bad, it seems to be that there's no 1.0-SNAPSHOT version of commons-digester in any of the repositories. I had a successful build using 1.7 though. Regards, Teody Wei Chen wrote: Hi all, I downloaded a sample project from http://galaxy.andromda.org/images/stories/tutorial_java/timetracker-completed.zip;. As I want to to build the project by running mvn install, I got error as follow. This project contains several pom.xml. But none of them has an ArtifactID: timetracker-common. What could be wrong? Best regards C:\Wei\MyProjects\timetracker-completedmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included tra nsitively during the resolution process. Here is the information we do have for this artifact: o GroupID: org.andromda.timetracker o ArtifactID: timetracker-common o Version: MISSING o Type:jar [INFO] [INFO] Trace org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.andromda .timetracker:timetracker-common:null:jar}: The version cannot be empty. at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArt ifact.java:147) at org.apache.maven.artifact.DefaultArtifact.init(DefaultArtifact.java :122) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifa ct(DefaultArtifactFactory.java:158) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDepend encyArtifact(DefaultArtifactFactory.java:58) at org.apache.maven.project.DefaultMavenProjectBuilder.createManagedVers ionMap(DefaultMavenProjectBuilder.java:424) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:850) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Jul 19 08:32:42 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] C:\Wei\MyProjects\timetracker-completed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fatal error by running mvn install
This makes sense -- SNAPSHOT builds aren't deployed to the normal places. You'd need to add a specific repo that contained Snapshots if you wanted to add a dependency on commons-digester 1.0-SNAPSHOT. Just setting the version to 1.7 as you mentioned should be fine. Wayne On 7/19/07, Teody Cue Jr. [EMAIL PROTECTED] wrote: Hi again, My bad, it seems to be that there's no 1.0-SNAPSHOT version of commons-digester in any of the repositories. I had a successful build using 1.7 though. Regards, Teody Wei Chen wrote: Hi all, I downloaded a sample project from http://galaxy.andromda.org/images/stories/tutorial_java/timetracker-completed.zip;. As I want to to build the project by running mvn install, I got error as follow. This project contains several pom.xml. But none of them has an ArtifactID: timetracker-common. What could be wrong? Best regards C:\Wei\MyProjects\timetracker-completedmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] An invalid artifact was detected. This artifact might be in your project's POM, or it might have been included tra nsitively during the resolution process. Here is the information we do have for this artifact: o GroupID: org.andromda.timetracker o ArtifactID: timetracker-common o Version: MISSING o Type:jar [INFO] [INFO] Trace org.apache.maven.artifact.InvalidArtifactRTException: For artifact {org.andromda .timetracker:timetracker-common:null:jar}: The version cannot be empty. at org.apache.maven.artifact.DefaultArtifact.validateIdentity(DefaultArt ifact.java:147) at org.apache.maven.artifact.DefaultArtifact.init(DefaultArtifact.java :122) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifa ct(DefaultArtifactFactory.java:158) at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDepend encyArtifact(DefaultArtifactFactory.java:58) at org.apache.maven.project.DefaultMavenProjectBuilder.createManagedVers ionMap(DefaultMavenProjectBuilder.java:424) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:850) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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) [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu Jul 19 08:32:42 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] C:\Wei\MyProjects\timetracker-completed - 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]
Re: Error in running mvn
I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8380081 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
My mistake. I just realized that I installed maven in /usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven- 2.0.4. That should be the problem. Sorry about that and thanks for your time. 2007/1/16, franz see [EMAIL PROTECTED]: Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com
Error in running mvn
Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj
Re: Error in running mvn
you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj
m2 Getting error while running mvn install.. Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2
Hi Everyone, I am running mvn install command and I getting this error with the build. Is this a bug in maven or some problem with the repository. [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: null:plexus-compiler-api:jar:1.5.2 Reason: Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2 [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact ' org.codehaus.plexus:plexus-compiler-api:jar': Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) 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.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.codehaus.plexus:plexus-compiler-api:jar': Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse( DefaultArtifactCollector.java:297) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect( DefaultArtifactCollector.java(Compiled Code)) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete (DefaultPluginManager.java:608) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo( DefaultPluginManager.java:519) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:390) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 17 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact ' org.codehaus.plexus:plexus-compiler-api:jar': Cannot find parent: org.codehaus.plexus:plexus-compiler for project:
Re: m2 Getting error while running mvn install.. Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2
Using SuSe 9 Linux for build the maven. My quess, there is something wrong with this pom.xml file in 1.5.2 version of plexus compiler, it could be having some special characters... Thanks Gautham Pamu On 4/5/06, Gautham Pamu [EMAIL PROTECTED] wrote: Hi Everyone, I am running mvn install command and I getting this error with the build. Is this a bug in maven or some problem with the repository. [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: null:plexus-compiler-api:jar:1.5.2 Reason: Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2 [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get dependency information: Unable to read the metadata file for artifact ' org.codehaus.plexus:plexus-compiler-api:jar': Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar:1.5.2 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2 from the specified remote repositories: central (http://repo1.maven.org/maven2 ), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2 ) Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java :551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java :454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments ( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) 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.artifact.resolver.ArtifactResolutionException: Unable to get dependency information: Unable to read the metadata file for artifact 'org.codehaus.plexus:plexus-compiler-api:jar': Cannot find parent: org.codehaus.plexus:plexus-compiler for project: null:plexus-compiler-api:jar: 1.5.2 org.codehaus.plexus:plexus-compiler-api:jar:1.5.2 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots ( http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2 ) Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1 at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse( DefaultArtifactCollector.java :297) at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect( DefaultArtifactCollector.java(Compiled Code)) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively( DefaultArtifactResolver.java:223) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively( DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete (DefaultPluginManager.java:608) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo( DefaultPluginManager.java:519) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:390) at