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-completed>mvn 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.(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: 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 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-completed>mvn 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.(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
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-completed>mvn 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.(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, The missing version is in /app/pom.xml under . The pom sort of intermixed the in and . I think it should have been: ${pom.groupId} timetracker-common ${pom.version} ... ${pom.groupId} timetracker-common After that, commons-digester will be the next error. Just add in ${pom.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-completed>mvn 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.(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
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]
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-completed>mvn 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.(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]