Thanks guys..
with all your suggestions, I was finally able to run Maven :-)))
Now, my next question is regarding the following :
Building with Maven
Execute mvn install in any module you wish to build. This will build that
module and all children modules. The build result is placed in two places:
- the local maven
repository<http://maven.apache.org/guides/introduction/introduction-to-repositories.ht…>,
for making the module available to other projects or modules using maven
(even other XWiki modules take the needed libraries from this repository,
and not directly from a "neighbor" directory)
- and in a subdirectory of that module, called target.
I can not see the build result? I do not see any "target" subdir.
Please advise.
Thanks
Hello,
I spent long time in Ecipse before discovering I got stuck on the maven
snapshot updates... it tries to synchronize to maven.xwiki.org... no error,
no disconnection... just server connexion frozen...
best regards
Pascal
Hello,
I have been trying to build the XWiki sources but with no luck.
I am getting stuck at the first step itself- setting up Maven.
Following are the commands I use to set the envt. variables as indicated in
this link - http://maven.apache.org/download.html#Installation and the
errors I get.
Can anybody tell from this, whats going wrong here?
C:\>set M2_HOME = C:\Kam\Software\apache-
maven-2.1-SNAPSHOT\apache-maven-2.1-SNA
PSHOT
C:\>set Path = %Path%;%M2_HOME%\bin
C:\>echo %M2_HOME%
%M2_HOME%
C:\>set > env.txt
C:\>set PATH = %PATH%;%M2_HOME%\bin
C:\>set > env.txt
C:\>set JAVA_HOME = "C:\Program Files\Java\jdk1.6.0"
C:\>set PATH = %PATH%;%JAVA_HOME%\bin
C:\>set > env.txt
C:\>mvn --version
'mvn' is not recognized as an internal or external command,
operable program or batch file.
C:\>mvn --version
'mvn' is not recognized as an internal or external command,
operable program or batch file.
C:\>cd Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin>mvn
--ve
rsion
ERROR: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin>set
JAVA
_HOME = "C:\Program Files\Java\jdk1.6.0"
C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin>mvn
--ve
rsion
ERROR: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
Thanks a lot in advance.
Hi all
I'm a final year Computer Science and Engineering student of University of
Moratuwa Sri lanka and i thought i should give a try at GSoC 2008 under web
service integration for XWiki watch. I have experience in Java with Spring /
Hibernate / JMX /JSF (i learnt these during my internship) and i was able to
go through the web services specially with axis2 during the final year
project rather than X-fire web service implementation. According to the idea
published, our final year project also have some common areas. According to
that, we have already implemented the web service integration for publishing
different services to a middle ware dynamically. Therefore, i think i have a
great opportunity of making this project idea into a concrete implementation
during 3 months by using all my computer knowledge in different areas. And i
would like to discuss the implementation of this idea and about the
requirements with the mentors ( Anca Paula Luca & Jerome Velociter ). I'm
really interested in doing this project. Please reply to me to discuss the
relevant facts about this project.
Thank you very much.
regards,
Suramya
--
Suramya Rathnayake
Computer Science and Engineering
University of Moratuwa
http://suramya-rathnayake.blogspot.com/
Hi people,
I want to participate in GSoC. I'm Computer Science Msc Student at
Federal University of Pernambuco and I'm interested in two projects in the
following order of priority.
1. Gadget, Media and Content sites integration
2. XWiki Cross Platform Web and Desktop Widget
I have great interest in contributing to projects. I know people which also
participated in GSoC and can help me to meet with the project.
My native language is Portuguese, but I can working with English.
What do you suggest? Someone help me?
Daniel Arcoverde
try mvn -nsu clean install
This should work, may be there is some artifact missing in the repository
and -nsu flag does not try to get the snapshots from the repository.
Thanks
Sachin
------------------------------
>
> Message: 9
> Date: Wed, 26 Mar 2008 21:00:23 -0700
> From: "marlon hendred" <mhendred(a)gmail.com>
> Subject: [xwiki-devs] Can't get artifact
> To: "XWiki Developers" <devs(a)xwiki.org>
> Message-ID:
> <6e920fe20803262100g75be94fao1a9dc306be16ee2f(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello all,
>
> I have been building xwiki from scratch perfectly fine for the past couple
> days but today I have been trying to build the xwiki-core with no luck. It
> looks like there is something wrong with the repo? Im just doing a mvn
> install. Here is the error im getting:
>
>
> INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: com.xpn.xwiki.platform
> ArtifactId: xwiki
> Version: 14-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
> com.xpn.xwiki.platform:xwiki:pom:14-SNAPSHOT
>
> from the specified remote repositories:
> xwiki-releases (http://maven.xwiki.org/releases),
> central (http://repo1.maven.org/maven2),
> xwiki-snapshots (http://maven.xwiki.org/snapshots),
> xwiki-externals (http://maven.xwiki.org/externals)
>
> Has anyone else experienced this? Do i need to change where this points?
> Any
> insight is greatly appreciated. Thanks in advance.
>
> -Marlon
>
>
> ------------------------------
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
> End of devs Digest, Vol 9, Issue 92
> ***********************************
>
You variables don't seem to be set.
Best would be to set them in my computer -> properties -> advanced ->
environment variables
After setting and closing the window, open a new command prompt.
I think proper syntax to set env variables in windows is
SET *VARIABLE*=*value*
and not
SET *VARIABLE* = *value*
Thanks
Sachin
> ------------------------------
>
> Message: 8
> Date: Wed, 26 Mar 2008 21:38:02 -0500
> From: "Kamna Jain" <kammy.scorpi(a)gmail.com>
> Subject: [xwiki-devs] Problems with setting up Maven.
> To: devs(a)xwiki.org
> Message-ID:
> <fb681d280803261938h664d9aeh6be7558a7b2c30f3(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
> I have been trying to build the XWiki sources but with no luck.
> I am getting stuck at the first step itself- setting up Maven.
>
> Following are the commands I use to set the envt. variables as indicated
> in
> this link - http://maven.apache.org/download.html#Installation and the
> errors I get.
> Can anybody tell from this, whats going wrong here?
>
> C:\>set M2_HOME = C:\Kam\Software\apache-
> maven-2.1-SNAPSHOT\apache-maven-2.1-SNA
> PSHOT
>
> C:\>set Path = %Path%;%M2_HOME%\bin
>
> C:\>echo %M2_HOME%
> %M2_HOME%
>
> C:\>set > env.txt
>
> C:\>set PATH = %PATH%;%M2_HOME%\bin
>
> C:\>set > env.txt
>
> C:\>set JAVA_HOME = "C:\Program Files\Java\jdk1.6.0"
>
> C:\>set PATH = %PATH%;%JAVA_HOME%\bin
>
> C:\>set > env.txt
>
> C:\>mvn --version
> 'mvn' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\>mvn --version
> 'mvn' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\>cd Kam\Software\apache-
> maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
>
> C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
> >mvn
> --ve
> rsion
>
> ERROR: JAVA_HOME not found in your environment.
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
>
>
> C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
> >set
> JAVA
> _HOME = "C:\Program Files\Java\jdk1.6.0"
>
> C:\Kam\Software\apache-maven-2.1-SNAPSHOT\apache-maven-2.1-SNAPSHOT\bin
> >mvn
> --ve
> rsion
>
> ERROR: JAVA_HOME not found in your environment.
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
>
> Thanks a lot in advance.
>
>
Hello all,
I have been building xwiki from scratch perfectly fine for the past couple
days but today I have been trying to build the xwiki-core with no luck. It
looks like there is something wrong with the repo? Im just doing a mvn
install. Here is the error im getting:
INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: com.xpn.xwiki.platform
ArtifactId: xwiki
Version: 14-SNAPSHOT
Reason: Unable to download the artifact from any repository
com.xpn.xwiki.platform:xwiki:pom:14-SNAPSHOT
from the specified remote repositories:
xwiki-releases (http://maven.xwiki.org/releases),
central (http://repo1.maven.org/maven2),
xwiki-snapshots (http://maven.xwiki.org/snapshots),
xwiki-externals (http://maven.xwiki.org/externals)
Has anyone else experienced this? Do i need to change where this points? Any
insight is greatly appreciated. Thanks in advance.
-Marlon
Hello,
In an other mail, I talked about a problem compiling lucene plugin. I had
many "Unknown symbol"...
Apparently maven couldn't find its classes in org.apache.lucene/lucene-
core-2.4.1.jar
I have discovered that lucene plugin depends on xwiki-core which has some
dependency on JackRabbit which seems to pull a dependency on lucene/lucene
version 1.4.3 which contains also some of the classes of org.apache.lucene
/lucene-core-2.4.1.jar but older versions...
After trying many things, I've modified the lucene plugin pom.xml by
inverting dependency to xwiki-core and lucene-core so that lucene-core is
the first to be loaded and it solves my problem...
Apparently, you don't have the same problem as me when building so I think
it is linked to my local environment but anyway the inherited dependency on
2 versions of Lucene might be problematic some time.
br
Pascal
Hello,
I checked ou trunks yesterday night with an empty maven repository in
console mode...
Then I launch "mvn install -Pmysql"
1)It then blocks immediately because in trunks/pom.xml, the parent pom is
xwiki-platform-pom/pom.xml with version "14-SNAPSHOT" but current version is
"15-SNAPSHOT". To go quickly, I change xwiki-platform-pom/pom.xml to version
15-SNAPSHOT...
2)I relaunches and it blocks again because it can't download
xwiki-xar-handlers version 1.9-SNAPSHOT (apparently it doesn't try to
compile xwiki-platform-tool before looking elsewhere). So I go in
xwiki-platform-tools/xwiki-xar-handlers and I run "maven install" and I get
my 1.9-SNAPSHOT
3)I relaunches and it goes on until xwiki-platform-plugins/lucene... I get
lots of "unknown symbol"
Maven downloads into repository lucene/lucene/1.4.3 and
org/apache/lucene/lucene-core and lucene-parent version 2.3.1
If I remove lucene/lucene/1.4.3, it resynchronizes it and then it works... I
had this problem last week when I compiled from an empty maven repository
also... Maybe a problem while downloading lucene-1.4.3 first time and this
gives a bad Jar file... Anyway not a real problem
4)I relaunches again and it goes on until xwiki-platform-core/xwiki-velocity
which fails due to TEST errors:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component 'org.xwiki.velocity.VelocityManager', it could
not be started at org.codehaus.plexus.DefaultComponentLookupManager.lookup(
DefaultComponentLookupManager.java:156)
I haven't been looking in the project but I wonder if anyone had the same pb
as me...
5)So as I don't care about tests now, I relaunches with "maven install
-Pmysql -Dmaven.test.skip=true"
and then it runs until "BUILd SUCCESSFUL"
Next step: run it...
Next step: do it from Eclipse (I get lots of Java Heap Space problems with
M2Eclipse 0.0.12)
Pascal