Eclipse does "things" for you automatically that Maven will not do unless told specifically. So check your dependencies etc.
Perhaps Nawfel has some more ideas. Wayne PS- Please don't email me things like this directly, thanks. On 4/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi, I'm writing this email because I have the same problem. Is there any solution for it? My project compiles in eclipse but with maven2 gives me compilation errors. If you can give me some ideas what can be the reason I would be appreciated. Thanks in advance. Greg Wayne Fay wrote: > > Please show us the relevant portions of your pom. > > Wayne > > On 4/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hi maveners, >> I've added an external tool compile (the same problem with >> compiler:compile) >> >> when I run it I get *ONLY* this : >> >> WARN] While downloading xml-apis:xml-apis:2.0.2 >> This artifact has been relocated to xml-apis:xml-apis:1.0.b2. >> >> >> [WARN] While downloading jta:jta:1.0.1B >> This artifact has been relocated to javax.transaction:jta:1.0.1B. >> >> >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Building Unnamed - com:AstreeTutelec:jar:1.3 >> [INFO] task-segment: [compiler:compile] >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Searching repository for plugin with prefix: 'compiler'. >> [INFO] org.apache.maven.plugins: checking for updates from central >> [INFO] org.codehaus.mojo: checking for updates from central >> [INFO] compiler:compile >> [INFO] Compiling 523 source files to >> C:\works\workspaceM2\TutelecOJV-v1.3\target\classes >> [ERROR] mojo-execute : compiler:compile >> Diagnosis: Compilation failure >> FATAL ERROR: Error executing Maven for a project >> [ERROR] project-execute : com:AstreeTutelec:jar:1.3 ( task-segment: >> [compiler:compile] ) >> Diagnosis: Compilation failure >> FATAL ERROR: Error executing Maven for a project >> org.apache.maven.BuildFailureException: Compilation failure >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) >> 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.embedder.MavenEmbedder.execute(MavenEmbedder.java:441) >> at >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382) >> at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68) >> Caused by: org.apache.maven.plugin.CompilationFailureException: >> Compilation failure >> at >> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) >> at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) >> at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) >> ... 8 more >> >> >> where's the error ? >> >> please help >> >> Thanks >> Nawfel >> >> >> >> >> >> ___________________________________________________________________________ >> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos >> questions ! >> Profitez des connaissances, des opinions et des expériences des >> internautes sur Yahoo! Questions/Réponses >> http://fr.answers.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Quoted from: http://www.nabble.com/-m2eclipse-user--Where%27s-the-error---tf3647327s177.html#a10187502
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
