eclipse tomcat maven

jdk jre eclipse 略過css

下載maven和tomcathtml

上apache官網下載maven:http://maven.apache.org/download.cgi。java

上apache官網下載tomcat:http://tomcat.apache.org/。node

window-》prefrences-》maven-》user settinggit

window-》prefrences-》maven-》installationsangularjs

安裝eclipse maven插件 m2eclipsegithub

http://download.eclipse.org/technology/m2e/releasesweb

 

爲eclipse javaee 安裝tomcat 插件ajax

http://www.eclipsetotale.com/tomcatPlugin.html  (把解壓出來的com.sysdeo.eclipse.tomcat_3.3.1.jar 放入eclipse  的plugins目錄下 ),此插件最高支持tomcat7 不支持tomcat 8. express

在eclipse中進行配置tomcat ,在window->preferences->tomcat->tomcat home (爲CATALINA_HOME的目錄) 及 context declaration mode 選擇server.xml .

 

啓動tomcat,而後右鍵項目 run as-》run configrations:

幾個經常使用的Goal

 

命令 描述
tomcat:deploy 部署一個web war包
tomcat:reload 從新加載web war包

tomcat:start

啓動tomcat

tomcat:stop

中止tomcat

tomcat:undeploy

中止一個war包
tomcat:run 啓動嵌入式tomcat ,並運行當前項目

Goals項輸入:package tomcat:redeploy       -Dmaven.tomcat.port=8080 tomcat:run  

tomcat:run -Dmaven.tomcat.uriEncoding=UTF-8 -Dmaven.tomcat.path=/ -Dmaven.tomcat.port=8080

若是preferenc的tomcat中未指定已經安裝的tomcat版本,就會報錯沒有這個內嵌的tomcat指令。即便安裝了tomcat7後選擇7的單選會報錯沒有這個目錄,也不要理財。另外pom.xml中有goal標籤貌似不起做用

<plugin>
<executions>
<execution><goals>
<goal>run</goal>
</goals></execution>
</executions>
</plugin>

卻仍然有可能報這個工程是沒有goal

http://stackoverflow.com/questions/12948723/maven-build-goal-need-to-specify

9vote

In the goal field on Run Configurations dialog (Main tab), you can input any of the following Maven's phases:

  1. validate – validate the project is correct and all necessary information is available
  2. compile – compile the source code of the project
  3. test – test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed package – take the compiled code and package it in its distributable format, such as a JAR.
  4. integration-test – process and deploy the package if necessary into an environment where integration tests can be run
  5. verify – run any checks to verify the package is valid and meets quality criteria
  6. install – install the package into the local repository, for use as a dependency in other projects locally
  7. deploy – done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

Maven Runtime選擇咱們本身的maven

最後就能夠run了

若是報錯

Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.

添加M2_HOME的環境變量,而後Preference->Java->Installed JREs->Edit 選擇一個jdk,

添加  -Dmaven.multiModuleProjectDirectory=$M2_HOME

這裏有一個坑:

M2_HOME 最後到path中是%M2_HOME%/bin 可見它是安裝的原始目錄帶有bin路徑

而MVN_HOME一般都是指向{user.home}\AppData\Roaming\nvm

這二者都須要在path中配置

若是遇到報錯:

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 
or one of its dependencies could not be resolved: Failed to collect dependencies for
org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3

檢查{user.home}/.m2/repository/org/apache/maven/plugins/maven- resources-plugin/{版本數字}下有沒有現年供應版本的jar,

若是沒有,在項目的 pom.xml 文件中新增一個依賴。
xml配置以下:

<dependency><groupId>org.apache.maven.plugins</groupId> 
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version></dependency>

在該項目的主文件夾下運行運行 mvn install ,即和 pom.xml 同目錄來安裝jar

其實不少時候即便有這個文件,也配置了xml,仍然會報錯,照這個步驟逐一排查:

 

0. Check the maven repositiory server is up

 

1. Check Proxy is set up and working

 

First I thought it was a proxy problem, I made sure that maven settings.xml contained the proxy settings:

<proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>optional-proxyuser</username> <password>optional-proxypass</password> <host>proxy.host.net</host> <port>80</port> <nonProxyHosts>local.net|some.host.com</nonProxyHosts> </proxy>

 

and checked that the proxy is working by trying to telnet to it:

 

telnet [proxy] [port number]

 

2. Check not Eclipse Issue

 

ran 'mvn compile' at command line level outside of eclipse - same issue.

 

If 'mvn compile' worked. But it doesn't work using the maven plugin in eclipse, see Maven plugin not using eclipse's proxy settings

 

3. Check not Cache Issue Deleted all contents in my local maven repository. (Default location: ~/.m2/repository) And then reran maven - same issue came up.

 

4. What worked for me

 

Automatically download & install missing plugin: By declaring the missing plugin in the POM file build section for pluginManagement Maven will automatically retrieve the required plugin. In the POM file, add this code for the version of the plugin you require:

 <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> </plugin> </plugins> </pluginManagement> </build>

 

Manually install missing plugin: I went to http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-resources-plugin/2.5 and downloaded maven-resources-plugin-2.5.jar and maven-resources-plugin-2.5.pom . Copied it directly into the maven repository into the correct folder ( ~/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.5) and reran 'mvn compile'. This solved the problem.

照着上面的清除了maven的C:\Users\{用戶}\.m2\repository 之後mvn compile就開始瘋狂下載。。

還有的說清除掉.m2\repository\org\apache\maven\plugins 之後再重啓eclipse。。

儘可能讓它不報error

 

以後xml不會帶驚歎或者叉叉了,也不報沒有plugin了,eclipse的console內剩下這些錯誤:

[ERROR] Failed to execute goal on project bosch21plus-portlet-service: Could not resolve dependencies for project rb.pt.warranty.claim:bosch21plus-portlet-service:jar:1.0.0-SNAPSHOT: Could not transfer artifact org.apache.poi:poi:jar:3.10.1 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/apache/poi/poi/3.10.1/poi-3.10.1.jar from central failed: Connection reset -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :bosch21plus-portlet-service

經常在下載的時候斷掉,通過幾回折騰,反覆的mvn compile 最終總算

mvn compile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for rb.pt.warranty.claim:bosch21plus-portlet:war:1.0.0-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ rb.pt.warranty.claim:bosch21plus-portlet${package-ext-name}:[unknown-version], F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet\pom.xml, line 12, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] bosch21plus
[INFO] bosch21plus Portlet Service
[INFO] bosch21plus Portlet
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus Portlet Service 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/poi/poi/3.10.1/poi-3.10.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] bosch21plus ........................................ SUCCESS [  0.016 s]
[INFO] bosch21plus Portlet Service ........................ FAILURE [ 23.940 s]
[INFO] bosch21plus Portlet ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.144 s
[INFO] Finished at: 2017-02-07T15:24:19+08:00
[INFO] Final Memory: 13M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bosch21plus-portlet-service: Could not resolve dependencies for project rb.pt.warranty.claim:bosch21plus-portlet-service:jar:1.0.0-SNAPSHOT: Could not transfer artifact org.apache.poi:poi:jar:3.10.1 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/apache/poi/poi/3.10.1/poi-3.10.1.jar from central failed: Connection reset -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :bosch21plus-portlet-service

F:\BOSCH\_Angular1.0\bosch21plus_source>mvn <goals> -rf :bosch21plus-portlet-service
系統找不到指定的文件。

F:\BOSCH\_Angular1.0\bosch21plus_source>mvn compile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for rb.pt.warranty.claim:bosch21plus-portlet:war:1.0.0-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ rb.pt.warranty.claim:bosch21plus-portlet${package-ext-name}:[unknown-version], F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet\pom.xml, line 12, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] bosch21plus
[INFO] bosch21plus Portlet Service
[INFO] bosch21plus Portlet
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus Portlet Service 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/poi/poi/3.10.1/poi-3.10.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/poi/poi/3.10.1/poi-3.10.1.jar (1904 KB at 13.9 KB/sec)
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ bosch21plus-portlet-service ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom (2 KB at 0.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom (9 KB at 4.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom (15 KB at 1.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.pom (3 KB at 3.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom (2 KB at 4.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom (3 KB at 4.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom (2 KB at 0.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom (3 KB at 2.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom (2 KB at 3.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.pom (2 KB at 2.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.pom (2 KB at 3.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.pom (7 KB at 7.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.pom (2 KB at 3.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.pom (2 KB at 1.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting/2.0.6/maven-reporting-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting/2.0.6/maven-reporting-2.0.6.pom (2 KB at 3.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.pom (424 B at 0.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia/1.0-alpha-7/doxia-1.0-alpha-7.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia/1.0-alpha-7/doxia-1.0-alpha-7.pom (4 KB at 4.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.pom (2 KB at 3.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.pom
Downloaded: https://repo.maven.apache.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.pom (3 KB at 1.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.pom (2 KB at 3.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.pom (2 KB at 2.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.pom (4 KB at 4.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.6/plexus-2.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/2.0.6/plexus-2.0.6.pom (17 KB at 9.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.pom (6 KB at 6.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/16/maven-shared-components-16.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/16/maven-shared-components-16.pom (9 KB at 8.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interpolation/1.12/plexus-interpolation-1.12.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interpolation/1.12/plexus-interpolation-1.12.pom (889 B at 1.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.pom (3 KB at 3.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/10/spice-parent-10.pom
Downloaded: https://repo.maven.apache.org/maven2/org/sonatype/spice/spice-parent/10/spice-parent-10.pom (3 KB at 2.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/3/forge-parent-3.pom
Downloaded: https://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/3/forge-parent-3.pom (5 KB at 1.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.pom (8 KB at 3.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.pom (890 B at 1.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.15/plexus-components-1.1.15.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.15/plexus-components-1.1.15.pom (3 KB at 1.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.jar (13 KB at 4.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.jar (56 KB at 19.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.jar (114 KB at 36.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.jar (35 KB at 9.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar (10 KB at 2.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar (6 KB at 1.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.jar (24 KB at 5.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.6/maven-plugin-registry-2.0.6.jar (29 KB at 6.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.jar (21 KB at 4.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.jar (14 KB at 2.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.jar (149 KB at 29.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.jar (37 KB at 6.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/commons-cli/commons-cli/1.0/commons-cli-1.0.jar (30 KB at 5.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.jar (86 KB at 14.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar (14 KB at 2.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.jar (11 KB at 1.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.jar (48 KB at 6.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar
二月 07, 2017 3:34:32 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo.maven.apache.org:443: Connection reset
二月 07, 2017 3:34:32 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: Retrying request to {s}->https://repo.maven.apache.org:443
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar (85 KB at 8.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-interpolation/1.13/plexus-interpolation-1.13.jar (60 KB at 5.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0/maven-filtering-1.0.jar (42 KB at 3.7 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar (218 KB at 6.7 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] bosch21plus ........................................ SUCCESS [  0.015 s]
[INFO] bosch21plus Portlet Service ........................ FAILURE [03:38 min]
[INFO] bosch21plus Portlet ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:39 min
[INFO] Finished at: 2017-02-07T15:34:57+08:00
[INFO] Final Memory: 15M/223M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project bosch21plus-portlet-service: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: The following artifacts could not be resolved: junit:junit:jar:3.8.1, org.sonatype.plexus:plexus-build-api:jar:0.0.4: Could not transfer artifact junit:junit:jar:3.8.1 from/to central (https://repo.maven.apache.org/maven2): GET request of: junit/junit/3.8.1/junit-3.8.1.jar from central failed: Connection reset -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :bosch21plus-portlet-service

F:\BOSCH\_Angular1.0\bosch21plus_source>mvn compile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for rb.pt.warranty.claim:bosch21plus-portlet:war:1.0.0-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ rb.pt.warranty.claim:bosch21plus-portlet${package-ext-name}:[unknown-version], F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet\pom.xml, line 12, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] bosch21plus
[INFO] bosch21plus Portlet Service
[INFO] bosch21plus Portlet
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus Portlet Service 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] bosch21plus ........................................ SUCCESS [  0.011 s]
[INFO] bosch21plus Portlet Service ........................ FAILURE [  1.091 s]
[INFO] bosch21plus Portlet ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.311 s
[INFO] Finished at: 2017-02-07T15:35:44+08:00
[INFO] Final Memory: 7M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): handshake alert:  unrecognized_name -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

F:\BOSCH\_Angular1.0\bosch21plus_source>mvn compile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for rb.pt.warranty.claim:bosch21plus-portlet:war:1.0.0-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ rb.pt.warranty.claim:bosch21plus-portlet${package-ext-name}:[unknown-version], F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet\pom.xml, line 12, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] bosch21plus
[INFO] bosch21plus Portlet Service
[INFO] bosch21plus Portlet
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus Portlet Service 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom (7 KB at 1.2 KB/sec)
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ bosch21plus-portlet-service ---
Downloading: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
Downloading: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar (7 KB at 6.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar (119 KB at 68.3 KB/sec)
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ bosch21plus-portlet-service ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.pom (2 KB at 0.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.9/maven-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.9/maven-2.0.9.pom (19 KB at 19.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/8/maven-parent-8.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/8/maven-parent-8.pom (24 KB at 15.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.pom (2 KB at 0.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.pom (3 KB at 3.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.9/maven-core-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.9/maven-core-2.0.9.pom (8 KB at 2.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.pom (3 KB at 0.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.pom (4 KB at 2.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.9/maven-plugin-parameter-documenter-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.9/maven-plugin-parameter-documenter-2.0.9.pom (2 KB at 3.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.pom (3 KB at 3.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metadata-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metadata-2.0.9.pom (2 KB at 3.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.9/maven-error-diagnostics-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.9/maven-error-diagnostics-2.0.9.pom (2 KB at 1.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.pom (3 KB at 4.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.pom (3 KB at 2.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.pom (2 KB at 3.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.9/maven-plugin-descriptor-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.9/maven-plugin-descriptor-2.0.9.pom (3 KB at 2.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.9/maven-monitor-2.0.9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.9/maven-monitor-2.0.9.pom (2 KB at 1.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.pom (4 KB at 3.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.1/maven-shared-utils-0.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.1/maven-shared-utils-0.1.pom (4 KB at 7.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/18/maven-shared-components-18.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/18/maven-shared-components-18.pom (5 KB at 8.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.pom (965 B at 1.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.pom (5 KB at 8.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/19/maven-shared-components-19.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/19/maven-shared-components-19.pom (7 KB at 5.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.pom (865 B at 0.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/2.2/plexus-compiler-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler/2.2/plexus-compiler-2.2.pom (4 KB at 6.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.3.1/plexus-components-1.3.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.3.1/plexus-components-1.3.1.pom (3 KB at 5.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.pom (690 B at 1.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.pom (769 B at 1.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/2.2/plexus-compilers-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compilers/2.2/plexus-compilers-2.2.pom (2 KB at 2.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.jar
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.9/maven-core-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.9/maven-settings-2.0.9.jar (48 KB at 8.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.9/maven-plugin-parameter-documenter-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-parameter-documenter/2.0.9/maven-plugin-parameter-documenter-2.0.9.jar (21 KB at 2.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.9/maven-plugin-api-2.0.9.jar (13 KB at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.9/maven-artifact-2.0.9.jar (87 KB at 10.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metadata-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar (206 KB at 24.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.9/maven-error-diagnostics-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-error-diagnostics/2.0.9/maven-error-diagnostics-2.0.9.jar (14 KB at 1.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.9/maven-repository-metadata-2.0.9.jar (24 KB at 2.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-registry/2.0.9/maven-plugin-registry-2.0.9.jar (29 KB at 2.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.9/maven-plugin-descriptor-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.9/maven-project-2.0.9.jar (119 KB at 7.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.9/maven-profile-2.0.9.jar (35 KB at 2.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.9/maven-monitor-2.0.9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-monitor/2.0.9/maven-monitor-2.0.9.jar (11 KB at 0.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.9/maven-artifact-manager-2.0.9.jar (57 KB at 3.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.1/maven-shared-utils-0.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar (33 KB at 1.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-descriptor/2.0.9/maven-plugin-descriptor-2.0.9.jar (37 KB at 2.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.jar
Downloaded: https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar (32 KB at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.jar (14 KB at 0.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/2.2/plexus-compiler-manager-2.2.jar (5 KB at 0.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.1/maven-shared-utils-0.1.jar (151 KB at 7.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-api/2.2/plexus-compiler-api-2.2.jar (25 KB at 1.3 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.2/plexus-compiler-javac-2.2.jar (19 KB at 0.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar (118 KB at 5.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.9/maven-model-2.0.9.jar (86 KB at 3.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/2.0.9/maven-core-2.0.9.jar (156 KB at 3.9 KB/sec)
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 234 source files to F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet-service\target\classes
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/TokenUtil.java:[13,16] sun.misc.BASE64Decoder是內部專用 API, 可能會在將來發行版中刪除
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/ZipUtil.java:[15,24] com.jcraft.jzlib中的com.jcraft.jzlib.ZInputStream已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/ZipUtil.java:[16,24] com.jcraft.jzlib中的com.jcraft.jzlib.ZOutputStream已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/DateUtils.java:[85,26] java.util.Date中的getDay()已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/DateUtils.java:[85,53] java.util.Date中的getDay()已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/DateUtils.java:[87,40] java.util.Date中的getDate()已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/DateUtils.java:[87,22] java.util.Date中的setDate(int)已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/TokenUtil.java:[70,9] sun.misc.BASE64Decoder是內部專用 API, 可能會在將來發行版中刪除
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/TokenUtil.java:[70,37] sun.misc.BASE64Decoder是內部專用 API, 可能會在將來發行版中刪除
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/mail/MailHelper.java:[103,39] freemarker.template.Configuration中的Configuration()已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/ZipUtil.java:[155,13] com.jcraft.jzlib中的com.jcraft.jzlib.ZOutputStream已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/ZipUtil.java:[155,38] com.jcraft.jzlib中的com.jcraft.jzlib.ZOutputStream已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/ZipUtil.java:[180,13] com.jcraft.jzlib中的com.jcraft.jzlib.ZInputStream已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/util/ZipUtil.java:[180,36] com.jcraft.jzlib中的com.jcraft.jzlib.ZInputStream已過期
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/model/ui/UI_Claim.java: 某些輸入文件使用了未經檢查或不安全的操做。
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet-service/src/main/java/rb/pt/warranty/claim/model/ui/UI_Claim.java: 有關詳細信息, 請使用 -Xlint:unchecked 從新編譯。
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bosch21plus Portlet 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.pom
Downloaded: https://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.pom (5 KB at 3.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/javax/servlet/jsp/jsp-api/2.0/jsp-api-2.0.pom
Downloaded: https://repo.maven.apache.org/maven2/javax/servlet/jsp/jsp-api/2.0/jsp-api-2.0.pom (157 B at 0.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/nl/bitwalker/UserAgentUtils/1.2.4/UserAgentUtils-1.2.4.pom
Downloaded: https://repo.maven.apache.org/maven2/nl/bitwalker/UserAgentUtils/1.2.4/UserAgentUtils-1.2.4.pom (3 KB at 5.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.pom
Downloaded: https://repo.maven.apache.org/maven2/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.pom (10 KB at 17.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/32/commons-parent-32.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/32/commons-parent-32.pom (52 KB at 52.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commons-io-2.2.pom
Downloaded: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commons-io-2.2.pom (11 KB at 17.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/24/commons-parent-24.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/24/commons-parent-24.pom (47 KB at 52.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar
Downloading: https://repo.maven.apache.org/maven2/nl/bitwalker/UserAgentUtils/1.2.4/UserAgentUtils-1.2.4.jar
Downloading: https://repo.maven.apache.org/maven2/javax/servlet/jsp/jsp-api/2.0/jsp-api-2.0.jar
Downloading: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commons-io-2.2.jar
Downloading: https://repo.maven.apache.org/maven2/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar
Downloaded: https://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar (47 KB at 41.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.5/commons-codec-1.5.jar
Downloaded: https://repo.maven.apache.org/maven2/javax/servlet/jsp/jsp-api/2.0/jsp-api-2.0.jar (48 KB at 39.5 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/commons-fileupload/commons-fileupload/1.3.1/commons-fileupload-1.3.1.jar (68 KB at 49.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/nl/bitwalker/UserAgentUtils/1.2.4/UserAgentUtils-1.2.4.jar (24 KB at 16.8 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.5/commons-codec-1.5.jar (72 KB at 33.5 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.2/commons-io-2.2.jar (170 KB at 68.3 KB/sec)
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ bosch21plus-portlet ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO] Copying 13 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ bosch21plus-portlet ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 42 source files to F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet\target\classes
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet/src/main/java/rb/pt/warranty/claim/servlet/ErrorFileUploadtServlet.java:[6,37] org.apache.commons.fileupload中的org.apache.commons.fileupload.DiskFileUpload已過 時
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet/src/main/java/rb/pt/warranty/claim/api/impl/SupportApiImpl.java: 某些輸入文件使用了未經檢查或不安全的操做。
[WARNING] /F:/BOSCH/_Angular1.0/bosch21plus_source/bosch21plus-portlet/src/main/java/rb/pt/warranty/claim/api/impl/SupportApiImpl.java: 有關詳細信息, 請使用 -Xlint:unchecked 從新編譯。
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (compile) @ bosch21plus-portlet ---
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.pom (643 B at 1.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.4/maven-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven/2.0.4/maven-2.0.4.pom (12 KB at 23.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.pom (2 KB at 4.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.4/maven-settings-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.4/maven-settings-2.0.4.pom (2 KB at 3.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.pom (3 KB at 6.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom (767 B at 1.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.pom (2 KB at 3.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.pom (2 KB at 3.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.4/maven-artifact-manager-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.4/maven-artifact-manager-2.0.4.pom (2 KB at 3.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.4/maven-repository-metadata-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.4/maven-repository-metadata-2.0.4.pom (2 KB at 3.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.pom (765 B at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.pom (6 KB at 12.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/1.0.12/plexus-1.0.12.pom
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/1.0.12/plexus-1.0.12.pom (10 KB at 21.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.pom (3 KB at 5.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom (5 KB at 9.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom (10 KB at 20.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.4/maven-settings-2.0.4.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0.4/maven-plugin-api-2.0.4.jar (9 KB at 15.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.4/maven-artifact-manager-2.0.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-profile/2.0.4/maven-profile-2.0.4.jar (30 KB at 30.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.4/maven-repository-metadata-2.0.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/2.0.4/maven-model-2.0.4.jar (79 KB at 58.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact-manager/2.0.4/maven-artifact-manager-2.0.4.jar (48 KB at 28.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0.4/maven-repository-metadata-2.0.4.jar (20 KB at 11.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.4/maven-project-2.0.4.jar (107 KB at 59.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-settings/2.0.4/maven-settings-2.0.4.jar (43 KB at 22.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar (12 KB at 4.4 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar (191 KB at 56.1 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/maven-artifact/2.0.4/maven-artifact-2.0.4.jar (79 KB at 21.1 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.jar (1292 KB at 121.9 KB/sec)
二月 07, 2017 3:39:25 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {s}->https://repo.maven.apache.org:443: Connection reset
二月 07, 2017 3:39:25 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: Retrying request to {s}->https://repo.maven.apache.org:443
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar (245 KB at 9.7 KB/sec)
[INFO] Executing tasks
     [echo] ********************** overwrite config.js*************************
     [echo] ** copy target/classes/js to target/bosch21plus-portlet-1.0.0-SNAPSHOT/js/
     [echo] ********************** ********************************************
     [copy] Copying 3 files to F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet\target\bosch21plus-portlet-1.0.0-SNAPSHOT\js
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] bosch21plus ........................................ SUCCESS [  0.012 s]
[INFO] bosch21plus Portlet Service ........................ SUCCESS [01:38 min]
[INFO] bosch21plus Portlet ................................ SUCCESS [ 45.880 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:24 min
[INFO] Finished at: 2017-02-07T15:39:26+08:00
[INFO] Final Memory: 26M/186M
[INFO] ------------------------------------------------------------------------
成功了一次
二月 07, 2017 3:39:25 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request to {s}
->https://repo.maven.apache.org:443: Connection reset 二月 07, 2017 3:39:25 下午 org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute 信息: Retrying request to {s}->https://repo.maven.apache.org:443 Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/
plexus-utils-1.5.6.jar (245 KB at 9.7 KB/sec)
[INFO] Executing tasks [echo] ********************** overwrite config.js************************* [echo] ** copy target/classes/js to target/bosch21plus-portlet-1.0.0-SNAPSHOT/js/ [echo] ********************** ******************************************** [copy] Copying 3 files to F:\BOSCH\_Angular1.0\bosch21plus_source\bosch21plus-portlet
\target\bosch21plus-portlet-1.0.0-SNAPSHOT\js [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] bosch21plus ........................................ SUCCESS [ 0.012 s] [INFO] bosch21plus Portlet Service ........................ SUCCESS [01:38 min] [INFO] bosch21plus Portlet ................................ SUCCESS [ 45.880 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:24 min [INFO] Finished at: 2017-02-07T15:39:26+08:00 [INFO] Final Memory: 26M/186M [INFO] ------------------------------------------------------------------------

這就是不經過eclipse 編譯成功了。

而後經過eclipse仍然沒法成功build,用mvn eclipse:eclipse 命令把maven工程轉換爲兼容eclipse的java工程,又是一堆下載!斷了ctrl+c重試。。最後也是和上面同樣BUILD SUCCESS, 但其實轉不轉成java工程都同樣的,導入的時候就支持maven工程了,白作工。。熟悉了一下mvn經常使用命令而已。

此時的問題已經轉化成 如何經過Maven的Tomcat插件運行Web工程

 

若是使用tomcat7的話,則若是配置方式是在pom.xml文件中配置的話,
則必須配置tomcat7-maven-plugin,不然會BUILD FAILURE;
若是配置方式是配置maven的setting.xml文件的話,則無所謂,
<pluginGroup>org.apache.tomcat.maven</pluginGroup>這一行的做用是把全部版本的maven的tomcat插件及相關插件都下載下來了。

怎樣用命令行deploy,撇開容易出問題的eclipse

具體的使用方法:

  1. Tomcat7的用戶及權限配置:在conf目錄下,找到tomcat-users.xml,添加manager權限的用戶。這裏我把所用的權限都添加給admin用戶了,具體代碼以下:
    ?
    1
    2
    3
    4
    5
    6
    7
    < role rolename = "admin-gui" />
    < role rolename = "admin-script" />
    < role rolename = "manager-gui" />
    < role rolename = "manager-script" />
    < role rolename = "manager-jmx" />
    < role rolename = "manager-status" />
    < user username = "admin" password = "password" roles = "manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui" />
  2. Maven的Server的配置:在Maven的安裝路徑找到conf目錄下的setting.xml文件
    1
    2
    3
    4
    5
    < server >
         < id >tomcat7</ id >
         < username >admin</ username >
         < password >password</ password >
    </ server >
  3. 在Web項目的pom.xml文件的<plugins>中
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    < plugin >
         < groupId >org.apache.tomcat.maven</ groupId >
         < artifactId >tomcat7-maven-plugin</ artifactId >
         < version >2.1</ version >
         < configuration >
             <!-- 注意此處的url -->
             < url >http://localhost:8080/manager/text</ url >
             < server >tomcat7</ server > <!-- 此處的名字必須和setting.xml中配置的ID一致-->
             < path >/mavenProject</ path > <!-- 此處的名字是項目發佈的工程名-->
         </ configuration >
    </ plugin >
  4. 啓動好tomcat之後,mvn tomcat7:deploy

 

 

mvn tomcat7:deploy 

此時再有問題就不是eclipse的問題了Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4

若是jdk版本和maven指定的沒有衝突,就是plugin協調了。

跳過測試階段:


mvn package -DskipTests


臨時性跳過測試代碼的編譯:


mvn package -Dmaven.test.skip=true


maven.test.skip同時控制maven-compiler-plugin和maven-surefire-plugin兩個插件的行爲,即跳過編譯,又跳過測試。


指定測試類


mvn test -Dtest=RandomGeneratorTest
以Random開頭,Test結尾的測試類
mvn test -Dtest=Random*Test
用逗號分隔指定多個測試用例
mvn test -Dtest=ATest,BTest


指定即便沒有任何測試用例也不要報錯


test參數必須匹配至少一個測試類,不然會報錯並致使構建失敗。此時可以使用如下配置來指定即便沒有任何測試用例也不要報錯。
mvn test -Dtest -DfailIfNoTests = false


POM文件配置包含與排除測試用例


使用** / * Test.Java 來匹配全部以Tests結尾的Java類。兩個星號**用來匹配任意路徑,一個星號*用來獲取除路徑風格符外的0個或多個字符。還可以使用excludes來排除一些測試類。


[html] view plain copy
<plugin>  
    <groupId>org.apahce.maven.plugins<groupId>  
    <artifactId>maven-surefire-plugin</artifactId>  
    <version>2.5</version>  
    <configuration>  
        <includes>  
            <include>**/*Tests.java</include>  
        </includes>  
    </configuration>          
</plugin>  
deploy跳過測試

-------------------------------------------------------

另外一個grunt bower yeoman工程的配置:

安裝grunt compass sass 以後grunt build仍然會aborted

Last login: Mon Feb  6 20:57:57 on ttys000
cd /Users/narumi/Downloads/bosch-warranty-1; clear; pwd
declare -x Apple_PubSub_Socket_Render="/tmp/launch-vIBPHV/Render"
declare -x HOME="/Users/narumi"
declare -x LC_CTYPE="UTF-8"
declare -x LOGNAME="narumi"
declare -x OLDPWD
declare -x PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
declare -x PWD="/Users/narumi"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AUTH_SOCK="/tmp/launch-Y6JncK/Listeners"
declare -x TERM="xterm-256color"
declare -x TERM_PROGRAM="Apple_Terminal"
declare -x TERM_PROGRAM_VERSION="326"
declare -x TERM_SESSION_ID="471D80BD-4489-4F21-853A-C5D4AB228684"
declare -x TMPDIR="/var/folders/tb/5nk1xl310mz0bv94g_gbb2ww0000gn/T/"
declare -x USER="narumi"
declare -x __CF_USER_TEXT_ENCODING="0x1F5:0:0"
declare -x __CHECKFIX1436934="1"
Narumis-MacBook-Air:~ narumi$ cd /Users/narumi/Downloads/bosch-warranty-1; clear; pwd


/Users/narumi/Downloads/bosch-warranty-1
Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm intall -g grunt

Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
    help, help-search, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, tag, team, test, tst, un, uninstall,
    unpublish, unstar, up, update, v, version, view, whoami

npm <cmd> -h     quick help on <cmd>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    /Users/narumi/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@3.10.10 /usr/local/lib/node_modules/npm
Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm install -g grunt
/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt/bin/grunt
/usr/local/lib
└─┬ grunt@1.0.1 
  ├── coffee-script@1.10.0 
  ├─┬ dateformat@1.0.12 
  │ ├── get-stdin@4.0.1 
  │ └─┬ meow@3.7.0 
  │   ├─┬ camelcase-keys@2.1.0 
  │   │ └── camelcase@2.1.1 
  │   ├── decamelize@1.2.0 
  │   ├─┬ loud-rejection@1.6.0 
  │   │ ├─┬ currently-unhandled@0.4.1 
  │   │ │ └── array-find-index@1.0.2 
  │   │ └── signal-exit@3.0.2 
  │   ├── map-obj@1.0.1 
  │   ├── minimist@1.2.0 
  │   ├─┬ normalize-package-data@2.3.5 
  │   │ ├── hosted-git-info@2.2.0 
  │   │ ├─┬ is-builtin-module@1.0.0 
  │   │ │ └── builtin-modules@1.1.1 
  │   │ ├── semver@5.3.0 
  │   │ └─┬ validate-npm-package-license@3.0.1 
  │   │   ├─┬ spdx-correct@1.0.2 
  │   │   │ └── spdx-license-ids@1.2.2 
  │   │   └── spdx-expression-parse@1.0.4 
  │   ├── object-assign@4.1.1 
  │   ├─┬ read-pkg-up@1.0.1 
  │   │ ├─┬ find-up@1.1.2 
  │   │ │ ├── path-exists@2.1.0 
  │   │ │ └─┬ pinkie-promise@2.0.1 
  │   │ │   └── pinkie@2.0.4 
  │   │ └─┬ read-pkg@1.1.0 
  │   │   ├─┬ load-json-file@1.1.0 
  │   │   │ ├── graceful-fs@4.1.11 
  │   │   │ ├─┬ parse-json@2.2.0 
  │   │   │ │ └─┬ error-ex@1.3.0 
  │   │   │ │   └── is-arrayish@0.2.1 
  │   │   │ ├── pify@2.3.0 
  │   │   │ └─┬ strip-bom@2.0.0 
  │   │   │   └── is-utf8@0.2.1 
  │   │   └── path-type@1.1.0 
  │   ├─┬ redent@1.0.0 
  │   │ ├─┬ indent-string@2.1.0 
  │   │ │ └─┬ repeating@2.0.1 
  │   │ │   └─┬ is-finite@1.0.2 
  │   │ │     └── number-is-nan@1.0.1 
  │   │ └── strip-indent@1.0.1 
  │   └── trim-newlines@1.0.0 
  ├── eventemitter2@0.4.14 
  ├── exit@0.1.2 
  ├─┬ findup-sync@0.3.0 
  │ └── glob@5.0.15 
  ├─┬ glob@7.0.6 
  │ ├── fs.realpath@1.0.0 
  │ ├─┬ inflight@1.0.6 
  │ │ └── wrappy@1.0.2 
  │ ├── inherits@2.0.3 
  │ └── once@1.4.0 
  ├─┬ grunt-cli@1.2.0 
  │ └── resolve@1.1.7 
  ├── grunt-known-options@1.1.0 
  ├─┬ grunt-legacy-log@1.0.0 
  │ ├── colors@1.1.2 
  │ ├─┬ grunt-legacy-log-utils@1.0.0 
  │ │ ├─┬ chalk@1.1.3 
  │ │ │ ├── ansi-styles@2.2.1 
  │ │ │ ├── escape-string-regexp@1.0.5 
  │ │ │ ├─┬ has-ansi@2.0.0 
  │ │ │ │ └── ansi-regex@2.1.1 
  │ │ │ ├── strip-ansi@3.0.1 
  │ │ │ └── supports-color@2.0.0 
  │ │ └── lodash@4.3.0 
  │ ├── hooker@0.2.3 
  │ ├── lodash@3.10.1 
  │ └── underscore.string@3.2.3 
  ├─┬ grunt-legacy-util@1.0.0 
  │ ├── async@1.5.2 
  │ ├── getobject@0.1.0 
  │ ├── lodash@4.3.0 
  │ └─┬ which@1.2.12 
  │   └── isexe@1.1.2 
  ├── iconv-lite@0.4.15 
  ├─┬ js-yaml@3.5.5 
  │ ├─┬ argparse@1.0.9 
  │ │ └── sprintf-js@1.0.3 
  │ └── esprima@2.7.3 
  ├─┬ minimatch@3.0.3 
  │ └─┬ brace-expansion@1.1.6 
  │   ├── balanced-match@0.4.2 
  │   └── concat-map@0.0.1 
  ├─┬ nopt@3.0.6 
  │ └── abbrev@1.0.9 
  ├── path-is-absolute@1.0.1 
  └── rimraf@2.2.8 

Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm install -g compass
/usr/local/lib
└── compass@0.1.1 

Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm install -g sass
npm WARN excluding symbolic link index.js -> lib/sass.js
npm WARN excluding symbolic link lib/index.js -> sass.js
/usr/local/lib
└── sass@0.5.0 

Narumis-MacBook-Air:bosch-warranty-1 narumi$ grunt build
Running "clean:dist" (clean) task
>> 50 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssmin

Running "concurrent:dist" (concurrent) task
    
    Running "svgmin:dist" (svgmin) task
    ✔ app/images/arrow-down.svg (saved 397 B 75%)
    Total saved: 397 B
    
    Done, without errors.
    
    
    Execution Time (2017-02-06 14:56:13 UTC)
    loading tasks         568ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 69%
    loading grunt-svgmin  136ms  ▇▇▇▇▇▇▇ 16%
    svgmin:dist           123ms  ▇▇▇▇▇▇ 15%
    Total 828ms
        Warning: Running "imagemin:dist" (imagemin) task
    Fatal error: write EPIPE
    
    
    Execution Time (2017-02-06 14:56:13 UTC)
    loading tasks                   562ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 51%
    loading grunt-contrib-imagemin  443ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%
    imagemin:dist                    98ms  ▇▇▇ 9%
    Total 1.1s Use --force to continue.
        
        Aborted due to warnings.
    

Execution Time (2017-02-06 14:56:12 UTC)
loading tasks         335ms  ▇▇▇▇▇▇ 14%
clean:dist             35ms  ▇ 1%
wiredep:app           164ms  ▇▇▇ 7%
wiredep:sass           52ms  ▇ 2%
loading grunt-usemin   53ms  ▇ 2%
useminPrepare:html     28ms  ▇ 1%
concurrent:dist        1.7s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 72%
Total 2.4s

Narumis-MacBook-Air:bosch-warranty-1 narumi$ grunt build --force
Running "clean:dist" (clean) task
>> 2 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssmin

Running "concurrent:dist" (concurrent) task
    
    Running "svgmin:dist" (svgmin) task
    ✔ app/images/arrow-down.svg (saved 397 B 75%)
    Total saved: 397 B
    
    Done, without errors.
    
    
    Execution Time (2017-02-06 14:56:47 UTC)
    loading tasks         556ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 68%
    loading grunt-svgmin  136ms  ▇▇▇▇▇▇▇ 17%
    svgmin:dist           128ms  ▇▇▇▇▇▇▇ 16%
    Total 822ms
        Warning: Running "imagemin:dist" (imagemin) task
    Fatal error: write EPIPE
    
    
    Execution Time (2017-02-06 14:56:47 UTC)
    loading tasks                   561ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 51%
    loading grunt-contrib-imagemin  449ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 41%
    imagemin:dist                    92ms  ▇▇▇ 8%
    Total 1.1s Used --force, continuing.
        
    Running "imagemin:dist" (imagemin) task
    Fatal error: write EPIPE
    
    
    Execution Time (2017-02-06 14:56:47 UTC)
    loading tasks                   561ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 51%
    loading grunt-contrib-imagemin  449ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 41%
    imagemin:dist                    92ms  ▇▇▇ 8%
    Total 1.1s
        
    Running "compass:dist" (compass) task
    directory .tmp/css/ 
       create .tmp/css/main.css (3.354s)
    Compilation took 3.363s
    
    Done, without errors.
    
    
    Execution Time (2017-02-06 14:56:47 UTC)
    loading tasks  567ms  ▇▇▇▇▇▇ 11%
    compass:dist    4.6s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
    Total 5.2s
    
Running "postcss:server" (postcss) task
>> 1 processed stylesheet created.

Running "postcss:dist" (postcss) task
>> 1 processed stylesheet created.

Running "ngtemplates:dist" (ngtemplates) task
>> No templates found
File .tmp/templateCache.js created.
Added .tmp/templateCache.js to <!-- build:js js/scripts.js -->

Running "concat:dist" (concat) task

Running "concat:generated" (concat) task
File .tmp/concat/js/vendor.js created.
File .tmp/concat/js/scripts.js created.

Running "ngAnnotate:dist" (ngAnnotate) task
>> 2 files successfully generated.

Running "copy:dist" (copy) task
Copied 55 files
Loading "cdnify.js" tasks...ERROR
>> Error: Cannot find module 'internal/fs'
Warning: Task "cdnify" failed. Used --force, continuing.

Running "cssmin:dist" (cssmin) task
>> 1 file created. 441.2 kB → 177.66 kB

Running "cssmin:generated" (cssmin) task
>> 2 files created. 481.01 kB → 205.11 kB

Running "uglify:generated" (uglify) task
>> 2 files created.

Running "filerev:dist" (filerev) task
Revved 9 files

Running "usemin:html" (usemin) task
Replaced 39 references to assets

Running "usemin:css" (usemin) task
Replaced 2 references to assets

Running "usemin:js" (usemin) task
Replaced 2 references to assets

Running "htmlmin:dist" (htmlmin) task
Minified 39 files

Done, but with warnings.


Execution Time (2017-02-06 14:56:46 UTC)
loading tasks             337ms  ▇ 1%
concurrent:dist            5.8s  ▇▇▇▇▇▇▇▇ 21%
postcss:server            702ms  ▇ 2%
ngAnnotate:dist            1.7s  ▇▇▇ 6%
loading grunt-google-cdn  780ms  ▇ 3%
cssmin:dist               692ms  ▇ 2%
cssmin:generated          545ms  ▇ 2%
uglify:generated          16.2s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 57%
Total 28.2s

Narumis-MacBook-Air:bosch-warranty-1 narumi$ yeoman -v
-bash: yeoman: command not found
Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm install
npm WARN npm-pt-warranty@1.15.0 No repository field.
npm WARN npm-pt-warranty@1.15.0 No license field.
Narumis-MacBook-Air:bosch-warranty-1 narumi$ yo app
-bash: yo: command not found
Narumis-MacBook-Air:bosch-warranty-1 narumi$ yo webapp
-bash: yo: command not found
Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm install && bower install
npm WARN npm-pt-warranty@1.15.0 No repository field.
npm WARN npm-pt-warranty@1.15.0 No license field.
bower not-cached    https://github.com/brettshollenberger/ui-select.git#0.14.9
bower resolve       https://github.com/brettshollenberger/ui-select.git#0.14.9
bower not-cached    https://github.com/angular/bower-angular-animate.git#1.4.8
bower resolve       https://github.com/angular/bower-angular-animate.git#1.4.8
bower checkout      angular-animate#v1.4.8
bower ENORESTARGET  No tag found that was able to satisfy 0.14.9

Additional error details:
No versions found in https://github.com/brettshollenberger/ui-select.git
Narumis-MacBook-Air:bosch-warranty-1 narumi$ bower install
bower not-cached    https://github.com/brettshollenberger/ui-select.git#0.14.9
bower resolve       https://github.com/brettshollenberger/ui-select.git#0.14.9
bower not-cached    https://github.com/angular/bower-angular-animate.git#1.4.8
bower resolve       https://github.com/angular/bower-angular-animate.git#1.4.8
bower checkout      angular-animate#v1.4.8
bower ENORESTARGET  No tag found that was able to satisfy 0.14.9

Additional error details:
No versions found in https://github.com/brettshollenberger/ui-select.git


   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 1.7.91.8.0    │
   │   Run npm i -g bower to update      │
   │                                     │
   ╰─────────────────────────────────────╯

Narumis-MacBook-Air:bosch-warranty-1 narumi$ npm i -g bower
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
/usr/local/lib
└── bower@1.8.0 

Narumis-MacBook-Air:bosch-warranty-1 narumi$ 
grunt build failure

 

安裝bower

http://www.cnblogs.com/cocowool/archive/2013/03/09/2952003.html

npm install --save-dev imagemin-pngquant

https://github.com/gruntjs/grunt-contrib-imagemin/issues/254

裝完imagemin-pngquant問題還在

http://stackoverflow.com/questions/26005479/imagemindist-task-throwing-error

grunt server --force 從app目錄啓動頁面

grunt server:dist --force 從dist啓動

runt server --verbose 看詳細信息

綜合起來:grunt server:dist --verbose --force 頗有用

grunt server:dist --force
Running "server:dist" (server) task
>> The `server` task has been deprecated. Use `grunt serve` to start a server.

Running "serve:dist" (serve) task

Running "clean:dist" (clean) task
>> 42 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssmin

Running "concurrent:dist" (concurrent) task

Running "compass:dist" (compass) task
Warning: Command failed: compass.bat --version
'compass.bat' �����ڲ����ⲿ���Ҳ���ǿ����еij���
    ���������ļ���
     Used --force, continuing.
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Used --force, continuing.

Done, but with warnings.


Execution Time (2017-02-08 08:55:04 UTC)
loading tasks                  683ms  ███████████████████████████ 86%
loading grunt-contrib-compass   47ms  ██ 6%
compass:dist                    67ms  ███ 8%
Total 798ms
    Warning: Running "imagemin:dist" (imagemin) task
Fatal error: write EPIPE


Execution Time (2017-02-08 08:55:04 UTC)
loading tasks                   650ms  ████████████████ 51%
loading grunt-contrib-imagemin  570ms  ██████████████ 45%
imagemin:dist                    58ms  ██ 5%
Total 1.3s Used --force, continuing.

Running "imagemin:dist" (imagemin) task
Fatal error: write EPIPE


Execution Time (2017-02-08 08:55:04 UTC)
loading tasks                   650ms  ████████████████ 51%
loading grunt-contrib-imagemin  570ms  ██████████████ 45%
imagemin:dist                    58ms  ██ 5%
Total 1.3s

Running "svgmin:dist" (svgmin) task
√ app/images/arrow-down.svg (saved 397 B 75%)
Total saved: 397 B

Done, without errors.


Execution Time (2017-02-08 08:55:04 UTC)
loading tasks         654ms  ████████████████████████████ 69%
loading grunt-svgmin  181ms  ████████ 19%
svgmin:dist           116ms  █████ 12%
Total 952ms

Running "postcss:server" (postcss) task

Running "postcss:dist" (postcss) task

Running "ngtemplates:dist" (ngtemplates) task
>> No templates found
File .tmp/templateCache.js created.
Added .tmp/templateCache.js to <!-- build:js js/scripts.js -->

Running "concat:dist" (concat) task

Running "concat:generated" (concat) task
File .tmp\concat\js\vendor.js created.
File .tmp\concat\js\scripts.js created.

Running "ngAnnotate:dist" (ngAnnotate) task
>> 2 files successfully generated.

Running "copy:dist" (copy) task
Copied 55 files
(node:7832) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:7832) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

Running "cdnify:dist" (cdnify) task
Going through dist/404.html, dist/index.html to update script refs
(node:7832) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
✔ bower_components/angular/angular.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular.min.js
✔ bower_components/angular-cookies/angular-cookies.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular-cookies.min.js
✔ bower_components/angular-resource/angular-resource.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular-resource.min.js
✔ bower_components/angular-route/angular-route.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular-route.min.js
✔ bower_components/angular-sanitize/angular-sanitize.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular-sanitize.min.js
✔ bower_components/angular-touch/angular-touch.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.5.0-beta.1/angular-touch.min.js
Warning: Failed to execute "git clone https://github.com/angular/bower-angular-route.git -b v1.6.2 --progress . --depth 1", exit code of #128 Used --force, continuing.

Running "cssmin:dist" (cssmin) task
Warning: Path must be a string. Received undefined Used --force, continuing.

Running "cssmin:generated" (cssmin) task
Warning: Path must be a string. Received undefined Used --force, continuing.

Running "uglify:generated" (uglify) task
>> 2 files created.

Running "filerev:dist" (filerev) task
Revved 8 files

Running "usemin:html" (usemin) task
Replaced 39 references to assets

Running "usemin:css" (usemin) task
Replaced 1 reference to assets

Running "usemin:js" (usemin) task
Replaced 2 references to assets

Running "htmlmin:dist" (htmlmin) task
Minified 39 files

Running "connect:dist:keepalive" (connect) task
Waiting forever...
Started connect web server on http://localhost:9000
grunt:dist server --force打到一半卡住了

http://stackoverflow.com/questions/24382098/grunt-serve-concurrentserver-aborts-due-to-warnings

這篇簡直和我手上的配置如出一轍,二我這份是用yeoman的angular生成器建立的:

# warranty-process

This project is generated with [yo angular generator]
(https://github.com/yeoman/generator-angular) version 0.14.0. After this it is
modified to make required folder structure.

## Build & development

Run `grunt build` for building and `grunt serve` for preview.

## Login

For this we have used JWT token. Algorithm used is HS256.

## Testing

Running `grunt test` will run the unit tests with karma.

答主說:

check your imports and syntax of your SCSS files

Run grunt compass to see where the compilation fails

To isloate the problem, check if you have some SCSS problems. Comment out every SCSS and start your server. If the server doesn't start, it should be not SCSS syntax related. If it does start, comment in every SCSS statement step by step. Now you get proper errors / warnings on your file, and you can fix it.

我用sass {,*/}*.{scss,sass} main.css 來測試文件夾中全部的scss(包括子文件夾)

看到這句我還在傻傻的npm install -g compass,覺得全局安裝就是system path了。。

但其實這個問題的核心是 gem install compass ,npm是沒用的,會報compass.bat錯誤:

File "_\components\sass\styles.scss" changed.
Running "compass:dev" (compass) task
Warning: Command failed: C:\Windows\system32\cmd.exe /s /c "compass.bat --version"

The command "compass.bat" is either spelled incorctly or cannot be found.
Use --force to continue.

Aborted due to warnings.
Completed in 3.510s at Mon Aug 24 2015 13:15:13 GMT+0200 (Mitteleuropäische Somm
erzeit) - Waiting...

http://stackoverflow.com/questions/32181349/compass-not-running-with-grunt-on-windows-7

正解!

相關文章
相關標籤/搜索