zoukankan      html  css  js  c++  java
  • maven应用

    parent增加

    <distributionManagement>
    <repository>
    <id>maven-release</id>
    <name>Nexus Release Repository</name>
    <url>http://******:8081/repository/maven-snapshots/</url> <!--镜像路径-->
    </repository>

    <snapshotRepository>
    <id>maven-snapshots</id>
    <name>Nexus Release Repository</name>
    <url>http://*******:8081/repository/maven-snapshots/</url>
    </snapshotRepository>
    </distributionManagement>

    增加插件

    <build>
        <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
    <compilerVersion>1.8</compilerVersion>
    <source>1.8</source>
    <target>1.8</target>
    </configuration>
    <version>3.6.0</version>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-source-plugin</artifactId>
    <version>2.1</version>
    <configuration>
    <attach>true</attach>
    </configuration>
    <executions>
    <execution>
    <phase>compile</phase>
    <goals>
    <goal>jar</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </plugins>
    </build>
    子项目增加
     <build>
    <plugins>
    <plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
    <source>1.8</source>
    <target>1.8</target>
    <encoding>UTF-8</encoding>
    </configuration>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.6</version>
    </plugin>
    </plugins>
    </build>

     
    talk is cheap. show me the code.
  • 相关阅读:
    vc6.0执行程序正确而debug版和release版运行错误
    visio调整画布大小和旋转画布
    Safecracker(暴力)
    gets()
    MATLAB——axis
    截尾平均数及利用SPSS求截尾平均数
    MATLAB求实数绝对值——abs
    MATLAB描绘饼图——pie
    error: expected unqualifiedid before 'int'
    MATLAB描绘极坐标图像——polar
  • 原文地址:https://www.cnblogs.com/yushizhang/p/13029199.html
Copyright © 2011-2022 走看看