Sorry, I am out of ideas. I think you could try to port your application to Cocoon 2.2 instead.

On 03/07/2011 12:11 PM, Myles Byrne wrote:
Moi Andre,

Yes, it's counter intuitive! I think the underlying cause is that i've
tried to build our 2.2 Cocoon app minimally, without doing a full local
Cocoon build .. and the Validation blocks we need aren't in 2.2.

Here is the current state of the problem, from Cocoon-users thread
http://www.mail-archive.com/[email protected]/msg46032.html:

I built Cocoon 2.1.11 in ~/.m2/repository as you suggested, and checked
that my settings.xml points to this repo. Now i'm having (what must be
total noob) trouble getting Maven to find the Validation blocks in the
local repo.

I've tried dozens of variations of the following POM dependencies:

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


.. but still get a build fail:

    Could not resolve dependencies for project
    com.mycompany:lsdb:jar:1.0.0: Could not find artifact
    org.apache.cocoon:cocoon-validation-impl:jar:1.0.0-SNAPSHOT


The worst part is with your earlier help, it was working for a few days.
Then the builds started failing again. So if nothing in Maven central
has changed, that means my earlier attempts to install the Validation
block locally (in the Cocoon app, not in the Maven repo) worked.

Now i'm looking for a way to tell Maven to get the -impl block from:

  ~/.m2/repository/cocoon-2.1.11/src/blocks/validation/

.. I've tried a number of things but can't find the key. Any clues?

Cheers,
- Myles
Helsinki


On Thu, Mar 3, 2011 at 5:44 PM, Andre Juffer <[email protected]
<mailto:[email protected]>> wrote:

    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:  <tel:%2B358-8-553%201161>  
<tel:%2B358-8-553%201161>+358-8-553 1161  <tel:%2B358-8-553%201161>
        Biocenter Oulu and           | Fax:  <tel:%2B358-8-553-1141>  
<tel:%2B358-8-553-1141>+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:  <tel:%2B358-8-553%201161>+358-8-553 1161  
<tel:%2B358-8-553%201161>
    Biocenter Oulu and           | Fax:  <tel:%2B358-8-553-1141>+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/
StruBioCat                   | WWW: www.strubiocat.oulu.fi
NordProt                     | WWW: www.nordprot.org
Triacle Biocomputing         | WWW: www.triacle-bc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to