cescoffier / maven-play2-plugin

A Maven Plugin to build Play2 applications
Apache License 2.0
49 stars 41 forks source link

Build success even on compile error #44

Open allenn opened 11 years ago

allenn commented 11 years ago

The build status is success even if the compile java code error on windows.

my plugin configuration is following:

<build>
        <sourceDirectory>app</sourceDirectory>
        <testSourceDirectory>test</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.nanoko.playframework</groupId>
                <artifactId>play2-maven-plugin</artifactId>
                <version>1.2.2</version>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <phase>process-resources</phase>
                    </execution>
                    <execution>
                        <id>play-compile</id>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <phase>compile</phase>
                    </execution>
                </executions>
            </plugin>
......

another build step

</build>

I got this:

[info] Compiling 156 Scala sources and 479 Java sources to E:\workspaces\nprs_DEV\nprs\presentation\web\target\scala-2.10\classes..
[error] xxx.java
[error] 锟斤拷牛锟?锟斤拷锟斤拷 xxx(byte[],int[])
[error] 位锟矫o拷 锟接匡拷 xxx.xxx.xxx.XXX
[error]         String xxx= xxx.xxx().xxx(token, reportIds);
[error]                                                                            ^
[error] 注锟解:某些锟斤拷锟斤拷锟侥硷拷使锟斤拷锟斤拷未锟斤拷锟斤拷锟津不帮拷全锟侥诧拷锟斤拷锟斤拷
[error] 注锟解:要锟剿斤拷锟斤拷细锟斤拷息锟斤拷锟斤拷使锟斤拷 -Xlint:unchecked 锟斤拷锟铰憋拷锟诫。
[error] 1 锟斤拷锟斤拷
[error] (compile:compile) javac returned nonzero exit code
[error] Total time: 140 s, completed Apr 19, 2013 11:25:09 AM

......

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9:05.456s
[INFO] Finished at: Fri Apr 19 11:27:55 CST 2013
[INFO] Final Memory: 23M/118M
[INFO] ------------------------------------------------------------------------