You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Myles Byrne <bo...@gmail.com> on 2011/03/03 12:55:24 UTC
Re: ValidationReportTransformer in 2.2?
Huib, I have to follow up your solution to my problem:
your solution to call,
<dependency>
> <groupId>org.apache.cocoon</groupId>
> <artifactId>cocoon-validation-impl</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
.. worked fine for a few days, and over a number of builds. Then suddenly
maven said it could not locate the validation impl snapshot. The validation
impl is in my local repo @ ~/.m2, but it is still not building. I have been
trying different repos, editing maven's settings.xml file, flushing the
local repo, but to no avail.
Are you pulling the dependency from the default repo,
http://repo2.maven.org/maven2/?
Do you specify another repo for it anywhere?
Thanks,
- Myles
FIMM, Helsinki
On Sat, Feb 19, 2011 at 3:55 PM, Huib Verweij <Hu...@mpi.nl> wrote:
>
> > > Hi all,
> > >
> > > Has anyone got the old 2.1 (schema, not form) Validation block working
> in
> > > 2.2?
> >
> > I am using the validation transformer in 2.2, I can't remember me doing
> > anything special for it, I have this in my Spring application context:
> >
> >
> > <bean name="org.apache.cocoon.transformation.Transformer/validate"
> > class="org.apache.cocoon.transformation.ValidatingTransformer"
> > scope="prototype" />
> >
> > and this in my sitemap:
> >
> > <map:transform type="validate" src="startLetterSearch.xsd"/>
> >
> > and this in the pom.xml:
> >
> >
> > <dependency>
> > <groupId>org.apache.cocoon</groupId>
> > <artifactId>cocoon-validation-impl</artifactId>
> > <version>1.0.0-SNAPSHOT</version>
> > </dependency>
> >
> > It does the trick.
> >
> > Huib.
> >
> >
> >
> > --
> > Drs. Huib Verweij
> > Senior software developer - The Language Archive
> > Max Planck Institute for Psycholinguistics
> > P.O. Box 310
> > 6500 AH Nijmegen
> > The Netherlands
> > t +31-24-3521911
> > e huib.verwey@mpi.nl
> > w http://www.mpi.nl/
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
Re: ValidationReportTransformer in 2.2?
Posted by Huib Verweij <Hu...@mpi.nl>.
Op 7 mrt 2011, om 12:10 heeft Myles Byrne het volgende geschreven:
> Thanks, Huib, that must be it:
>
> Although i've built Cocoon in my repos, and there are .java files for the specific validation functions i'm seeking to call, cocoon-validation-impl-1.0.0-SNAPSHOT.jar and it's POM are nowhere to be found, locally or online. My best explanation for my problems is that this file was in an online Maven repo a couple of weeks ago, and now is not.
>
> Does anyone know where or how to find cocoon-validation-impl-1.0.0-SNAPSHOT.jar ?
Build cocoon 2.2 using "./build.sh clean install" iirc. I might take some tweaking of the poms to get it to build successfully.
Hartelijke groet,
Huib.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ValidationReportTransformer in 2.2?
Posted by Myles Byrne <bo...@gmail.com>.
Thanks, Huib, that must be it:
Although i've built Cocoon in my repos, and there are .java files for the
specific validation functions i'm seeking to call,
cocoon-validation-impl-1.0.0-SNAPSHOT.jar and it's POM are nowhere to be
found, locally or online. My best explanation for my problems is that this
file was in an online Maven repo a couple of weeks ago, and now is not.
Does anyone know where or how to find cocoon-validation-impl-1.0.0-SNAPSHOT.jar
?
Thanks,
- Myles
Helsinki
On Mon, Mar 7, 2011 at 12:13 PM, Huib Verweij <Hu...@mpi.nl> wrote:
>
> Op 7 mrt 2011, om 10:56 heeft Myles Byrne het volgende geschreven:
>
> I built Cocoon 2.1.11 in ~/.m2/repository
>
>
> I thought you were trying to use Cocoon 2.2. I was referring to Cocoon 2.2
> in any case.
>
> I still think it's a strangeness in your maven settings. If the
> cocoon-validation-impl-1.0.0-SNAPSHOT.jar and
> cocoon-validation-impl-1.0.0-SNAPSHOT.pom files are actually
> in ~/.m2/repository/org/apache/cocoon/cocoon-validation-impl/1.0.0-SNAPSHOT/
> then Maven should find them if properly configured. Especially since it did
> work? What changed? Something must have changed :-).
>
> I can imagine your frustration, I hope you fix this soon...
>
> Hartelijke groet,
>
> Huib.
>
> --
> Drs. Huib Verweij
> Senior software developer - The Language Archive
> Max Planck Institute for Psycholinguistics
> P.O. Box 310
> 6500 AH Nijmegen
> The Netherlands
> t +31-24-3521911
> e huib.verwey@mpi.nl
> w http://www.mpi.nl/
>
>
Re: ValidationReportTransformer in 2.2?
Posted by Huib Verweij <Hu...@mpi.nl>.
Op 7 mrt 2011, om 10:56 heeft Myles Byrne het volgende geschreven:
> I built Cocoon 2.1.11 in ~/.m2/repository
I thought you were trying to use Cocoon 2.2. I was referring to Cocoon 2.2 in any case.
I still think it's a strangeness in your maven settings. If the cocoon-validation-impl-1.0.0-SNAPSHOT.jar and cocoon-validation-impl-1.0.0-SNAPSHOT.pom files are actually in ~/.m2/repository/org/apache/cocoon/cocoon-validation-impl/1.0.0-SNAPSHOT/ then Maven should find them if properly configured. Especially since it did work? What changed? Something must have changed :-).
I can imagine your frustration, I hope you fix this soon...
Hartelijke groet,
Huib.
--
Drs. Huib Verweij
Senior software developer - The Language Archive
Max Planck Institute for Psycholinguistics
P.O. Box 310
6500 AH Nijmegen
The Netherlands
t +31-24-3521911
e huib.verwey@mpi.nl
w http://www.mpi.nl/
Re: ValidationReportTransformer in 2.2?
Posted by Myles Byrne <bo...@gmail.com>.
Nogmaals bedankt, Huib.
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
[...]
> What I did was download the cocoon source code and use the build.sh script
> to install it into the local maven repo - "./build.sh install" like it says
> in the README. It did take some tweaking to get that to successfully
> complete unfortunately, it didn't work "out-of-the-box" for me. But once
> that hurdle had been taken, the validation-impl jar could be found.
>
> Hartelijke groet,
>
> Huib.
> --
> Drs. Huib Verweij
> Senior software developer - The Language Archive
> Max Planck Institute for Psycholinguistics
> P.O. Box 310
> 6500 AH Nijmegen
> The Netherlands
> t <%2B31-24-3521911> <%2B31-24-3521911> <%2B31-24-3521911><%2B31-24-3521911>
> +31-24-3521911
> e huib.verwey@mpi.nl
> w http://www.mpi.nl/
>
>
Re: ValidationReportTransformer in 2.2?
Posted by Huib Verweij <Hu...@mpi.nl>.
Hi Myles,
Op 3 mrt 2011, om 12:55 heeft Myles Byrne het volgende geschreven:
> Huib, I have to follow up your solution to my problem:
>
> your solution to call,
>
> <dependency>
> > <groupId>org.apache.cocoon</groupId>
> > <artifactId>cocoon-validation-impl</artifactId>
> > <version>1.0.0-SNAPSHOT</version>
> > </dependency>
>
> .. worked fine for a few days, and over a number of builds. Then suddenly maven said it could not locate the validation impl snapshot. The validation impl is in my local repo @ ~/.m2, but it is still not building. I have been trying different repos, editing maven's settings.xml file, flushing the local repo, but to no avail.
>
> Are you pulling the dependency from the default repo, http://repo2.maven.org/maven2/?
> Do you specify another repo for it anywhere?
A strange situation, it worked, now it doesn't work anymore. What changed? Is validation-impl the only jar that can't be found? Sounds like a maven/dependency-thing to me.
What I did was download the cocoon source code and use the build.sh script to install it into the local maven repo - "./build.sh install" like it says in the README. It did take some tweaking to get that to successfully complete unfortunately, it didn't work "out-of-the-box" for me. But once that hurdle had been taken, the validation-impl jar could be found.
Hartelijke groet,
Huib.
--
Drs. Huib Verweij
Senior software developer - The Language Archive
Max Planck Institute for Psycholinguistics
P.O. Box 310
6500 AH Nijmegen
The Netherlands
t +31-24-3521911
e huib.verwey@mpi.nl
w http://www.mpi.nl/