• Maven HelloWorld 项目学习


    HelloWorld

    package com.qunar.basicJava.javase;

    public class HelloWorld {
        public String sayHello() {
            return "hello wolrd! I'm RoBY";
        }
    
        public static void main(String[] args) {
            System.out.println(new HelloWorld().sayHello());
        }
    }
    
    --
    <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">
        <modelVersion>4.0.0</modelVersion>
    
        <groupId>com.qunar.basicJava</groupId>
        <!-- com.mycompany.myapp -->
        <artifactId>javase</artifactId>
        <!-- myapp -->
        <version>1.0-SNAPSHOT</version>
        <packaging>jar</packaging>
    
        <name>Maven Hello Java Learn Project</name>
        <url>http://maven.apache.org</url>
    
        <properties>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>
        <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.11</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
        </dependencyManagement>
    
        <dependencies>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
            </dependency>
    
        </dependencies>
        <build>
            <finalName>SeHello</finalName>
            <!--<resources>-->
            <!--<resource>-->
            <!--<directory>src/main/resources.${deploy.type}</directory>-->
            <!--</resource>-->
            <!--<resource>-->
            <!--<directory>src/main/resources</directory>-->
            <!--</resource>-->
            <!--</resources>-->
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.7</source>
                        <target>1.7</target>
                    </configuration>
                </plugin>
            </plugins>
        </build>
    </project>
    

  • 相关阅读:
    zookeeper集群搭建
    kafka集群安装与配置
    Spring Task 定时任务配置与使用
    6.Spark SQL 及其DataFrame的基本操作
    10 期末大作业
    09 spark连接mysql数据库
    08 学生课程分数的Spark SQL分析
    从RDD创建DataFrame 07
    RDD 编程5
    05 RDD练习:词频统计
  • 原文地址:https://www.cnblogs.com/robbychan/p/3786764.html
Copyright © 2020-2023  润新知