javac 无效的目标发行版: xx

news2024/11/18 21:48:17

 一、检查系统JDK版本

java --version

 如果不符合,重新配置系统环境。

 二、检查IDEA设置

1、项目结构->项目->SDK和语言级别

2、 项目结构->模块->设置每一个模块的语言级别。

3、java编译器,模块预言级别。

三、检查pom文件

<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->
<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
        <version>11</version>
        <relativePath/>
    </parent>

    <groupId>org.apache.cloudstack</groupId>
    <artifactId>cloudstack</artifactId>
    <version>4.18.0.0</version>
    <packaging>pom</packaging>
    <name>Apache CloudStack</name>
    <description>Apache CloudStack is an IaaS ("Infrastructure as a Service") cloud orchestration platform.
    </description>
    <url>http://www.cloudstack.org</url>

    <scm>
        <connection>scm:git:https://gitbox.apache.org/repos/asf/cloudstack.git</connection>
        <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/cloudstack.git</developerConnection>
    </scm>

    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/apache/cloudstack/issues</url>
    </issueManagement>

    <properties>
        <!-- keep in alphabetic order -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <project.systemvm.template.version>4.18.0.0</project.systemvm.template.version>
        <sonar.organization>apache</sonar.organization>
        <sonar.host.url>https://sonarcloud.io</sonar.host.url>

        <!-- Build properties -->
        <cs.jdk.version>11</cs.jdk.version>
        <cs.target.dir>target</cs.target.dir>
        <cs.replace.properties>build/replace.properties</cs.replace.properties>
        <argLine>-Djava.security.egd=file:/dev/./urandom -noverify</argLine>

        <!-- Plugins versions -->
        <cs.antrun-plugin.version>1.8</cs.antrun-plugin.version>
        <cs.builder-helper-plugin.version>3.0.0</cs.builder-helper-plugin.version>
        <cs.checkstyle-plugin.version>3.1.0</cs.checkstyle-plugin.version>
        <cs.jacoco-plugin.version>0.8.8</cs.jacoco-plugin.version>
        <cs.compiler-plugin.version>3.8.1</cs.compiler-plugin.version>
        <cs.dependency-plugin.version>3.1.1</cs.dependency-plugin.version>
        <cs.failsafe-plugin.version>2.22.2</cs.failsafe-plugin.version>
        <cs.spotbugs.version>3.1.12</cs.spotbugs.version>
        <cs.spotbugs-maven-plugin.version>3.1.12.2</cs.spotbugs-maven-plugin.version>
        <cs.jar-plugin.version>3.2.0</cs.jar-plugin.version>
        <cs.pmd-plugin.version>3.12.0</cs.pmd-plugin.version>
        <cs.project-info-plugin.version>3.0.0</cs.project-info-plugin.version>
        <cs.owasp.dependency-checker-plugin.version>7.4.4</cs.owasp.dependency-checker-plugin.version>
        <cs.release-plugin.version>2.5.3</cs.release-plugin.version>
        <cs.resources-plugin.version>3.1.0</cs.resources-plugin.version>
        <cs.site-plugin.version>3.8.2</cs.site-plugin.version>
        <cs.surefire-plugin.version>2.22.2</cs.surefire-plugin.version>
        <cs.clover-maven-plugin.version>4.4.1</cs.clover-maven-plugin.version>

        <!-- Logging versions -->
        <cs.reload4j.version>1.2.22</cs.reload4j.version>
        <cs.log4j.extras.version>1.2.17</cs.log4j.extras.version>
        <cs.logging.version>1.1.1</cs.logging.version>

        <!-- Apache Commons versions -->
        <cs.codec.version>1.15</cs.codec.version>
        <cs.commons-cli.version>1.5.0</cs.commons-cli.version>
        <cs.commons-collections.version>4.4</cs.commons-collections.version>
        <cs.commons-compress.version>1.21</cs.commons-compress.version>
        <cs.commons-exec.version>1.3</cs.commons-exec.version>
        <cs.commons-fileupload.version>1.4</cs.commons-fileupload.version>
        <cs.commons-httpclient.version>3.1</cs.commons-httpclient.version>
        <cs.commons-io.version>2.8.0</cs.commons-io.version>
        <cs.commons-lang3.version>3.11</cs.commons-lang3.version>
        <cs.commons-logging.version>1.2</cs.commons-logging.version>
        <cs.commons-net.version>3.7.2</cs.commons-net.version>
        <cs.commons-validator.version>1.6</cs.commons-validator.version>
        <cs.configuration.version>1.10</cs.configuration.version>
        <cs.daemon.version>1.3.1</cs.daemon.version>
        <cs.dbcp.version>2.9.0</cs.dbcp.version>
        <cs.discovery.version>0.5</cs.discovery.version>
        <cs.lang.version>2.6</cs.lang.version>
        <cs.pool.version>2.9.0</cs.pool.version>
        <cs.commons-math3.version>3.6.1</cs.commons-math3.version>

        <!-- Testing versions -->
        <!-- do not forget to also upgrade hamcrest library with junit -->
        <cs.dbunit.version>2.5.4</cs.dbunit.version>
        <cs.hamcrest.version>1.3</cs.hamcrest.version>
        <cs.junit.version>4.13.2</cs.junit.version>
        <cs.junit.dataprovider.version>1.13.1</cs.junit.dataprovider.version>
        <cs.junit.jupiter.version>5.9.1</cs.junit.jupiter.version>
        <cs.guava-testlib.version>18.0</cs.guava-testlib.version>
        <cs.mockito.version>3.2.4</cs.mockito.version>
        <cs.powermock.version>2.0.5</cs.powermock.version>
        <cs.selenium.server.version>1.0-20081010.060147</cs.selenium.server.version>
        <cs.selenium-java-client-driver.version>1.0.1</cs.selenium-java-client-driver.version>
        <cs.testng.version>7.1.0</cs.testng.version>
        <cs.wiremock.version>2.27.2</cs.wiremock.version>
        <cs.xercesImpl.version>2.12.2</cs.xercesImpl.version>
        <cs.assertj.version>3.23.1</cs.assertj.version>

        <!-- Dependencies versions -->
        <cs.amqp-client.version>5.16.0</cs.amqp-client.version>
        <cs.apache-cloudstack-java-client.version>1.0.9</cs.apache-cloudstack-java-client.version>
        <cs.aspectjrt.version>1.9.9.1</cs.aspectjrt.version>
        <cs.aws.sdk.version>1.12.310</cs.aws.sdk.version>
        <cs.axiom.version>1.2.8</cs.axiom.version>
        <cs.axis2.version>1.6.4</cs.axis2.version>
        <cs.batik.version>1.14</cs.batik.version>
        <cs.bcprov.version>1.70</cs.bcprov.version>
        <cs.cglib.version>3.3.0</cs.cglib.version>
        <cs.checkstyle-lib.version>8.18</cs.checkstyle-lib.version>
        <cs.cxf.version>3.2.14</cs.cxf.version>
        <cs.ehcache.version>2.6.11</cs.ehcache.version>
        <cs.globodns-client.version>0.0.27</cs.globodns-client.version>
        <cs.google-http-client>1.42.2</cs.google-http-client>
        <cs.groovy.version>2.4.17</cs.groovy.version>
        <cs.gson.version>1.7.2</cs.gson.version>
        <cs.guava.version>31.1-jre</cs.guava.version>
        <cs.httpclient.version>4.5.13</cs.httpclient.version>
        <cs.httpcore.version>4.4.15</cs.httpcore.version>
        <cs.influxdb-java.version>2.22</cs.influxdb-java.version>
        <cs.jackson.version>2.13.3</cs.jackson.version>
        <cs.jasypt.version>1.9.3</cs.jasypt.version>
        <cs.java-ipv6.version>0.17</cs.java-ipv6.version>
        <cs.javassist.version>3.27.0-GA</cs.javassist.version>
        <cs.maven-javadoc-plugin.version>3.1.1</cs.maven-javadoc-plugin.version>
        <cs.javax.annotation.version>1.3.2</cs.javax.annotation.version>
        <cs.jaxb.version>2.3.0</cs.jaxb.version>
        <cs.jaxws.version>2.3.2-1</cs.jaxws.version>
        <cs.jersey-client.version>2.26</cs.jersey-client.version>
        <cs.jetty.version>9.4.49.v20220914</cs.jetty.version>
        <cs.jetty-maven-plugin.version>9.4.27.v20200227</cs.jetty-maven-plugin.version>
        <cs.jna.version>5.5.0</cs.jna.version>
        <cs.joda-time.version>2.11.2</cs.joda-time.version>
        <cs.jpa.version>2.2.1</cs.jpa.version>
        <cs.jsch.version>0.1.55</cs.jsch.version>
        <cs.json.version>20090211</cs.json.version>
        <cs.jstl.version>1.2</cs.jstl.version>
        <cs.kafka-clients.version>2.7.0</cs.kafka-clients.version>
        <cs.libvirt-java.version>0.5.3</cs.libvirt-java.version>
        <cs.mail.version>1.5.0-b01</cs.mail.version>
        <cs.mysql.version>8.0.19</cs.mysql.version>
        <cs.neethi.version>2.0.4</cs.neethi.version>
        <cs.nitro.version>10.1</cs.nitro.version>
        <cs.opensaml.version>2.6.6</cs.opensaml.version>
        <cs.rados-java.version>0.6.0</cs.rados-java.version>
        <cs.java-linstor.version>0.3.0</cs.java-linstor.version>
        <cs.reflections.version>0.9.12</cs.reflections.version>
        <cs.servicemix.version>3.4.4_1</cs.servicemix.version>
        <cs.servlet.version>4.0.1</cs.servlet.version>
        <cs.tink.version>1.7.0</cs.tink.version>
        <cs.tomcat-embed-core.version>10.0.22</cs.tomcat-embed-core.version>
        <cs.trilead.version>build-217-jenkins-27</cs.trilead.version>
        <cs.vmware.api.version>8.0</cs.vmware.api.version>
        <cs.winrm4j.version>0.5.0</cs.winrm4j.version>
        <cs.xapi.version>6.2.0-3.1</cs.xapi.version>
        <cs.xmlrpc.version>3.1.3</cs.xmlrpc.version>
        <cs.xstream.version>1.4.19</cs.xstream.version>
        <org.springframework.version>5.3.23</org.springframework.version>
        <cs.ini.version>0.5.4</cs.ini.version>
        <cs.gmaven.version>1.12.0</cs.gmaven.version>
    </properties>

    <distributionManagement>
        <site>
            <id>apache.cloudstack.site</id>
        </site>
    </distributionManagement>

    <inceptionYear>2012</inceptionYear>

    <mailingLists>
        <mailingList>
            <name>Apache CloudStack User List</name>
            <subscribe>users-subscribe@cloudstack.apache.org</subscribe>
            <unsubscribe>users-unsubscribe@cloudstack.apache.org</unsubscribe>
            <post>users@cloudstack.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/cloudstack-users</archive>
            <otherArchives>
                <otherArchive>http://mail-archives.apache.org/mod_mbox/incubator-cloudstack-users</otherArchive>
            </otherArchives>
        </mailingList>
        <mailingList>
            <name>Apache CloudStack Developer List</name>
            <subscribe>dev-subscribe@cloudstack.apache.org</subscribe>
            <unsubscribe>dev-unsubscribe@cloudstack.apache.org</unsubscribe>
            <post>dev@cloudstack.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/cloudstack-dev</archive>
            <otherArchives>
                <otherArchive>http://mail-archives.apache.org/mod_mbox/incubator-cloudstack-dev</otherArchive>
            </otherArchives>
        </mailingList>
        <mailingList>
            <name>Apache CloudStack Commits List</name>
            <subscribe>commits-subscribe@cloudstack.apache.org</subscribe>
            <unsubscribe>commits-unsubscribe@cloudstack.apache.org</unsubscribe>
            <post>commits@cloudstack.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/cloudstack-commits</archive>
            <otherArchives>
                <otherArchive>http://mail-archives.apache.org/mod_mbox/incubator-cloudstack-commits</otherArchive>
            </otherArchives>
        </mailingList>
    </mailingLists>

    <developers>
        <developer>
            <name>The Apache CloudStack Team</name>
            <email>dev@cloudstack.apache.org</email>
            <url>http://cloudstack.apache.org/</url>
            <organization>Apache Software Foundation</organization>
            <organizationUrl>http://apache.org/</organizationUrl>
        </developer>
    </developers>

    <ciManagement>
        <system>Jenkins</system>
        <url>http://builds.apache.org/</url>
    </ciManagement>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <organization>
        <name>The Apache Software Foundation</name>
        <url>http://www.apache.org/</url>
    </organization>

    <modules>
        <module>tools/checkstyle</module>
        <module>api</module>
        <module>agent</module>
        <module>core</module>
        <module>server</module>
        <module>usage</module>
        <module>utils</module>
        <module>engine</module>
        <module>plugins</module>
        <module>framework</module>
        <module>client</module>
        <module>services</module>
        <module>quickcloud</module>
    </modules>

    <dependencyManagement>
        <dependencies>
            <!-- keep in alphabetic order -->
            <dependency>
                <groupId>br.com.autonomiccs</groupId>
                <artifactId>apache-cloudstack-java-client</artifactId>
                <version>${cs.apache-cloudstack-java-client.version}</version>
            </dependency>
            <dependency>
                <groupId>cglib</groupId>
                <artifactId>cglib-nodep</artifactId>
                <version>${cs.cglib.version}</version>
            </dependency>
            <dependency>
                <groupId>com.amazonaws</groupId>
                <artifactId>aws-java-sdk-core</artifactId>
                <version>${cs.aws.sdk.version}</version>
            </dependency>
            <dependency>
                <groupId>com.amazonaws</groupId>
                <artifactId>aws-java-sdk-s3</artifactId>
                <version>${cs.aws.sdk.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${cs.jackson.version}</version>
                <type>bundle</type>
            </dependency>
            <dependency>
                <groupId>com.globo.globodns</groupId>
                <artifactId>globodns-client</artifactId>
                <version>${cs.globodns-client.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.code.gson</groupId>
                <artifactId>gson</artifactId>
                <version>${cs.gson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${cs.guava.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.http-client</groupId>
                <artifactId>google-http-client</artifactId>
                <version>${cs.google-http-client}</version>
            </dependency>
            <dependency>
                <groupId>com.googlecode.java-ipv6</groupId>
                <artifactId>java-ipv6</artifactId>
                <version>${cs.java-ipv6.version}</version>
            </dependency>
            <dependency>
                <groupId>com.jcraft</groupId>
                <artifactId>jsch</artifactId>
                <version>${cs.jsch.version}</version>
            </dependency>
            <dependency>
                <groupId>com.rabbitmq</groupId>
                <artifactId>amqp-client</artifactId>
                <version>${cs.amqp-client.version}</version>
            </dependency>
            <dependency>
                <groupId>com.thoughtworks.xstream</groupId>
                <artifactId>xstream</artifactId>
                <version>${cs.xstream.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jenkins-ci</groupId>
                <artifactId>trilead-ssh2</artifactId>
                <version>${cs.trilead.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${cs.codec.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-configuration</groupId>
                <artifactId>commons-configuration</artifactId>
                <version>${cs.configuration.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-daemon</groupId>
                <artifactId>commons-daemon</artifactId>
                <version>${cs.daemon.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-dbcp2</artifactId>
                <version>${cs.dbcp.version}</version>
                <exclusions>
                    <exclusion>
                        <artifactId>org.apache.commons</artifactId>
                        <groupId>commons-pool2</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>commons-discovery</groupId>
                <artifactId>commons-discovery</artifactId>
                <version>${cs.discovery.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>${cs.commons-fileupload.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${cs.commons-io.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${cs.lang.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>${cs.commons-logging.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-net</groupId>
                <artifactId>commons-net</artifactId>
                <version>${cs.commons-net.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-pool2</artifactId>
                <version>${cs.pool.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-validator</groupId>
                <artifactId>commons-validator</artifactId>
                <version>${cs.commons-validator.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>${cs.javax.annotation.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.mail</groupId>
                <artifactId>mail</artifactId>
                <version>${cs.mail.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${cs.servlet.version}</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>${cs.joda-time.version}</version>
            </dependency>
            <dependency>
                <groupId>jstl</groupId>
                <artifactId>jstl</artifactId>
                <version>${cs.jstl.version}</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>apache-log4j-extras</artifactId>
                <version>${cs.log4j.extras.version}</version>
                <exclusions>
                    <exclusion>
                        <artifactId>log4j</artifactId>
                        <groupId>log4j</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>ch.qos.reload4j</groupId>
                <artifactId>reload4j</artifactId>
                <version>${cs.reload4j.version}</version>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>${cs.mysql.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.sf.ehcache</groupId>
                <artifactId>ehcache-core</artifactId>
                <version>${cs.ehcache.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2</artifactId>
                <version>${cs.axis2.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.axis2</groupId>
                <artifactId>axis2-jaxws</artifactId>
                <version>${cs.axis2.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-collections4</artifactId>
                <version>${cs.commons-collections.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>${cs.commons-compress.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-exec</artifactId>
                <version>${cs.commons-exec.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${cs.commons-lang3.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>${cs.httpclient.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpcore</artifactId>
                <version>${cs.httpcore.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.kafka</groupId>
                <artifactId>kafka-clients</artifactId>
                <version>${cs.kafka-clients.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven.doxia</groupId>
                <artifactId>doxia-site-renderer</artifactId>
                <version>1.9.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.servicemix.bundles</groupId>
                <artifactId>org.apache.servicemix.bundles.snmp4j</artifactId>
                <version>${cs.servicemix.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.tomcat.embed</groupId>
                <artifactId>tomcat-embed-core</artifactId>
                <version>${cs.tomcat-embed-core.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-css</artifactId>
                <version>${cs.batik.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-ext</artifactId>
                <version>${cs.batik.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-util</artifactId>
                <version>${cs.batik.version}</version>
            </dependency>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjrt</artifactId>
                <version>${cs.aspectjrt.version}</version>
            </dependency>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjtools</artifactId>
                <version>1.8.13</version>
            </dependency>
            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjweaver</artifactId>
                <version>1.8.13</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-jdk15on</artifactId>
                <version>${cs.bcprov.version}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcprov-jdk15on</artifactId>
                <version>${cs.bcprov.version}</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bctls-jdk15on</artifactId>
                <version>${cs.bcprov.version}</version>
            </dependency>
            <dependency>
                <groupId>org.codehaus.groovy</groupId>
                <artifactId>groovy-all</artifactId>
                <version>${cs.groovy.version}</version>
            </dependency>
            <dependency>
                <groupId>org.influxdb</groupId>
                <artifactId>influxdb-java</artifactId>
                <version>${cs.influxdb-java.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-jmx</artifactId>
                <version>${cs.jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-server</artifactId>
                <version>${cs.jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-servlets</artifactId>
                <version>${cs.jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-util</artifactId>
                <version>${cs.jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-webapp</artifactId>
                <version>${cs.jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.persistence</groupId>
                <artifactId>javax.persistence</artifactId>
                <version>${cs.jpa.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jasypt</groupId>
                <artifactId>jasypt</artifactId>
                <version>${cs.jasypt.version}</version>
            </dependency>
            <dependency>
                <groupId>org.javassist</groupId>
                <artifactId>javassist</artifactId>
                <version>${cs.javassist.version}</version>
            </dependency>
            <dependency>
                <groupId>org.json</groupId>
                <artifactId>json</artifactId>
                <version>${cs.json.version}</version>
            </dependency>
            <dependency>
                <groupId>org.opensaml</groupId>
                <artifactId>opensaml</artifactId>
                <version>${cs.opensaml.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>jcl-over-slf4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>jul-to-slf4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>log4j-over-slf4j</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.owasp.esapi</groupId>
                <artifactId>esapi</artifactId>
                <version>2.1.0.1</version>
                <exclusions>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <!-- Test dependency in mysql for db tests -->
            <dependency>
                <groupId>org.reflections</groupId>
                <artifactId>reflections</artifactId>
                <version>${cs.reflections.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-aop</artifactId>
                <version>${org.springframework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-beans</artifactId>
                <version>${org.springframework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${org.springframework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${org.springframework.version}</version>
            </dependency>
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>${cs.testng.version}</version>
            </dependency>
            <dependency>
                <groupId>wsdl4j</groupId>
                <artifactId>wsdl4j</artifactId>
                <version>1.6.3</version>
            </dependency>
            <dependency>
                <groupId>xerces</groupId>
                <artifactId>xercesimpl</artifactId>
                <version>${cs.xercesImpl.version}</version>
            </dependency>
            <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <version>2.0.2</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <!-- hamcrest should always be the first -->
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
            <version>${cs.hamcrest.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>${cs.mockito.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <artifactId>hamcrest-core</artifactId>
                    <groupId>org.hamcrest</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${cs.junit.version}</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <artifactId>hamcrest-core</artifactId>
                    <groupId>org.hamcrest</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.tngtech.java</groupId>
            <artifactId>junit-dataprovider</artifactId>
            <version>${cs.junit.dataprovider.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-core</artifactId>
            <version>${cs.powermock.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <version>${cs.powermock.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito2</artifactId>
            <version>${cs.powermock.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${org.springframework.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>aliyunmaven</id>
            <name>aliyun</name>
            <url>https://maven.aliyun.com/repository/public/</url>
        </repository>

        <repository>
            <id>libvirt.org.maven2</id>
            <url>https://libvirt.org/maven2/</url>
        </repository>

        <repository>
            <id>repo.jenkins-ci.org.releases</id>
            <url>https://repo.jenkins-ci.org/releases/</url>
        </repository>
        <repository>
            <id>repo.jenkins-ci.org.public</id>
            <url>https://repo.jenkins-ci.org/public/</url>
        </repository>
    </repositories>

    <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <executions>
                    <execution>
                        <id>cloudstack-checkstyle</id>
                        <phase>none</phase>
                        <inherited>false</inherited>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.github.spotbugs</groupId>
                <artifactId>spotbugs-maven-plugin</artifactId>
                <version>${cs.spotbugs-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <id>cloudstack-spotbugs</id>
                        <phase>none</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>${cs.checkstyle-plugin.version}</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.apache.cloudstack</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>${project.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>com.puppycrawl.tools</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>${cs.checkstyle-lib.version}</version>
                        </dependency>
                    </dependencies>
                    <executions>
                        <execution>
                            <id>cloudstack-checkstyle</id>
                            <phase>validate</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <failsOnError>true</failsOnError>
                        <configLocation>cloud-style.xml</configLocation>
                        <consoleOutput>true</consoleOutput>
                        <includeTestSourceDirectory>true</includeTestSourceDirectory>
                        <sourceDirectories>
                            <sourceDirectory>${project.basedir}</sourceDirectory>
                        </sourceDirectories>
                        <includes>**\/*.java</includes>
                        <excludes>
                            **\/deps\/,**\/test\/,**\/target\/,**\/bin\/,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/XmlToHtmlConverter*,**\/generated-sources\/**\/*
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <configuration>
                        <excludeDefaultDirectories>true</excludeDefaultDirectories>
                        <filesets>
                            <fileset>
                                <directory>${cs.target.dir}</directory>
                                <includes>
                                    <include>**/*</include>
                                </includes>
                            </fileset>
                            <fileset>
                                <directory>dist</directory>
                                <includes>
                                    <include>**/*</include>
                                </includes>
                            </fileset>
                            <fileset>
                                <directory>${basedir}</directory>
                                <includes>
                                    <include>${cs.target.dir}</include>
                                    <include>dist</include>
                                </includes>
                            </fileset>
                        </filesets>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>${cs.release-plugin.version}</version>
                    <executions>
                        <execution>
                            <id>default</id>
                            <goals>
                                <goal>perform</goal>
                            </goals>
                            <configuration>
                                <pomFileName>pom.xml</pomFileName>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-antrun-plugin</artifactId>
                                        <versionRange>[1.7,)</versionRange>
                                        <goals>
                                            <goal>run</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore/>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-dependency-plugin</artifactId>
                                        <versionRange>[2.0,)</versionRange>
                                        <goals>
                                            <goal>copy-dependencies</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore/>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.codehaus.gmaven</groupId>
                                        <artifactId>gmaven-plugin</artifactId>
                                        <versionRange>[1.3,)</versionRange>
                                        <goals>
                                            <goal>compile</goal>
                                            <goal>testCompile</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore></ignore>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-checkstyle-plugin</artifactId>
                                        <versionRange>[2.11,)</versionRange>
                                        <goals>
                                            <goal>check</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore></ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>${cs.antrun-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.rat</groupId>
                    <artifactId>apache-rat-plugin</artifactId>
                    <executions>
                        <execution>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <numUnapprovedLicenses>0</numUnapprovedLicenses>
                        <excludeSubProjects>false</excludeSubProjects>
                        <excludes>
                            <!-- keep in alphabetic order -->
                            <exclude>**/*.log</exclude>
                            <exclude>**/*.patch</exclude>
                            <exclude>**/.classpath</exclude>
                            <exclude>**/.project</exclude>
                            <exclude>**/.idea/**</exclude>
                            <exclude>**/*.iml</exclude>
                            <exclude>**/.settings/**</exclude>
                            <exclude>**/*.crt</exclude>
                            <exclude>**/*.csr</exclude>
                            <exclude>**/*.key</exclude>
                            <exclude>**/authorized_keys</exclude>
                            <exclude>**/*.war</exclude>
                            <exclude>**/*.mar</exclude>
                            <exclude>**/*.jar</exclude>
                            <exclude>**/*.iso</exclude>
                            <exclude>**/*.tgz</exclude>
                            <exclude>**/*.zip</exclude>
                            <exclude>**/*.vhd*</exclude>
                            <exclude>**/target/**</exclude>
                            <exclude>**/.vagrant</exclude>
                            <exclude>**/*.json</exclude>
                            <exclude>**/.checkstyle</exclude>
                            <exclude>**/*.md</exclude>
                            <exclude>.java-version</exclude>
                            <exclude>.python-version</exclude>
                            <exclude>systemvm/.pythen-version</exclude>
                            <exclude>.idea/</exclude>
                            <exclude>.metadata/**</exclude>
                            <exclude>.git/**</exclude>
                            <exclude>.gitignore</exclude>
                            <exclude>CHANGES.md</exclude>
                            <exclude>CONTRIBUTING.md</exclude>
                            <exclude>README.md</exclude>
                            <exclude>INSTALL.md</exclude>
                            <exclude>build/build.number</exclude>
                            <exclude>debian/cloudstack-agent.dirs</exclude>
                            <exclude>debian/cloudstack-usage.dirs</exclude>
                            <exclude>debian/compat</exclude>
                            <exclude>debian/control</exclude>
                            <exclude>debian/dirs</exclude>
                            <exclude>debian/rules</exclude>
                            <exclude>debian/source/format</exclude>
                            <exclude>dist/console-proxy/js/jquery.js</exclude>
                            <exclude>engine/schema/dist/**</exclude>
                            <exclude>plugins/hypervisors/hyperv/conf/agent.properties</exclude>
                            <exclude>plugins/hypervisors/hyperv/DotNet/ServerResource/**</exclude>
                            <exclude>scripts/installer/windows/acs_license.rtf</exclude>
                            <exclude>scripts/vm/systemvm/id_rsa.cloud</exclude>
                            <exclude>services/console-proxy/server/conf/agent.properties</exclude>
                            <exclude>services/console-proxy/server/conf/environment.properties</exclude>
                            <exclude>services/console-proxy/server/js/jquery.js</exclude>
                            <exclude>services/secondary-storage/conf/agent.properties</exclude>
                            <exclude>services/secondary-storage/conf/environment.properties</exclude>
                            <exclude>systemvm/agent/conf/agent.properties</exclude>
                            <exclude>systemvm/agent/conf/environment.properties</exclude>
                            <exclude>systemvm/agent/js/jquery.js</exclude>
                            <exclude>systemvm/agent/js/jquery.flot.navigate.js</exclude>
                            <exclude>systemvm/agent/noVNC/**</exclude>
                            <exclude>systemvm/debian/**</exclude>
                            <exclude>test/integration/component/test_host_ha.sh</exclude>
                            <exclude>test/systemvm/README.md</exclude>
                            <exclude>tools/appliance/*/template.json</exclude>
                            <exclude>tools/cli/cloudmonkey.egg-info/*</exclude>
                            <exclude>tools/devcloud/basebuild/puppet-devcloudinitial/files/network.conf</exclude>
                            <exclude>tools/docker/Dockerfile</exclude>
                            <exclude>tools/docker/supervisord.conf</exclude>
                            <exclude>tools/logo/apache_cloudstack.png</exclude>
                            <exclude>tools/marvin/Marvin.egg-info/*</exclude>
                            <exclude>tools/marvin/marvin/sandbox/advanced/sandbox.cfg</exclude>
                            <exclude>tools/ngui/static/bootstrap/*</exclude>
                            <exclude>tools/ngui/static/js/lib/*</exclude>
                            <exclude>tools/transifex/.tx/config</exclude>
                            <exclude>ui/.*</exclude>
                            <exclude>ui/.*/**</exclude>
                            <exclude>ui/src/assets/**</exclude>
                            <exclude>ui/public/**</exclude>
                            <exclude>ui/legacy/**</exclude>
                            <exclude>utils/testsmallfileinactive</exclude>
                        </excludes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>

                    <version>${cs.compiler-plugin.version}</version>
                    <configuration>
                        <source>${cs.jdk.version}</source>
                        <target>${cs.jdk.version}</target>
                        <fork>true</fork>
                        <meminitial>128m</meminitial>
                        <maxmem>512m</maxmem>
                        <compilerArgs>
                            <arg>-XDignore.symbol.file=true</arg>
                            <arg>--add-opens=java.base/java.lang=ALL-UNNAMED</arg>
                            <arg>--add-exports=java.base/sun.security.x509=ALL-UNNAMED</arg>
                            <arg>--add-exports=java.base/sun.security.provider=ALL-UNNAMED</arg>
                        </compilerArgs>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>${cs.jar-plugin.version}</version>
                    <configuration>
                        <archive>
                            <addMavenDescriptor>false</addMavenDescriptor>
                            <manifest>
                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                            </manifest>
                        </archive>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>${cs.builder-helper-plugin.version}</version>
                    <executions>
                        <execution>
                            <id>remove-old-installers</id>
                            <goals>
                                <goal>remove-project-artifact</goal>
                            </goals>
                            <configuration>
                                <removeAll>true</removeAll>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>${cs.dependency-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.github.spotbugs</groupId>
                    <artifactId>spotbugs-maven-plugin</artifactId>
                    <version>${cs.spotbugs-maven-plugin.version}</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.apache.cloudstack</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>${project.version}</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <effort>Max</effort>
                        <threshold>High</threshold>
                        <xmlOutput>true</xmlOutput>
                        <failOnError>false</failOnError>
                        <maxHeap>2048</maxHeap>
                    </configuration>
                    <executions>
                        <execution>
                            <id>cloudstack-spotbugs</id>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-pmd-plugin</artifactId>
                    <version>${cs.pmd-plugin.version}</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.apache.cloudstack</groupId>
                            <artifactId>checkstyle</artifactId>
                            <version>${project.version}</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <failOnViolation>false</failOnViolation>
                        <rulesets>
                            <ruleset>cloud-pmd.xml</ruleset>
                        </rulesets>
                    </configuration>
                    <executions>
                        <execution>
                            <id>cloudstack-pmd</id>
                            <goals>
                                <goal>check</goal>
                                <goal>cpd-check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${cs.surefire-plugin.version}</version>
                    <configuration>
                        <useSystemClassLoader>false</useSystemClassLoader>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${cs.failsafe-plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${cs.site-plugin.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>com.github.spotbugs</groupId>
                <artifactId>spotbugs-maven-plugin</artifactId>
                <version>${cs.spotbugs-maven-plugin.version}</version>
                <configuration>
                    <threshold>Low</threshold><!-- High|Normal|Low|Exp|Ignore -->
                    <effort>Default</effort><!-- Min|Default|Max -->
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>${cs.site-plugin.version}</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>${cs.resources-plugin.version}</version>
            </plugin>
        </plugins>
    </reporting>
    <profiles>
        <profile>
            <id>systemvm</id>
            <activation>
                <property>
                    <name>systemvm</name>
                </property>
            </activation>
            <modules>
                <module>systemvm</module>
            </modules>
        </profile>
        <profile>
            <id>eclipse</id>
            <properties>
                <cs.target.dir>target-eclipse</cs.target.dir>
            </properties>
        </profile>
        <profile>
            <id>developer</id>
            <properties>
                <marvin.config>tools/devcloud/devcloud.cfg</marvin.config>
            </properties>
            <modules>
                <module>test</module>
                <module>developer</module>
                <module>tools</module>
            </modules>
        </profile>
        <profile>
            <id>impatient</id>
            <properties>
                <marvin.config>tools/devcloud/devcloud.cfg</marvin.config>
            </properties>
            <modules>
                <module>developer</module>
            </modules>
        </profile>
        <profile>
            <id>vmware</id>
            <activation>
                <property>
                    <name>noredist</name>
                </property>
            </activation>
            <modules>
                <module>vmware-base</module>
            </modules>
        </profile>
        <profile>
            <id>quality</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <version>${cs.jacoco-plugin.version}</version>
                    </plugin>
                    <plugin>
                        <groupId>org.openclover</groupId>
                        <artifactId>clover-maven-plugin</artifactId>
                        <version>${cs.clover-maven-plugin.version}</version>
                        <configuration>
                            <flushPolicy>threaded</flushPolicy>
                            <flushInterval>100</flushInterval>
                            <targetPercentage>0%</targetPercentage>
                            <generateHtml>true</generateHtml>
                            <generateXml>true</generateXml>
                            <generateHistorical>true</generateHistorical>
                        </configuration>
                        <executions>
                            <execution>
                                <id>main</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>instrument</goal>
                                    <goal>aggregate</goal>
                                    <goal>check</goal>
                                    <goal>log</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>site</id>
                                <phase>pre-site</phase>
                                <goals>
                                    <goal>instrument</goal>
                                    <goal>aggregate</goal>
                                    <!-- We save a history point in order to have data to generate a historical report -->
                                    <goal>save-history</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.owasp</groupId>
                            <artifactId>dependency-check-maven</artifactId>
                            <version>${cs.owasp.dependency-checker-plugin.version}</version>
                            <configuration>
                                <skipProvidedScope>true</skipProvidedScope>
                                <skipRuntimeScope>true</skipRuntimeScope>
                            </configuration>
                            <executions>
                                <execution>
                                    <goals>
                                        <goal>check</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                        <plugin>
                            <groupId>org.jacoco</groupId>
                            <artifactId>jacoco-maven-plugin</artifactId>
                            <version>${cs.jacoco-plugin.version}</version>
                            <executions>
                                <execution>
                                    <id>prepare-coverage-agent</id>
                                    <goals>
                                        <goal>prepare-agent</goal>
                                    </goals>
                                </execution>
                                <execution>
                                    <id>produce-coverage-reports</id>
                                    <phase>test</phase>
                                    <goals>
                                        <goal>report</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.owasp</groupId>
                        <artifactId>dependency-check-maven</artifactId>
                        <version>${cs.owasp.dependency-checker-plugin.version}</version>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <report>aggregate</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <version>${cs.jacoco-plugin.version}</version>
                        <reportSets>
                            <reportSet>
                                <reports>
                                    <!-- select non-aggregate reports -->
                                    <report>report</report>
                                </reports>
                            </reportSet>
                        </reportSets>
                    </plugin>
                </plugins>
            </reporting>
        </profile>
        <profile>
            <id>disablecheckstyle</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>cloudstack-checkstyle</id>
                                <phase>none</phase>
                                <inherited>true</inherited>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>enablefindbugs</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>cloudstack-spotbugs</id>
                                <phase>process-classes</phase>
                                <inherited>true</inherited>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.openclover</groupId>
                        <artifactId>clover-maven-plugin</artifactId>
                        <version>${cs.clover-maven-plugin.version}</version>
                        <configuration>
                            <generateHistorical>true</generateHistorical>
                            <generateHtml>true</generateHtml>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


</project>

 设置配置文件JDK版本

 四、检查系统环境变量JAVA_HOME

检查系统JAVA_HOME设置。

五、检查maven settings.xml配置

<properties>配置

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
 
  <localRepository>D:\repository</localRepository>
  
  <pluginGroups>
  </pluginGroups>
  
  <proxies>
  </proxies>
  
  <servers>
  </servers>
  
  <mirrors>
	 <mirror>
      <id>aliyunmaven</id>
      <mirrorOf>central</mirrorOf>
      <name>阿里云公共仓库</name>
      <url>https://maven.aliyun.com/repository/public</url>
    </mirror>
  </mirrors>
  
<!--   <profiles>
	<profile>
      <id>jdk-1.8</id>
      <activation>
        <jdk>1.8</jdk>
      </activation>
      <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
      </properties>
    </profile>
  </profiles> -->
  
</settings>

如果还是无效,欢迎探索,回复。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/641581.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

qt学习——基本使用、对象树、按钮、信号与槽

初识qt **qt****qt命名规范以及相关快捷键的使用****QPushButton****对象树****点击按钮关闭窗口****信号和槽****标准的信号和槽****自定义信号和槽****带参数的自定义信号和槽传参以及函数的二义性问题** qt qt命名规范以及相关快捷键的使用 优点:Qt相对于C&#xff0c;有一…

华为OD机试真题 JavaScript 实现【狼羊过河】【2022Q4 100分】,附详细解题思路

一、题目描述 一农夫带着m只羊&#xff0c;n只狼过河&#xff0c;农夫有一条可载x只狼/羊的船&#xff1b;农夫在时或者羊的数量大于狼时&#xff0c;狼不会攻击羊&#xff1b; 农夫在不损失羊的情况下&#xff0c;运输几次可以完成运输&#xff1f; 返程不计入次数。 二、…

Vue中如何进行表单联动与级联选择?

Vue中如何进行表单联动与级联选择&#xff1f; 表单联动和级联选择是Vue.js中常见的功能。表单联动是指在一个表单中&#xff0c;当某一个输入框的值发生变化时&#xff0c;其他输入框的值也会随之改变。级联选择是指在一个选择框中&#xff0c;当选择一个选项时&#xff0c;另…

领域建模之数据模型设计方法论 | 京东云技术团队

本文通过实际业务需求场景建模案例&#xff0c;为读者提供一种业务模型向数据模型设计的方法论&#xff0c;用于指导实际开发中如何进行业务模型向数据模型转化抽象&#xff0c;并对设计的数据模型可用性、扩展性提供了建议性思考。通过文章&#xff0c;读者可以收获到业务模型…

linux 漏洞升级、初次安装 mysql

文章目录 适用安装遇到问题 适用 1、为解决Mysql漏洞而需要离线升级mysql版本&#xff1b; 2、初次安装Mysql也可以参考本文&#xff1b; 安装 提示&#xff1a;首次安装可跳过第二步、第三步 一、查看CentOS7系统自带mariadb # 查看系统自带的Mariadb [rootiZ2ze3hm3gyjy…

最全Java锁详解:独享锁/共享锁+公平锁/非公平锁+乐观锁/悲观锁

乐观锁 VS 悲观锁 乐观锁与悲观锁是一种广义上的概念&#xff0c;体现了看待线程同步的不同角度&#xff0c;在Java和数据库中都有此概念对应的实际应用。 1.乐观锁 顾名思义&#xff0c;就是很乐观&#xff0c;每次去拿数据的时候都认为别人不会修改&#xff0c;所以不会上…

英语中-后置定语

一般说来&#xff0c;形容词放在所修饰名词的前面。单个的现在分词、过去分词以及动名词作定语&#xff0c;都是放在所修饰名词&#xff08;或代词&#xff09;的前面。这些称为前置定语。 例如&#xff1a; a red flower/ an interesting story&#xff0c;这里red, interes…

SaaS人力资源管理系统的Bug

SaaS人力资源管理系统的Bug Bug1【18】 这里我是直接把代码复制过来的&#xff0c;然后就有一个空白 这是因为它的代码有问题&#xff0c;原本的代码如下所示 <el-table-column fixed type"index" label"序号" width"50"></el-table-co…

ssm+java在线考试批改阅卷系统

本次学校在线考试系统的实现过程&#xff0c;它的开发使用B/S结构即浏览器和服务器结构框架&#xff0c;采用SSM框架技术&#xff0c;数据库使用了mysql数据库&#xff0c;页面设计采用了MVC框架&#xff0c;后端采用了SSM框架技术scrip等其他一些脚本语言&#xff0c;使用到在…

hash算法详解

散列算法&#xff08;Hash Algorithm&#xff09;&#xff0c;又称哈希算法&#xff0c;杂凑算法&#xff0c;是一种从任意文件中创造小的数字「指纹」的方法。与指纹一样&#xff0c;散列算法就是一种以较短的信息来保证文件唯一性的标志&#xff0c;这种标志与文件的每一个字…

Java中的动态链接VS操作系统动态链接

在操作系统OS中为了优化内存的使用会采用一种动态链接方式&#xff0c;一个文件想要在操作系统中运行必须经过编译、汇编译、链接、装载等步骤。可以参考Java程序是怎么跑起来的。本篇主要讲解Java栈帧中动态链接部分与操作系统的的动态链接的区别与联系 操纵系统为什么需要动态…

2023年欧洲科学院院士中的华人学者简介

近日&#xff0c;2023年欧洲科学院新当选欧洲科学院院士名单出炉&#xff0c;由于入选学者接受邀请及注册的时间进度不同&#xff0c;入选名单陆续公布&#xff08;截止目前已更新135位&#xff09;。本文知识人网小编仅介绍入选名单中华人学者的情况。 欧洲科学院(Academia Eu…

优化--分类树,我从2s优化到0.1s

1.前言 分类树查询功能&#xff0c;在各个业务系统中可以说随处可见&#xff0c;特别是在电商系统中。 但就是这样一个简单的分类树查询功能&#xff0c;我们却优化了5次。 到底是怎么回事呢&#xff1f; 2.背景 我们的网站使用了SpringBoot推荐的模板引擎&#xff1a;Thym…

TiDB x Catalyst丨秒级洞悉数据价值,TiDB 帮助“客户成功 SaaS 厂商”提升用户体验

导读 Catalyst 是一家总部位于纽约的 SaaS 创业公司&#xff0c;它提供了一个直观且灵活的客户成功平台&#xff08;Custom Success Platform&#xff09;&#xff0c;可帮助客户成功团队汇聚客户数据&#xff0c;洞悉客户健康状况&#xff0c;推动客户留存和业务增长。目前 C…

「网络编程」第一讲:初识网络_网络基础1

「前言」文章是关于网络编程方面的&#xff0c;今天内容大致是网络基础&#xff0c;讲解下面开始&#xff01; 「归属专栏」网络编程 「笔者」枫叶先生(fy) 「座右铭」前行路上修真我 「枫叶先生有点文青病」 「每篇一句」 青山不改&#xff0c;绿水长流 ——白居易 目录 一、…

chatgpt赋能python:Python怎么建服务器?

Python怎么建服务器&#xff1f; 作为一名具有10年Python编程经验的工程师&#xff0c;我深入研究了Python的一些高级特性&#xff0c;其中包括Python如何建立服务器的方法。Python是一个高级的编程语言&#xff0c;可以轻松创建服务器应用程序&#xff0c;并为您的网站提供高…

redis中的intset集合源码阅读探究;基于7.0+版本

1丶什么是intset Redis 中的 intset&#xff08;整数集合&#xff09;是一种高效的数据结构选择。Intset 具有紧凑的内存布局和快速的插入、删除和查找操作&#xff0c;适用于存储大量整数&#xff0c;并且能够节省内存空间。 2丶先说优点 内存布局&#xff1a;Intset 的内存…

vue-element-admin项目-Host key verification failed.-已解决

在网上下载的element-admin项目&#xff0c;install的时候一直报错Host key verification failed&#xff0c; 实测好用&#xff01;&#xff01;&#xff01;已解决 报错问题&#xff1a;上面写到主机密钥验证失败&#xff0c;无法从远程仓库拉取。说明我们需要生成一个新的密…

基于JAVA SSM框架和jsp的学生宿舍管理系统

计算机信息技术和当前办公的信息化、自动化、网络化极大地改变了高校、企事业单位的信息管理方式&#xff0c;高效、快速、准确的信息管理已成为各行业现代管理的重要手段。目前宿舍管理人员普遍年龄偏大&#xff0c;使用笔录工作量大&#xff0c;管理难度大&#xff0c;利用学…

如何安装官网最新版Android Studio

1、进入android studio官网&#xff0c;点击下载。 2、下滑查看协议&#xff0c;勾选同意按钮&#xff0c;点击下载。 3、打开安装程序&#xff0c;点击Next。 4、选择虚拟机&#xff0c;点击Next。 5、选择安装路径&#xff0c;点击Next。 6、点击Install。 5、等待安装…