XML-RPC

classic Classic list List threaded Threaded
12 messages Options
12
Reply | Threaded
Open this post in threaded view
|

XML-RPC

Russel Winder
Guillaume,

I am getting the following errors building with Maven 2.  I am guessing
this is a configuration error of some sort rather than anything else?


/home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServer.java:[137,57] cannot find symbol
symbol  : variable available
location: class org.jivesoftware.smack.packet.Presence.Type

/home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServer.java:[137,106] cannot find symbol
symbol  : variable available
location: class org.jivesoftware.smack.packet.Presence.Mode

/home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServerProxy.java:[75,57] cannot find symbol
symbol  : variable available
location: class org.jivesoftware.smack.packet.Presence.Type

/home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServerProxy.java:[75,106] cannot find symbol
symbol  : variable available
location: class org.jivesoftware.smack.packet.Presence.Mode

--
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             [hidden email]

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Guillaume Laforge
Administrator
Yup, as I said in the other email I've just sent, the Smack jars
haven't been uploaded to Maven's repository, so unfortunately, you'll
get compilation issues if you're not using the latest 3.0 Smack
libraries.

On 4/23/07, Russel Winder <[hidden email]> wrote:

> Guillaume,
>
> I am getting the following errors building with Maven 2.  I am guessing
> this is a configuration error of some sort rather than anything else?
>
>
> /home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServer.java:[137,57] cannot find symbol
> symbol  : variable available
> location: class org.jivesoftware.smack.packet.Presence.Type
>
> /home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServer.java:[137,106] cannot find symbol
> symbol  : variable available
> location: class org.jivesoftware.smack.packet.Presence.Mode
>
> /home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServerProxy.java:[75,57] cannot find symbol
> symbol  : variable available
> location: class org.jivesoftware.smack.packet.Presence.Type
>
> /home/Checkouts/Subversion/Groovy/trunk/groovy/modules/xmlrpc/src/main/groovy/net/xmlrpc/JabberRPCServerProxy.java:[75,106] cannot find symbol
> symbol  : variable available
> location: class org.jivesoftware.smack.packet.Presence.Mode
>
> --
> Russel.
> ====================================================
> Dr Russel Winder                +44 20 7585 2200
> 41 Buckmaster Road              +44 7770 465 077
> London SW11 1EN, UK             [hidden email]
>
>


--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Russel Winder
On Mon, 2007-04-23 at 07:52 +0200, Guillaume Laforge wrote:
> Yup, as I said in the other email I've just sent, the Smack jars
> haven't been uploaded to Maven's repository, so unfortunately, you'll
> get compilation issues if you're not using the latest 3.0 Smack
> libraries.

OK, no problem.  Well actually there is a problem -- I have no idea how
to make Maven 2 use the smack jars in the lib directory :-(

Hopefully one of the many Maven 2 knowledgeable people on this list will
be able to educate me.
--
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             [hidden email]

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Russel Winder
On Mon, 2007-04-23 at 08:24 +0100, Russel Winder wrote:
> On Mon, 2007-04-23 at 07:52 +0200, Guillaume Laforge wrote:
> > Yup, as I said in the other email I've just sent, the Smack jars
> > haven't been uploaded to Maven's repository, so unfortunately, you'll
> > get compilation issues if you're not using the latest 3.0 Smack
> > libraries.

The smack and smackx jars haven't got version numbers in our repository
-- how do we keep track of which version it actually is?

> Hopefully one of the many Maven 2 knowledgeable people on this list will
> be able to educate me.

Any Maven 2 knowledgeable people out there today?  How do I
get ./lib/smack.jar onto the class path ?

--
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             [hidden email]

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Guillaume Laforge
Administrator
On 4/23/07, Russel Winder <[hidden email]> wrote:
> On Mon, 2007-04-23 at 08:24 +0100, Russel Winder wrote:
> > On Mon, 2007-04-23 at 07:52 +0200, Guillaume Laforge wrote:
> > > Yup, as I said in the other email I've just sent, the Smack jars
> > > haven't been uploaded to Maven's repository, so unfortunately, you'll
> > > get compilation issues if you're not using the latest 3.0 Smack
> > > libraries.
>
> The smack and smackx jars haven't got version numbers in our repository
> -- how do we keep track of which version it actually is?

Right, I just took the ones from the download bundle, which must be 3.0.1.
We should certainly rename them manually, I guess.

> > Hopefully one of the many Maven 2 knowledgeable people on this list will
> > be able to educate me.
>
> Any Maven 2 knowledgeable people out there today?  How do I
> get ./lib/smack.jar onto the class path ?

It seems there are two approaches.
One being to do some mvn install:install the jar so that it gets into your repo:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
But it doesn't bring them to the maven repo of course.
The other one (which worked in Maven 1) was to expand Maven's
classpath, but I don't know how it can be done in M2.

--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Russel Winder
On Mon, 2007-04-23 at 14:32 +0200, Guillaume Laforge wrote:

> Right, I just took the ones from the download bundle, which must be 3.0.1.
> We should certainly rename them manually, I guess.

Done and committed.


> > Any Maven 2 knowledgeable people out there today?  How do I
> > get ./lib/smack.jar onto the class path ?
>
> It seems there are two approaches.
> One being to do some mvn install:install the jar so that it gets into your repo:
> http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
> But it doesn't bring them to the maven repo of course.
> The other one (which worked in Maven 1) was to expand Maven's
> classpath, but I don't know how it can be done in M2.

Putting them in the local m2 repository works fine.  The trick was to
discover the install:install-files goal.  Thanks for the pointer.

The issues now:

0.  Do we move from Maven 1 to Maven 2 for this module?
1.  The directory tree is a Maven 1 tree.  If $0 == true, should we make
it a Maven 2 structured?  
2.  Are there any tests for this module?  There appears to be one Groovy
file but I am not sure what to put in the POM to get that compiled.
 
--
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             [hidden email]

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Guillaume Laforge
Administrator
On 4/23/07, Russel Winder <[hidden email]> wrote:
> [...]
> Done and committed.

Thanks

> [...]
> Putting them in the local m2 repository works fine.  The trick was to
> discover the install:install-files goal.  Thanks for the pointer.

I wonder if we can automate the placement of the jars from the lib to
the local repo... or if that's even needed.

> [...]
> 0.  Do we move from Maven 1 to Maven 2 for this module?

Yes, would certainly be good.

> 1.  The directory tree is a Maven 1 tree.  If $0 == true, should we make
> it a Maven 2 structured?

I'm also fine if we change the structure of the sources.

> 2.  Are there any tests for this module?  There appears to be one Groovy
> file but I am not sure what to put in the POM to get that compiled.

That's perhaps a question to Jason and his groovy plugin for M2.

--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Guillaume Laforge
Administrator
In reply to this post by Russel Winder
On 4/23/07, Russel Winder <[hidden email]> wrote:
> [...]
> Any Maven 2 knowledgeable people out there today?  How do I
> get ./lib/smack.jar onto the class path ?

I think I've found a clue.
Look at the very end of this page:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
Looks like we can add a local jar without any repository lookup.

--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Robert Stroud
In reply to this post by Russel Winder

On 23 Apr 2007, at 14:32, Russel Winder wrote:

> On Mon, 2007-04-23 at 14:32 +0200, Guillaume Laforge wrote:
>
>> Right, I just took the ones from the download bundle, which must  
>> be 3.0.1.
>> We should certainly rename them manually, I guess.
>
> Done and committed.

Maybe I'm doing something wrong, but when I just tried to build the  
latest version of XMLRPC, I got a "missing artifact" error message  
from Maven for smack-3.0.1.jar - do I need to point Maven at a  
different repository?

Thanks.

Robert

[...]
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.04/ 
xml-apis-1.3.04.jar
189K downloaded
Downloading: http://repo1.maven.org/maven2/jivesoftware/smack/3.0.1/ 
smack-3.0.1.jar
Downloading: http://repo1.maven.org/maven2/groovy/groovy/1.0/ 
groovy-1.0.jar
1750K downloaded
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) jivesoftware:smack:jar:3.0.1

   Try downloading the file manually from the project website.

   Then, install it using the command:
       mvn install:install-file -DgroupId=jivesoftware -
DartifactId=smack \
           -Dversion=3.0.1 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
         1) groovy:groovy-xmlrpc:jar:0.4
         2) jivesoftware:smack:jar:3.0.1

----------
1 required artifact is missing.

for artifact:
   groovy:groovy-xmlrpc:jar:0.4

from the specified remote repositories:
   central (http://repo1.maven.org/maven2)


[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 3 seconds
[INFO] Finished at: Wed Apr 25 15:31:07 BST 2007
[INFO] Final Memory: 3M/7M
[INFO]  
------------------------------------------------------------------------
$



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: XML-RPC

Guillaume Laforge
Administrator
No, the problem is that the 3.0.1 jars aren't yet in the Maven repositories.
Hence why there are in a local lib folder.
But I must say I'm not a Maven 2 expert, and we have yet to update the
build to make it look pick up the local jars, waiting for the jars to
go to the repositories.
So, for my need, I shamelessly built the code with my IDE instead.
But the easy thing you can do is install the jars in your local repository.


On 4/25/07, Robert Stroud <[hidden email]> wrote:

>
> On 23 Apr 2007, at 14:32, Russel Winder wrote:
>
> > On Mon, 2007-04-23 at 14:32 +0200, Guillaume Laforge wrote:
> >
> >> Right, I just took the ones from the download bundle, which must
> >> be 3.0.1.
> >> We should certainly rename them manually, I guess.
> >
> > Done and committed.
>
> Maybe I'm doing something wrong, but when I just tried to build the
> latest version of XMLRPC, I got a "missing artifact" error message
> from Maven for smack-3.0.1.jar - do I need to point Maven at a
> different repository?
>
> Thanks.
>
> Robert
>
> [...]
> Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.04/
> xml-apis-1.3.04.jar
> 189K downloaded
> Downloading: http://repo1.maven.org/maven2/jivesoftware/smack/3.0.1/
> smack-3.0.1.jar
> Downloading: http://repo1.maven.org/maven2/groovy/groovy/1.0/
> groovy-1.0.jar
> 1750K downloaded
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) jivesoftware:smack:jar:3.0.1
>
>    Try downloading the file manually from the project website.
>
>    Then, install it using the command:
>        mvn install:install-file -DgroupId=jivesoftware -
> DartifactId=smack \
>            -Dversion=3.0.1 -Dpackaging=jar -Dfile=/path/to/file
>
>    Path to dependency:
>          1) groovy:groovy-xmlrpc:jar:0.4
>          2) jivesoftware:smack:jar:3.0.1
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>    groovy:groovy-xmlrpc:jar:0.4
>
> from the specified remote repositories:
>    central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 3 seconds
> [INFO] Finished at: Wed Apr 25 15:31:07 BST 2007
> [INFO] Final Memory: 3M/7M
> [INFO]
> ------------------------------------------------------------------------
> $
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Guillaume Laforge
Groovy Project Manager
http://glaforge.free.fr/blog/groovy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

12