You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Mary Thompson <mr...@lbl.gov> on 2009/05/26 20:14:17 UTC

How to use a SNAPSHOT release

I'm new to maven and can't figure out how to use the cxf 2.2.2-SNAPSHOT 
release. I downloaded the tar ball and found the jars in lib and 
modules. I changed my pom to have cxf-version= 2.2.2-SNAPSHOT and copied 
all the cxf jars to my maven repository into 
cxf/<cxf-whatever>/2.2.2-SNAPSHOT directories. When that didn't work I 
discovered the mvn install:install-file command which did the same thing 
plus creating pom files with no dependencies.

Depending on exactly what I am trying I keep getting various non-cxf 
classes not found during compilation: e.g javax.jws, javax.xml.bind, 
javax.xml.bind.annotation

I tried running the wssec10 samples from the release and without editing 
the pom, it appears to just use the 2.2.1 jars that are in my 
repository. When I change the version to 2.2.2-SNAPSHOT it gets the same
missing packages errors.

Is there some recommended procedure to build against a SNAPSHOT.

Any clues would be appreciated,

Mary

Re: How to use a SNAPSHOT release

Posted by Mary Thompson <mr...@lbl.gov>.
Benson,
   Thanks for the clue. The snapshot repository is now 
http://repository.apache.org/snapshots, but once I changed that, it all 
worked like a charm.

Mary

Benson Margulies wrote:
> <repositories>
> 
>         <repository>
>             <releases>
>                 <enabled>false</enabled>
>                 <updatePolicy>always</updatePolicy>
>                 <checksumPolicy>warn</checksumPolicy>
> 
>             </releases>
>             <snapshots>
>                 <enabled>true</enabled>
>                 <updatePolicy>never</updatePolicy>
>                 <checksumPolicy>fail</checksumPolicy>
> 
>             </snapshots>
>             <id>apache-snapshots</id>
>             <name>Apache Maven2 SNAPSHOTS</name>
>             <url>http://people.apache.org/repo/m2-snapshot-repository</url>
> 
>             <layout>default</layout>
>         </repository>
> </repositories>
> 
> 
> 
> On Tue, May 26, 2009 at 7:45 PM, Mary Thompson <mrthompson@lbl.gov 
> <ma...@lbl.gov>> wrote:
> 
> 
>     Benson Margulies wrote:
> 
>         If you are using a POM, don't download. Add the apache snapshot
>         repository to your repositories.
> 
> 
>     Where is the apache snapshot repository and how do I add it to my
>     repositories?
> 
>     If this is not a simple question I will be grateful to a link to any
>     relevant Maven documentation.
> 
>     Mary
> 
> 
>         Or wait another bit for 2.2.2 to be released.
> 
> 
>         On Tue, May 26, 2009 at 2:14 PM, Mary Thompson
>         <mrthompson@lbl.gov <ma...@lbl.gov>
>         <mailto:mrthompson@lbl.gov <ma...@lbl.gov>>> wrote:
> 
>            I'm new to maven and can't figure out how to use the cxf
>            2.2.2-SNAPSHOT release. I downloaded the tar ball and found
>         the jars
>            in lib and modules. I changed my pom to have cxf-version=
>            2.2.2-SNAPSHOT and copied all the cxf jars to my maven repository
>            into cxf/<cxf-whatever>/2.2.2-SNAPSHOT directories. When that
>         didn't
>            work I discovered the mvn install:install-file command which
>         did the
>            same thing plus creating pom files with no dependencies.
> 
>            Depending on exactly what I am trying I keep getting various
>         non-cxf
>            classes not found during compilation: e.g javax.jws,
>         javax.xml.bind,
>            javax.xml.bind.annotation
> 
>            I tried running the wssec10 samples from the release and without
>            editing the pom, it appears to just use the 2.2.1 jars that
>         are in
>            my repository. When I change the version to 2.2.2-SNAPSHOT it
>         gets
>            the same
>            missing packages errors.
> 
>            Is there some recommended procedure to build against a SNAPSHOT.
> 
>            Any clues would be appreciated,
> 
>            Mary
> 
> 
> 
> 


Re: How to use a SNAPSHOT release

Posted by Benson Margulies <bi...@gmail.com>.
If you are using a POM, don't download. Add the apache snapshot repository
to your repositories.

Or wait another bit for 2.2.2 to be released.


On Tue, May 26, 2009 at 2:14 PM, Mary Thompson <mr...@lbl.gov> wrote:

> I'm new to maven and can't figure out how to use the cxf 2.2.2-SNAPSHOT
> release. I downloaded the tar ball and found the jars in lib and modules. I
> changed my pom to have cxf-version= 2.2.2-SNAPSHOT and copied all the cxf
> jars to my maven repository into cxf/<cxf-whatever>/2.2.2-SNAPSHOT
> directories. When that didn't work I discovered the mvn install:install-file
> command which did the same thing plus creating pom files with no
> dependencies.
>
> Depending on exactly what I am trying I keep getting various non-cxf
> classes not found during compilation: e.g javax.jws, javax.xml.bind,
> javax.xml.bind.annotation
>
> I tried running the wssec10 samples from the release and without editing
> the pom, it appears to just use the 2.2.1 jars that are in my repository.
> When I change the version to 2.2.2-SNAPSHOT it gets the same
> missing packages errors.
>
> Is there some recommended procedure to build against a SNAPSHOT.
>
> Any clues would be appreciated,
>
> Mary
>