MAVEN:无法解决项目的依赖关系

时间:2020-05-22 09:29:23

标签: java spring maven dependencies

我希望有人解决相同的问题。下面提到的# Get auth - deleter is a function I made to format .txt into string, note the appauth not oauth. def startup(loc): consumer_secret = deleter(open(loc[0],'r').read(),'\n') consumer_key = deleter(open(loc[1],'r').read(),'\n') auth = tweepy.AppAuthHandler(consumer_key, consumer_secret) api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True) if (not api): print ("Can't Authenticate"),sys.exit(-1) return api # Keys loc = ['consumer_scret.txt', 'api.txt'] api = startup(loc) # Search parameters query = "lockdown" gg = "5.29126,52.132633,10km" results = api.search(q=query,geo=gg, count = 100) for tweet in results: print(tweet.id,tweet.geo,tweet.place,tweet.coordinates) 文件

xsi:schemaLocation =“ http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd” xmlns =“ http://maven.apache.org/POM/4.0.0” xmlns:xsi =“ http://www.w3.org/2001/XMLSchema-instance”> 4.0.0

POM.xml

当我运行命令mvn clean install时:-

<parent>
    <groupId>com.shopizer</groupId>
    <artifactId>habbit</artifactId>
    <version>2.12.0</version>
</parent>

<artifactId>habbit-core</artifactId>
<packaging>jar</packaging>

<name>habbit-core</name>
<url>http://www.shopizer.com</url>

<properties>
    <coverage.lines>.00</coverage.lines>
    <coverage.branches>.00</coverage.branches>
    <google-client-maps-services-version>0.1.6</google-client-maps-services-version>
</properties>

<dependencies>

    <!-- jpa, crud repository -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>


    <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-ehcache -->
    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-ehcache</artifactId>
    </dependency>

    <!-- sm-core-model -->
    <dependency>
        <groupId>com.shopizer</groupId>
        <artifactId>habbit-core-model</artifactId>
    </dependency>

    <!-- sm-core-modules -->
    <dependency>
        <groupId>com.shopizer</groupId>
        <artifactId>habbit-core-modules</artifactId>
    </dependency>

    <!-- canadapost -->
    <dependency>
        <groupId>com.shopizer</groupId>
        <artifactId>shopizer-shipping-canadapost-module</artifactId>
        <version>${shopizer-canadapost.version}</version>
    </dependency>

    <!-- Google Map API -->
    <dependency>
        <groupId>com.google.maps</groupId>
        <artifactId>google-maps-services</artifactId>
    </dependency>

    <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-ci</artifactId>
        <exclusions>
            <exclusion>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-decisiontables</artifactId>
    </dependency>

    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-core</artifactId>
    </dependency>

    <dependency>
        <groupId>org.drools</groupId>
        <artifactId>drools-compiler</artifactId>
    </dependency>

    <!--spring integration -->
    <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-spring</artifactId>
    </dependency>
    <!-- end rules engine -->

    <!-- Infinispan -->
    <dependency>
        <groupId>org.infinispan</groupId>
        <artifactId>infinispan-core</artifactId>
    </dependency>

    <dependency>
        <groupId>org.infinispan</groupId>
        <artifactId>infinispan-tree</artifactId>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 -->
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-collections4</artifactId>
        <!--<version>${commons-collections4.version}</version> -->
    </dependency>


    <!-- https://mvnrepository.com/artifact/commons-validator/commons-validator -->
    <dependency>
        <groupId>commons-validator</groupId>
        <artifactId>commons-validator</artifactId>
        <!--<version>${commons-validator.version}</version> -->

        <exclusions>
            <exclusion>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
            </exclusion>
        </exclusions>
    </dependency>


    <!-- https://mvnrepository.com/artifact/org.freemarker/freemarker -->
    <dependency>
        <groupId>org.freemarker</groupId>
        <artifactId>freemarker</artifactId>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.springframework/spring-context-support -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context-support</artifactId>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
    </dependency>

    <!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-s3 -->
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-s3</artifactId>
    </dependency>

    <!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-ses -->
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-ses</artifactId>
    </dependency>

    <!-- google cloud storage -->
    <dependency>
        <groupId>com.google.cloud</groupId>
        <artifactId>google-cloud-storage</artifactId>
        <exclusions>
            <exclusion>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
            </exclusion>
        </exclusions>
    </dependency>


    <!-- Payment dependencies -->

    <!-- Paypal -->
    <dependency>
        <groupId>com.paypal.sdk</groupId>
        <artifactId>merchantsdk</artifactId>
    </dependency>

    <!-- Stripe -->
    <dependency>
        <groupId>com.stripe</groupId>
        <artifactId>stripe-java</artifactId>
    </dependency>

    <!-- Braintree -->
    <dependency>
        <groupId>com.braintreepayments.gateway</groupId>
        <artifactId>braintree-java</artifactId>
    </dependency>


    <!-- Invoices -->
    <!-- <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> 
        </dependency> <dependency> <groupId>org.jopendocument</groupId> <artifactId>jOpenDocument</artifactId> 
        </dependency> -->

    <!-- https://mvnrepository.com/artifact/com.maxmind.geoip2/geoip2 -->
    <dependency>
        <groupId>com.maxmind.geoip2</groupId>
        <artifactId>geoip2</artifactId>
    </dependency>

    <!-- google cloud storage -->
    <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
    <!-- Up to date for GCP storage issue -->
    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
    </dependency>

    <!-- tests dependencies -->
    <!-- http://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
    </dependency>
    <!-- H2 DB -->
    <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
    </dependency>

    <!-- Elastic search -->
    <dependency>
        <groupId>org.elasticsearch</groupId>
        <artifactId>elasticsearch</artifactId>
    </dependency>

    <dependency>
        <groupId>com.shopizer</groupId>
        <artifactId>sm-search</artifactId>
        <exclusions>
            <exclusion>
                <groupId>org.elasticsearch</groupId>
                <artifactId>elasticsearch</artifactId>
            </exclusion>
            <exclusion>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

1 个答案:

答案 0 :(得分:0)

从依赖项中删除canadapost-module。