[ http://jira.codehaus.org/browse/MNGECLIPSE-188?page=comments#action_73201 
] 
            
Eugene Kuleshov commented on MNGECLIPSE-188:
--------------------------------------------

Please check that you running Maven with JDK and JRE.

> [ERROR] mojo-execute : compiler:compile 
> ----------------------------------------
>
>                 Key: MNGECLIPSE-188
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-188
>             Project: Maven 2.x Extension for Eclipse
>          Issue Type: Bug
>          Components: Maven Launcher, POM Editor
>    Affects Versions: 0.0.5
>         Environment: windows xp, eclipse 3.2, jdk 1.5_05
>            Reporter: Stefaan Delanghe
>         Assigned To: Eugene Kuleshov
>            Priority: Blocker
>         Attachments: startup.zip
>
>
> After launching mvn clean install on this pom file i get this error message. 
> I looked at the forums before posting this issue, but it seems the problem is 
> not
> related to that. I could launched another pom file which only varies in 
> depencies and project defintion and that works just fine.
> Could the problem be in my pom file definition or am i missing something 
> else? 
> WARN] Unable to get resource from repository central 
> (http://repo1.maven.org/maven2)
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building backend
> [INFO]    task-segment: [clean, install]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] clean:clean
> [INFO] Deleting directory 
> D:\Development\workspace\Start\startup\backend\target
> [INFO] Deleting directory 
> D:\Development\workspace\Start\startup\backend\target\classes
> [INFO] Deleting directory 
> D:\Development\workspace\Start\startup\backend\target\test-classes
> [INFO] resources:resources
> [INFO] Using default encoding to copy filtered resources.
> [INFO] compiler:compile
> Compiling 10 source files to 
> D:\Development\workspace\Start\startup\backend\target\classes
> [ERROR] mojo-execute : compiler:compile
> Diagnosis: Compilation failure
> FATAL ERROR: Error executing Maven for a project
> [ERROR] project-execute : visionit:backend:jar:0.1 (  task-segment: [clean, 
> install] )
> 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:552)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>       at 
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:472)
>       at 
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:413)
>       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:505)
>       at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>       ... 8 more
> Here is my pom file that gives this error on execution of mvn clean install:
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>visionit</groupId>
>       <artifactId>backend</artifactId>
>       <packaging>jar</packaging>
>       <version>0.1</version>
>       <name>backend</name>
>       <description>
>               the backend development of the application
>       </description>
>       <dependencies>
>               <dependency>
>                       <groupId>org.springframework</groupId>
>                       <artifactId>spring</artifactId>
>                       <version>1.2.8</version>
>                       <scope>test</scope>
>               </dependency>
>               <dependency>
>                       <groupId>org.hibernate</groupId>
>                       <artifactId>hibernate</artifactId>
>                       <version>3.1.3</version>
>                       <scope>test</scope>
>               </dependency>
>       </dependencies>
>       <build>
>               <sourceDirectory>src/main/java</sourceDirectory>
>               <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
>               <testSourceDirectory>src/test/java</testSourceDirectory>
>               <directory>target</directory>
>               <outputDirectory>target/classes</outputDirectory>
>               <testOutputDirectory>target/test-classes</testOutputDirectory>
>               <finalName>${artifactId}-${version}</finalName>
>               <resources>
>                       <resource>
>                               <directory>src/main/resources</directory>
>                       </resource>
>               </resources>
>               <testResources>
>                       <testResource>
>                               <directory>src/test/resources</directory>
>                       </testResource>
>               </testResources>
>               <defaultGoal>compile</defaultGoal>
>               <extensions>
>                       <extension>
>                               <groupId>visionit</groupId>
>                               <artifactId>utils</artifactId>
>                               <version>0.1</version>
>                       </extension>
>               </extensions>
>               <plugins>
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-compiler-plugin</artifactId>
>                               <configuration>
>                                       <source>1.5</source>
>                                       <target>1.5</target>
>                               </configuration>
>                       </plugin>
>                       <plugin>
>                               <artifactId>maven-surefire-plugin</artifactId>
>                               <configuration>
>                                       <skip>true</skip>
>                               </configuration>
>                       </plugin>
>               </plugins>
>       </build>
> </project>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to