130 lines
4.9 KiB
XML
130 lines
4.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<parent>
|
||
<artifactId>user_profile</artifactId>
|
||
<groupId>com.atguigu</groupId>
|
||
<version>1.0-SNAPSHOT</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<version>1.1-SNAPSHOT</version>
|
||
<artifactId>sql</artifactId>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<artifactId>common</artifactId>
|
||
<groupId>com.atguigu</groupId>
|
||
<version>1.0-SNAPSHOT</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<!-- 该插件用于将Scala代码编译成class文件 -->
|
||
<!-- !!必须有这个插件,才可以编译scala代码找到主类 -->
|
||
<plugin>
|
||
<groupId>net.alchim31.maven</groupId>
|
||
<artifactId>scala-maven-plugin</artifactId>
|
||
<version>3.4.6</version>
|
||
|
||
<executions>
|
||
<execution>
|
||
<id>compile-scala</id>
|
||
<phase>compile</phase>
|
||
|
||
<goals>
|
||
<goal>add-source</goal>
|
||
<goal>compile</goal>
|
||
</goals>
|
||
</execution>
|
||
<execution>
|
||
<!-- 声明绑定到maven的compile阶段 -->
|
||
<id>test-compile-scala</id>
|
||
<phase>test-compile</phase>
|
||
|
||
<goals>
|
||
<goal>add-source</goal>
|
||
<goal>testCompile</goal>
|
||
</goals>
|
||
</execution>
|
||
|
||
</executions>
|
||
<!-- 填写你的scala version -->
|
||
<configuration>
|
||
<scalaVersion>2.12.11</scalaVersion>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>3.0.0</version>
|
||
<configuration>
|
||
<descriptorRefs>
|
||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||
</descriptorRefs>
|
||
<archive>
|
||
<manifest>
|
||
<!-- 你的mainclass入口,我就是test.scala 在scala文件夹下, 目录就是scr/main/scala -->
|
||
<mainClass>com.atguigu.userprofile.app.TaskSQLApp</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>make-assembly</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
<!-- <build>-->
|
||
<!-- <plugins>-->
|
||
<!-- <!– 该插件用于将Scala代码编译成class文件 –>-->
|
||
<!-- <plugin>-->
|
||
<!-- <groupId>net.alchim31.maven</groupId>-->
|
||
<!-- <artifactId>scala-maven-plugin</artifactId>-->
|
||
<!-- <version>3.4.6</version>-->
|
||
<!-- <executions>-->
|
||
<!-- <execution>-->
|
||
<!-- <!– 声明绑定到maven的compile阶段 –>-->
|
||
<!-- <goals>-->
|
||
<!-- <goal>compile</goal>-->
|
||
<!-- <goal>testCompile</goal>-->
|
||
<!-- </goals>-->
|
||
<!-- </execution>-->
|
||
<!-- </executions>-->
|
||
<!-- </plugin>-->
|
||
|
||
<!-- <plugin>-->
|
||
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||
<!-- <artifactId>maven-assembly-plugin</artifactId>-->
|
||
<!-- <version>3.0.0</version>-->
|
||
<!-- <configuration>-->
|
||
<!-- <descriptorRefs>-->
|
||
<!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
|
||
<!-- </descriptorRefs>-->
|
||
<!-- </configuration>-->
|
||
<!-- <executions>-->
|
||
<!-- <execution>-->
|
||
<!-- <id>make-assembly</id>-->
|
||
<!-- <phase>package</phase>-->
|
||
<!-- <goals>-->
|
||
<!-- <goal>single</goal>-->
|
||
<!-- </goals>-->
|
||
<!-- </execution>-->
|
||
<!-- </executions>-->
|
||
<!-- </plugin>-->
|
||
<!-- </plugins>-->
|
||
<!-- </build>-->
|
||
|
||
|
||
|
||
|
||
</project> |