This I cannot understand. If everything compiled fine earlier, and the required package was already downloaded to your repository, Maven should not check again a remote repository, because it already has everything, right? It is possible that your local repository has been corrupted in one way or another, say, some files accidentally were removed?

On 03/03/11 15:11, Myles Byrne wrote:
Thanks again, Andre!

Yes, i compiled everything when it worked, and as you said the package is in the local repo. I've been trying to point Cocoon to that local version, and also seem to be getting the correct download from the central repo (repo2), but it can't find the POM:


    [DEBUG] Using connector WagonRepositoryConnector with priority 0
    for http://repo2.maven.org/maven2
    Downloading:
    
http://repo2.maven.org/maven2/org/apache/cocoon/cocoon-validation-impl/1.0.0/cocoon-validation-impl-1.0.0.pom
    [DEBUG] Reading resolution tracking file
    
/home/mbyrne/lsdb1/lsf/~/.m2/repository/org/apache/cocoon/cocoon-validation-impl/1.0.0/cocoon-validation-impl-1.0.0.pom.lastUpdated
    [DEBUG] Writing resolution tracking file
    
/home/mbyrne/lsdb1/lsf/~/.m2/repository/org/apache/cocoon/cocoon-validation-impl/1.0.0/cocoon-validation-impl-1.0.0.pom.lastUpdated
    [WARNING] The POM for
    org.apache.cocoon:cocoon-validation-impl:jar:1.0.0 is missing, no
    dependency information available


.. and then fails:

    [ERROR] Failed to execute goal on project lsf: Could not resolve
    dependencies for project com.mycompany:lsf:jar:1.0.0: Could not
    find artifact org.apache.cocoon:cocoon-validation-impl:jar:1.0.0
    in repo2 (http://repo2.maven.org/maven2) -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
    execute goal on project lsf: Could not resolve dependencies for
    project com.mycompany:lsf:jar:1.0.0: Could not find artifact
    org.apache.cocoon:cocoon-validation-impl:jar:1.0.0 in repo2
    (http://repo2.maven.org/maven2)


To solve this, i've tried placing a POM i found for the validation block in the local repo, but this hasn't worked. I also have tried different mirror settings in ~/.m2/settings.xml, and forcing repositories in the POM.

I'm stumped. It kills me that the validation-impl was working and is in my local repo, but won't build. I feel like there's something basic about getting Maven to find a dependecy i'm missing. On the other hand, i see others have had to search for the (schema) Validation block as well.

Any more hints?

(Note: i posted a related question in the 'ValidationReportTransformer in 2.2' thread)

Cheers and thanks again,
- Myles Byrne
FIMM.fi
Helsinki





On Mon, Feb 28, 2011 at 12:55 PM, Andre Juffer <[email protected] <mailto:[email protected]>> wrote:

    On 28/02/11 12:01, Myles Byrne wrote:
    Hi all,

    This dependency was available last week:

    <dependency>
    <groupId>org.apache.cocoon</groupId>
    <artifactId>cocoon-validation-impl</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    </dependency>

    Just wondering. Because you already compiled everything before
    (last week I assume), this particular package should be in your
    local repository (if you use Linux, check ~/.m2/repository), so
    that the error should in fact not occur (unless you never compiled
    your application ever with this particular dependency).



    .. Now it aint:

        Caused by:
        org.sonatype.aether.transfer.ArtifactNotFoundException: Could
        not find artifact
        org.apache.cocoon:cocoon-validation-impl:jar:1.0.0-SNAPSHOT

    All our other dependencies are still loading, and the Validation
    package seems to still be available here:

        http://repo2.maven.org/maven2/cocoon/cocoon-validation/2.1.11/


    and here:

        
http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-validation/cocoon-validation-impl/


    I've been trying to figure out how to point Cocoon to one of
    these. Any clues? Or should i escalate to MVNCENTRAL?

    I believe you need to modify the settings.xml in your .m2 folder,
    if Maven is not searching http://repo2.maven.org/maven2/
    <http://repo2.maven.org/maven2/cocoon/cocoon-validation/2.1.11/>
    for packages. Double check with the Maven website for the details.

    Thanks,
    - Myles Byrne
    FIMM.fi
    Helsinki





-- Andre H. Juffer | Phone:+358-8-553 1161 <tel:%2B358-8-553%201161>
    Biocenter Oulu and           | Fax:+358-8-553-1141  <tel:%2B358-8-553-1141>
    Department of Biochemistry   | Email:[email protected]  
<mailto:[email protected]>
    University of Oulu, Finland  | WWW:www.biochem.oulu.fi/Biocomputing/  
<http://www.biochem.oulu.fi/Biocomputing/>
    StrucBioCat                  | WWW:www.strucbiocat.oulu.fi  
<http://www.strucbiocat.oulu.fi>
    Triacle Biocomputing         | WWW:www.triacle-bc.com  
<http://www.triacle-bc.com>



--
Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email: [email protected]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StrucBioCat                  | WWW: www.strucbiocat.oulu.fi
Triacle Biocomputing         | WWW: www.triacle-bc.com

Reply via email to