CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2017
    Location
    Montreal
    Posts
    54

    I have the maven blues

    I was trying to add Apache math lib using maven . I plugged
    in all the data and upon compilation it states it can't find the
    dependency. I tried manually. Same result. Help.

  2. #2
    Join Date
    Aug 2016
    Posts
    23

    Re: I have the maven blues

    This error occurs when Maven can not download dependencies. One of the following reasons could be responsible for this type of error:

    1. The POM misses the declaration of the <repository> which hosts the artifact.
    2. To configure repository, repository require authentication and Maven might have failed to provide the correct credentials to the server.
    3. The remote repository uses SSL and the JVM running Maven does not trust the certificate of the server.
    4. Network problem might be preventing Maven from accessing the remote repository like missing proxy configration
    5. You have configured Maven to perform strict checksum validation and the files to download got corrupted.
    6. Maven might have failed to save the files to the local repository, you can check LocalRepositoryNotAccessibleException for details.
    7. Maven 3 cache the failure even if you have fixed the failed download and to force a refresh add -U to the command line.
    Claire

  3. #3
    Join Date
    Feb 2017
    Location
    Montreal
    Posts
    54

    Re: I have the maven blues

    Quote Originally Posted by Claire_Anderson View Post
    This error occurs when Maven can not download dependencies. One of the following reasons could be responsible for this type of error:

    1. The POM misses the declaration of the <repository> which hosts the artifact.
    2. To configure repository, repository require authentication and Maven might have failed to provide the correct credentials to the server.
    3. The remote repository uses SSL and the JVM running Maven does not trust the certificate of the server.
    4. Network problem might be preventing Maven from accessing the remote repository like missing proxy configration
    5. You have configured Maven to perform strict checksum validation and the files to download got corrupted.
    6. Maven might have failed to save the files to the local repository, you can check LocalRepositoryNotAccessibleException for details.
    7. Maven 3 cache the failure even if you have fixed the failed download and to force a refresh add -U to the command line.
    On one try it stated the Pom was missing for Apache. Math.
    I haven't configured maven to checksum. I tried other libs and it runs

  4. #4
    Join Date
    Feb 2017
    Location
    Montreal
    Posts
    54

    i got the maven blues part 2

    Well I got Maven to accept Apache lib with errors.
    I tried to import it as
    Code:
     package org.apache.commons.math3.stat.descriptive ;
    to test
    Code:
        DescriptiveStatistics s= new DescriptiveStatistics;
    and I get it can't find the file
    I also tried
    Code:
     
    import package org.apache.commons.math3.stat.descriptive ;
    Help
    Last edited by 2kaud; April 8th, 2017 at 02:56 AM.

  5. #5
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,825

    Re: I have the maven blues

    [Threads merged]
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  6. #6
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: I have the maven blues

    import package org.apache.commons.math3.stat.descriptive ;
    That looks like bad syntax for the import statement. There should not be a space in the package name.

    Do you get any error messages with that statement?
    Last edited by Norm; April 8th, 2017 at 08:58 AM.
    Norm

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured