生而为人

程序员的自我修养

0%

chrome

刷新 command +r

强制刷新 command+shift+r

删除cookiecommand+shift+del点击 清除数据 注意勾选的选项(不要把保存的密码也删除)

查看依赖jar包

1
2
3
mvn dependency:tree -Dverbose

mvn dependency:tree -Dverbose -Dincludes=org.apache.logging.log4j:log4j-api

打包

1
mvn clean -U package -pl analysis-tool -am -P dev -Dmaven.source.skip=true -Dmaven.test.skip=true

要注意的是-P 对大小写敏感

重新生成iml文件

1
mvn idea:module

参数

1
2
-e 详细错误描述
-X

问题汇总

the output path is not specified for module ‘xxx’

Specify the output path in the Project Structure dalog

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.microsoft.sam.SAMJobRunner</mainClass>
<manifestEntries>
<Class-Path>..</Class-Path>
</manifestEntries>
</transformer>

<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/cxf/bus-extensions.txt</resource>
</transformer>

</transformers>
</configuration>

包冲突

02_XMDLOG_绑定包冲突排查方法

maven依赖的jar包版本不一样_Maven依赖jar包冲突常见的解决方法

1
2
3
4
5
6
7
8
9
10
[ERROR] Failed to execute goal on project SAM: Could not resolve dependencies for project com.microsoft:SAM:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.scala-lang:scala-reflect:jar:2.12.12, org.scalatest:scalatest_2.12:jar:3.0.8, org.scalactic:scalactic_2.12:jar:3.0.8: Could not transfer artifact org.scala-lang:scala-reflect:jar:2.12.12 from/to BingDM (https://msasg.pkgs.visualstudio.com/_packaging/BingDM/maven/v1): authentication failed for https://msasg.pkgs.visualstudio.com/_packaging/BingDM/maven/v1/org/scala-lang/scala-reflect/2.12.12/scala-reflect-2.12.12.jar, status: 401 Unauthorized -> [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 <args> -rf :SAM

setting.xml设置有问题

[toc]

公式

时间转换

ms unix timestamp to date

1
=(F2+8*3600)/86400000+70*365+19

second unix timestamp to date

1
=(F2+8*3600)/86400+70*365+19