File tree Expand file tree Collapse file tree 1 file changed +50
-4
lines changed Expand file tree Collapse file tree 1 file changed +50
-4
lines changed Original file line number Diff line number Diff line change 2424
2525 <build >
2626 <plugins >
27- <!-- 该插件用于将scala代码编译成class文件-->
2827 <plugin >
2928 <groupId >net.alchim31.maven</groupId >
3029 <artifactId >scala-maven-plugin</artifactId >
31- <version >3.4.6 </version >
30+ <version >3.2.2 </version >
3231 <executions >
3332 <execution >
34- <!-- 声明绑定到maven的compile阶段-->
33+ <id >compile-scala</id >
34+ <phase >compile</phase >
3535 <goals >
36+ <goal >add-source</goal >
37+ <goal >compile</goal >
38+ </goals >
39+ </execution >
40+ <execution >
41+ <id >test-compile-scala</id >
42+ <phase >test-compile</phase >
43+ <goals >
44+ <goal >add-source</goal >
3645 <goal >testCompile</goal >
3746 </goals >
3847 </execution >
3948 </executions >
49+ <configuration >
50+ <scalaVersion >2.11.12</scalaVersion >
51+ </configuration >
4052 </plugin >
53+
4154 <plugin >
4255 <groupId >org.apache.maven.plugins</groupId >
56+ <artifactId >maven-compiler-plugin</artifactId >
57+ <version >3.2</version >
58+ <configuration >
59+ <source >1.8</source >
60+ <target >1.8</target >
61+ </configuration >
62+ </plugin >
63+
64+ <plugin >
4365 <artifactId >maven-assembly-plugin</artifactId >
44- <version >3.0.0</version >
4566 <configuration >
4667 <descriptorRefs >
4768 <descriptorRef >jar-with-dependencies</descriptorRef >
4869 </descriptorRefs >
70+ <archive >
71+ <manifest >
72+ <mainClass ></mainClass >
73+ </manifest >
74+ </archive >
4975 </configuration >
5076 <executions >
5177 <execution >
5783 </execution >
5884 </executions >
5985 </plugin >
86+
87+ <plugin >
88+ <groupId >org.codehaus.mojo</groupId >
89+ <artifactId >exec-maven-plugin</artifactId >
90+ <version >1.6.0</version >
91+ <executions >
92+ <execution >
93+ <goals >
94+ <goal >exec</goal >
95+ </goals >
96+ </execution >
97+ </executions >
98+ <configuration >
99+ <executable >java</executable >
100+ <includeProjectDependencies >true</includeProjectDependencies >
101+ <includePluginDependencies >false</includePluginDependencies >
102+ <classpathScope >compile</classpathScope >
103+ <!-- <mainClass>cn.spark.study.App</mainClass>-->
104+ </configuration >
105+ </plugin >
60106 </plugins >
61107 </build >
62108</project >
You can’t perform that action at this time.
0 commit comments