久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <tfoot id='B9Dg2'></tfoot>
    1. <legend id='B9Dg2'><style id='B9Dg2'><dir id='B9Dg2'><q id='B9Dg2'></q></dir></style></legend>

      <small id='B9Dg2'></small><noframes id='B9Dg2'>

      <i id='B9Dg2'><tr id='B9Dg2'><dt id='B9Dg2'><q id='B9Dg2'><span id='B9Dg2'><b id='B9Dg2'><form id='B9Dg2'><ins id='B9Dg2'></ins><ul id='B9Dg2'></ul><sub id='B9Dg2'></sub></form><legend id='B9Dg2'></legend><bdo id='B9Dg2'><pre id='B9Dg2'><center id='B9Dg2'></center></pre></bdo></b><th id='B9Dg2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='B9Dg2'><tfoot id='B9Dg2'></tfoot><dl id='B9Dg2'><fieldset id='B9Dg2'></fieldset></dl></div>
        <bdo id='B9Dg2'></bdo><ul id='B9Dg2'></ul>

      Maven:在不同的源代碼級別上編譯和測試

      Maven: compiling and testing on different source levels(Maven:在不同的源代碼級別上編譯和測試)
        1. <tfoot id='9cdFI'></tfoot>
            <bdo id='9cdFI'></bdo><ul id='9cdFI'></ul>

            <small id='9cdFI'></small><noframes id='9cdFI'>

                <tbody id='9cdFI'></tbody>

            • <legend id='9cdFI'><style id='9cdFI'><dir id='9cdFI'><q id='9cdFI'></q></dir></style></legend>

                <i id='9cdFI'><tr id='9cdFI'><dt id='9cdFI'><q id='9cdFI'><span id='9cdFI'><b id='9cdFI'><form id='9cdFI'><ins id='9cdFI'></ins><ul id='9cdFI'></ul><sub id='9cdFI'></sub></form><legend id='9cdFI'></legend><bdo id='9cdFI'><pre id='9cdFI'><center id='9cdFI'></center></pre></bdo></b><th id='9cdFI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9cdFI'><tfoot id='9cdFI'></tfoot><dl id='9cdFI'><fieldset id='9cdFI'></fieldset></dl></div>
                本文介紹了Maven:在不同的源代碼級別上編譯和測試的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我目前正在開發一個將在嵌入式設備上運行的項目.該設備運行 Java ME JRE(相當于 Java 1.4).

                I am currently working on a project which will run on an embedded device. The device runs a Java ME JRE (comparable to Java 1.4).

                因為這個 maven 被配置為編譯為 source &目標等級 1.4.

                Because of this maven is configured to compile for source & target level 1.4.

                是否可以在不同的源/目標級別上運行 Maven 測試階段?因為這樣我可以使用 Mockito 進行單元測試.

                Is it possible to run the maven test phase on a different source/target level? Because this way I could use Mockito for unit-testing.

                推薦答案

                編譯和testCompile maven 編譯器插件 的目標.您可以通過在 pom 中定義屬性來更改設置:

                The source and target versions can be set separately for the compile and testCompile goals of the maven compiler plugin. You can change the settings either by defining properties in your pom:

                <properties>
                    <maven.compiler.source>1.4</maven.compiler.source>
                    <maven.compiler.target>1.4</maven.compiler.target>
                    <maven.compiler.testSource>1.5</maven.compiler.testSource>
                    <maven.compiler.testTarget>1.5</maven.compiler.testTarget>
                </properties>
                

                或者通過編譯器插件的顯式配置:

                Or by explicit configuration of the compiler plugin:

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.4</version>
                    <configuration>
                        <source>1.4</source>
                        <target>1.4</target>
                        <testSource>1.5</testSource>
                        <testTarget>1.5</testTarget>
                    </configuration>
                </plugin>
                

                這篇關于Maven:在不同的源代碼級別上編譯和測試的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                How to convert Integer to int?(如何將整數轉換為整數?)
                How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                Inconsistent behavior on java#39;s ==(java的行為不一致==)
                Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

                    <legend id='9vJ4c'><style id='9vJ4c'><dir id='9vJ4c'><q id='9vJ4c'></q></dir></style></legend>

                    <small id='9vJ4c'></small><noframes id='9vJ4c'>

                    <tfoot id='9vJ4c'></tfoot>
                        <bdo id='9vJ4c'></bdo><ul id='9vJ4c'></ul>
                            <tbody id='9vJ4c'></tbody>
                          <i id='9vJ4c'><tr id='9vJ4c'><dt id='9vJ4c'><q id='9vJ4c'><span id='9vJ4c'><b id='9vJ4c'><form id='9vJ4c'><ins id='9vJ4c'></ins><ul id='9vJ4c'></ul><sub id='9vJ4c'></sub></form><legend id='9vJ4c'></legend><bdo id='9vJ4c'><pre id='9vJ4c'><center id='9vJ4c'></center></pre></bdo></b><th id='9vJ4c'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9vJ4c'><tfoot id='9vJ4c'></tfoot><dl id='9vJ4c'><fieldset id='9vJ4c'></fieldset></dl></div>
                        • 主站蜘蛛池模板: 超碰在线网站 | 97人人澡人人爽91综合色 | 欧美精品一区二区免费 | 成人精品一区二区 | 91看片免费版 | 亚洲一区在线日韩在线深爱 | 欧美一区二区三区四区视频 | 久久九九色 | 精品一级 | 久久久国产精品视频 | 中文字幕亚洲精品 | 中文字幕在线看人 | 亚洲九色 | av中文字幕网站 | 欧美亚洲综合久久 | 欧美日韩精品一区 | 日一区二区三区 | 九九热精品在线 | 最新中文字幕在线播放 | 美女爽到呻吟久久久久 | 成人午夜在线 | 美女天天操 | av资源网站 | 99免费在线视频 | 成人免费视频久久 | 欧美一区二区三区视频在线播放 | 亚洲影音 | 亚洲精品一区二三区不卡 | 亚洲午夜电影 | 久久中文字幕一区 | 久草免费视| 成人精品网 | 综合久久99 | 亚洲精品一区二区三区 | 久久视频精品 | 日韩精品视频一区二区三区 | 欧洲亚洲精品久久久久 | 精品久久九 | 久久精品一区 | 午夜视频一区 | 国产精品视频播放 |