maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cameron101 <cameron...@gmail.com>
Subject Re: spring-mock Spring framework 1.2.5
Date Thu, 15 Dec 2005 11:23:17 GMT
thanks, my mistake I didn't eralise that I needed to specify spring-mock
independent of spring which  makes sense from a scope point of view too

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-mock</artifactId>
            <version>1.2.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <artifactId>spring</artifactId>
            <groupId>org.springframework</groupId>
            <version>1.2.5</version>
        </dependency>

On 14/12/05, Carlos Sanchez <carlos@apache.org> wrote:
>
> Spring mock is there
> http://www.ibiblio.org/maven2/org/springframework/spring-mock/1.2.5/
> Your errors are probably due to other reason
>
> On 12/13/05, cameron clarke <cameron101@gmail.com> wrote:
> > don't shoot I'm new to Maven ;-)
> >
> > spring-mock is specified in spring-parent-1.2.5.pom but spring-mock.jardoes
> > not get pulled down from http://repo1.maven.org/maven2  Is there a
> reason
> > why this jar/pom is missing?  I have written some tests that utilise
> >
> org.springframework.test.AbstractTransactionalDataSourceSpringContextTestsbut
> > are failing in the M2 world as NoClassDef can be found.
> >
> > I installed it local via :
> > mvn install:install-file
> > -DgroupId=org.springframework-DartifactId=spring-mock -Dversion=
> > 1.2.5 -Dfile=C:/spring-mock.jar -Dpackaging=jar -DgeneratePom=true
> >
> > I checked the repository file system to see that it now exists but the
> test
> > still fails with the same error.  I noticed the pom file was not created
> > though ! instead a maven-metadata-local.xml was created.   So I manually
> > created spring-mock-1.2.5.pom as follows:
> >
> > <project>
> >   <parent>
> >     <artifactId>spring-parent</artifactId>
> >     <groupId>org.springframework</groupId>
> >     <version>1.2.5</version>
> >   </parent>
> >   <modelVersion>4.0.0</modelVersion>
> >   <artifactId>spring-mock</artifactId>
> >   <name>Spring Mock</name>
> >   <version>1.2.5</version>
> >   <distributionManagement>
> >     <status>deployed</status>
> >   </distributionManagement>
> > </project>
> >
> > (I didn't worked out the dependencies ..yet)
> >
> > but still my tests fail ..... :-(      ANY HELP GREATLY APPRECIATED
> >
> > java.lang.NoClassDefFoundError:
> > org/springframework/test/AbstractTransactionalDa
> > taSourceSpringContextTests
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message