[xwiki-users] Maven errors
Hello; when i execute "mvn {path of xwiki} install clean , i have this error : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-platform-oldcore: There are test failures. [ERROR] [ERROR] Please refer to /home/usr/xwikiProject/xwiki-platform-xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-oldcore/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xwiki-platform-oldcore help please; thanks -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, To investigate, you need to check exactly what maven told you: "Please refer to /home/usr/xwikiProject/xwiki-platform-xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-oldcore/target/surefire-reports for the individual test results." In the test reports you should find why it failed more precisely. BR, Jeremie 2014-06-04 11:15 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
Hello;
when i execute "mvn {path of xwiki} install clean , i have this error :
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-platform-oldcore: There are test failures. [ERROR] [ERROR] Please refer to
/home/usr/xwikiProject/xwiki-platform-xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-oldcore/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xwiki-platform-oldcore
help please; thanks
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
------------------------------------------------------------------------------- Test set: com.xpn.xwiki.doc.XWikiDocumentTest ------------------------------------------------------------------------------- thanks for first response; here is the error found "Tests run: 69, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 15.293 sec <<< FAILURE! - in com.xpn.xwiki.doc.XWikiDocumentTest testObjectNumbersAfterXMLRoundrip(com.xpn.xwiki.doc.XWikiDocumentTest) Time elapsed: 0.239 sec <<< ERROR! com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) at com.xpn.xwiki.objects.BaseObject.fromXML(BaseObject.java:283) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4411) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4288) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4267) at com.xpn.xwiki.doc.XWikiDocumentTest.testObjectNumbersAfterXMLRoundrip(XWikiDocumentTest.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at junit.framework.TestCase.runTest(TestCase.java:176) at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500) at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more" -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590869.html Sent from the XWiki- Users mailing list archive at Nabble.com.
I tried with mvn clean install-DskipTests = true but: [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.5:compile (backward-compatibility-aspects) on project xwiki-platform-skin-skinx: Compiler errors: [ERROR] error at (no source information available) [ERROR] /home/usr/xwikiProject/xwiki-platform-xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-skin/xwiki-platform-skin-skinx/src/main/aspect/compatibility/com/xpn/xwiki/plugin/skinx/SkinFileExtensionPluginApiCompatibilityAspect.aj:0::0 The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xwiki-platform-skin-skinx -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590870.html Sent from the XWiki- Users mailing list archive at Nabble.com.
It's not very clear what you are trying to build. You checkouted xwiki-platform-5.4.5 tag and just build it without any modification or did you patched it ? Also are you building with Java 7 (or more) ? Java 6 is not supported. On Wed, Jun 4, 2014 at 11:56 AM, wafid <mahfoudh.atmani@telecom-bretagne.eu> wrote:
I tried with mvn clean install-DskipTests = true
but: [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.5:compile (backward-compatibility-aspects) on project xwiki-platform-skin-skinx: Compiler errors: [ERROR] error at (no source information available) [ERROR] /home/usr/xwikiProject/xwiki-platform-xwiki-platform-5.4.5/xwiki-platform-core/xwiki-platform-skin/xwiki-platform-skin-skinx/src/main/aspect/compatibility/com/xpn/xwiki/plugin/skinx/SkinFileExtensionPluginApiCompatibilityAspect.aj:0::0 The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xwiki-platform-skin-skinx
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590870.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8. -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590874.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Could you tip: mvn --version and paste here the results? 2014-06-04 13:31 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590874.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
wafid@pc-eqi06128:~$ mvn --version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100) Maven home: /usr/local/maven Java version: 1.7.0_60, vendor: Oracle Corporation Java home: /usr/local/java/jdk1.7.0_60/jre Default locale: fr_FR, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-4-686-pae", arch: "i386", family: "unix" ----- Mail original ----- De: "Guillaume \"Louis-Marie\" Delhumeau [via XWiki]" <ml-node+s475771n7590978h73@n2.nabble.com> À: "wafid" <mahfoudh.atmani@telecom-bretagne.eu> Envoyé: Mercredi 11 Juin 2014 11:38:32 Objet: Re: Maven errors Could you tip: mvn --version and paste here the results? 2014-06-04 13:31 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590874.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ If you reply to this email, your message will be added to the discussion below: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590978.html To unsubscribe from Maven errors, visit http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe... -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590979.html Sent from the XWiki- Users mailing list archive at Nabble.com.
i changed the java for 1.7 ----- Mail original ----- De: "Guillaume \"Louis-Marie\" Delhumeau [via XWiki]" <ml-node+s475771n7590978h73@n2.nabble.com> À: "wafid" <mahfoudh.atmani@telecom-bretagne.eu> Envoyé: Mercredi 11 Juin 2014 11:38:32 Objet: Re: Maven errors Could you tip: mvn --version and paste here the results? 2014-06-04 13:31 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590874.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ If you reply to this email, your message will be added to the discussion below: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590978.html To unsubscribe from Maven errors, visit http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe... -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590981.html Sent from the XWiki- Users mailing list archive at Nabble.com.
I have looked at wafid setup: - ~/m2/settings.xml looks ok - maven looks ok - java jdk looks ok - xwiki sources look ok (git clone xwiki-platform && git checkout xwiki-platform-5.4.5) The error is on xwiki-platform-core: Running com.xpn.xwiki.doc.XWikiDocumentTest Tests run: 69, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.539 sec <<< FAILURE! - in com.xpn.xwiki.doc.XWikiDocumentTest testObjectNumbersAfterXMLRoundrip(com.xpn.xwiki.doc.XWikiDocumentTest) Time elapsed: 0.238 sec <<< ERROR! com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) at com.xpn.xwiki.objects.BaseObject.fromXML(BaseObject.java:283) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4411) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4288) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4267) at com.xpn.xwiki.doc.XWikiDocumentTest.testObjectNumbersAfterXMLRoundrip(XWikiDocumentTest.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500) at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more But I cannot reproduce locally. 2014-06-11 11:46 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i changed the java for 1.7
----- Mail original ----- De: "Guillaume \"Louis-Marie\" Delhumeau [via XWiki]" < ml-node+s475771n7590978h73@n2.nabble.com> À: "wafid" <mahfoudh.atmani@telecom-bretagne.eu> Envoyé: Mercredi 11 Juin 2014 11:38:32 Objet: Re: Maven errors
Could you tip: mvn --version
and paste here the results?
2014-06-04 13:31 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590874.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ If you reply to this email, your message will be added to the discussion below: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590978.html
To unsubscribe from Maven errors, visit http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe...
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590981.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On 06/11/2014 03:02 PM, Guillaume "Louis-Marie" Delhumeau wrote:
I have looked at wafid setup: - ~/m2/settings.xml looks ok - maven looks ok - java jdk looks ok - xwiki sources look ok (git clone xwiki-platform && git checkout xwiki-platform-5.4.5)
The error is on xwiki-platform-core:
Running com.xpn.xwiki.doc.XWikiDocumentTest Tests run: 69, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.539 sec <<< FAILURE! - in com.xpn.xwiki.doc.XWikiDocumentTest testObjectNumbersAfterXMLRoundrip(com.xpn.xwiki.doc.XWikiDocumentTest) Time elapsed: 0.238 sec <<< ERROR! com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) [...] Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500) at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more
just a guess: is it possible the "MetaClass" instance has not been initialized properly for whatever reason? Maybe there are some hints in the target/surefire-reports/TEST-com.xpn.xwiki.doc.XWikiDocumentTest.xml about it? Another possibility is that some code that is java8-compiled got installed in the .m2/repository and does not sit well with the current java7 build. Maybe moving away the complete repository and rebuilding helps? Clemens
But I cannot reproduce locally.
2014-06-11 11:46 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i changed the java for 1.7
----- Mail original ----- De: "Guillaume \"Louis-Marie\" Delhumeau [via XWiki]" < ml-node+s475771n7590978h73@n2.nabble.com> À: "wafid" <mahfoudh.atmani@telecom-bretagne.eu> Envoyé: Mercredi 11 Juin 2014 11:38:32 Objet: Re: Maven errors
Could you tip: mvn --version
and paste here the results?
2014-06-04 13:31 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8.
2014-06-11 15:55 GMT+02:00 Clemens Klein-Robbenhaar < c.robbenhaar@espresto.com>:
On 06/11/2014 03:02 PM, Guillaume "Louis-Marie" Delhumeau wrote:
I have looked at wafid setup: - ~/m2/settings.xml looks ok - maven looks ok - java jdk looks ok - xwiki sources look ok (git clone xwiki-platform && git checkout xwiki-platform-5.4.5)
The error is on xwiki-platform-core:
Running com.xpn.xwiki.doc.XWikiDocumentTest Tests run: 69, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 14.539 sec <<< FAILURE! - in com.xpn.xwiki.doc.XWikiDocumentTest testObjectNumbersAfterXMLRoundrip(com.xpn.xwiki.doc.XWikiDocumentTest) Time elapsed: 0.238 sec <<< ERROR! com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) [...] Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at
com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500)
at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more
just a guess: is it possible the "MetaClass" instance has not been initialized properly for whatever reason? Maybe there are some hints in the target/surefire-reports/TEST-com.xpn.xwiki.doc.XWikiDocumentTest.xml about it?
Strange since I cannot reproduce locally.
Another possibility is that some code that is java8-compiled got installed in the .m2/repository and does not sit well with the current java7 build. Maybe moving away the complete repository and rebuilding helps?
Maybe that. Wafid: rm ~/.m2/repository -Rf and then compile xwiki-platform-oldcore again. Guillaume
Clemens
But I cannot reproduce locally.
2014-06-11 11:46 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i changed the java for 1.7
----- Mail original ----- De: "Guillaume \"Louis-Marie\" Delhumeau [via XWiki]" < ml-node+s475771n7590978h73@n2.nabble.com> À: "wafid" <mahfoudh.atmani@telecom-bretagne.eu> Envoyé: Mercredi 11 Juin 2014 11:38:32 Objet: Re: Maven errors
Could you tip: mvn --version
and paste here the results?
2014-06-04 13:31 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
i checkout xwiki-platform-5.4.5 tag and build it without any modification. i build it with Java 8.
users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
this time another problem. Here are all the steps I did: //*********************************************** wafid@pc-eqi06128:~$ cd .m2 wafid@pc-eqi06128:~/.m2$ ls -a . .. repository settings.xml wafid@pc-eqi06128:~/.m2$ rm ~/.m2/repository -Rf wafid@pc-eqi06128:~/.m2$ ls -a . .. settings.xml wafid@pc-eqi06128:~/.m2$ cd wafid@pc-eqi06128:~$ mkdir xwikibuild wafid@pc-eqi06128:~$ cd xwikibuild wafid@pc-eqi06128:~/xwikibuild$ git clone https://github.com/xwiki/xwiki-platform.git Cloning into 'xwiki-platform'... remote: Reusing existing pack: 544936, done. remote: Counting objects: 491, done. remote: Compressing objects: 100% (350/350), done. remote: Total 545427 (delta 142), reused 85 (delta 19) Receiving objects: 100% (545427/545427), 246.10 MiB | 4.03 MiB/s, done. Resolving deltas: 100% (250275/250275), done. wafid@pc-eqi06128:~/xwikibuild$ cd xwiki-platform wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ git checkout xwiki-platform-5.4.5 Note: checking out 'xwiki-platform-5.4.5'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at 7624af4... [maven-release-plugin] prepare release xwiki-platform-5.4.5 wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ mvn clean install -Pdev [INFO] Scanning for projects... Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (8 KB at 41.4 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (49 KB at 429.9 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (3 KB at 49.9 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (3 KB at 41.5 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (3 KB at 39.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/xwiki/commons/xwiki-commons/5.4.5/xw... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.xwiki.platformwiki-platform-core:5.4.5 (/home/wafid/xwikibuild/xwiki-platform/xwiki-platform-core/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.xwiki.commonswiki-commons-tool-xar-handlers:5.4.5 or one of its dependencies could not be resolved: Failed to collect dependencies for org.xwiki.commonswiki-commons-tool-xar-handlers:jar:5.4.5 (): Failed to read artifact descriptor for org.xwiki.commonswiki-commons-tool-xar-handlers:jar:5.4.5: Could not find artifact org.xwiki.commonswiki-commonsom:5.4.5 in central (http://repo.maven.apache.org/maven2) -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ ls -a . .. .git .gitattributes .gitignore pom.xml xwiki-platform-core xwiki-platform-tools wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ //**************************************************************************************************************** -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590991.html Sent from the XWiki- Users mailing list archive at Nabble.com.
settings.xml //********************************************************************* <settings> <profiles> <profile> <id>xwiki</id> <repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>xwiki-external</id> <name>XWiki Nexus External Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xwiki</activeProfile> </activeProfiles> </settings> -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590992.html Sent from the XWiki- Users mailing list archive at Nabble.com.
here is the error in the file target/surefire-reports/TEST-com.xpn.xwiki.doc.XWikiDocumentTest.xml //************************************************************************************************************* <testcase name="testGetDocumentSection10" classname="com.xpn.xwiki.doc.XWikiDocumentTest" time="0.186"/> <testcase name="testObjectNumbersAfterXMLRoundrip" classname="com.xpn.xwiki.doc.XWikiDocumentTest" time="0.382"> <error message="Error number 7005 in 7: Error instanciating property class" type="com.xpn.xwiki.XWikiException">com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) at com.xpn.xwiki.objects.BaseObject.fromXML(BaseObject.java:283) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4411) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4288) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4267) at com.xpn.xwiki.doc.XWikiDocumentTest.testObjectNumbersAfterXMLRoundrip(XWikiDocumentTest.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500) at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more </error> </testcase> <testcase name="testSetGetAttachmentList" classname="com.xpn.xwiki.doc.XWikiDocumentTest" time="0.22"/> <testcase name="testSetContentAuthorReferenceSetsMetadataDirtyFlag" classname="com.xpn.xwiki.doc.XWikiDocumentTest" time="0.22"/> //***************************************************************************************** -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590994.html Sent from the XWiki- Users mailing list archive at Nabble.com.
It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ? Anyway, Wafid, it should be fixed within the next 2 hours... Sorry for that. Guillaume 2014-06-11 16:23 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
settings.xml
//********************************************************************* <settings> <profiles> <profile> <id>xwiki</id>
<repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
<repository> <id>xwiki-external</id> <name>XWiki Nexus External Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
</repositories> <pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xwiki</activeProfile> </activeProfiles> </settings>
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590992.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
I remember I usually get that problem, too after flushing my maven repo Can you please retry to run just the "mvn clean install" a second time. Usually when it fails the first time it works the second time
this time another problem.
Here are all the steps I did: //*********************************************** wafid@pc-eqi06128:~$ cd .m2 wafid@pc-eqi06128:~/.m2$ ls -a . .. repository settings.xml wafid@pc-eqi06128:~/.m2$ rm ~/.m2/repository -Rf wafid@pc-eqi06128:~/.m2$ ls -a . .. settings.xml wafid@pc-eqi06128:~/.m2$ cd wafid@pc-eqi06128:~$ mkdir xwikibuild wafid@pc-eqi06128:~$ cd xwikibuild wafid@pc-eqi06128:~/xwikibuild$ git clone https://github.com/xwiki/xwiki-platform.git Cloning into 'xwiki-platform'... remote: Reusing existing pack: 544936, done. remote: Counting objects: 491, done. remote: Compressing objects: 100% (350/350), done. remote: Total 545427 (delta 142), reused 85 (delta 19) Receiving objects: 100% (545427/545427), 246.10 MiB | 4.03 MiB/s, done. Resolving deltas: 100% (250275/250275), done. wafid@pc-eqi06128:~/xwikibuild$ cd xwiki-platform wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ git checkout xwiki-platform-5.4.5 Note: checking out 'xwiki-platform-5.4.5'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 7624af4... [maven-release-plugin] prepare release xwiki-platform-5.4.5 wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ mvn clean install -Pdev [INFO] Scanning for projects... Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (8 KB at 41.4 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (49 KB at 429.9 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (3 KB at 49.9 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (3 KB at 41.5 KB/sec) Downloading: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... Downloaded: http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/commons/xwiki-c... (3 KB at 39.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/xwiki/commons/xwiki-commons/5.4.5/xw... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.xwiki.platformwiki-platform-core:5.4.5 (/home/wafid/xwikibuild/xwiki-platform/xwiki-platform-core/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.xwiki.commonswiki-commons-tool-xar-handlers:5.4.5 or one of its dependencies could not be resolved: Failed to collect dependencies for org.xwiki.commonswiki-commons-tool-xar-handlers:jar:5.4.5 (): Failed to read artifact descriptor for org.xwiki.commonswiki-commons-tool-xar-handlers:jar:5.4.5: Could not find artifact org.xwiki.commonswiki-commonsom:5.4.5 in central (http://repo.maven.apache.org/maven2) -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException wafid@pc-eqi06128:~/xwikibuild/xwiki-platform$ ls -a
thanks Guillaume. ----- Mail original ----- De: "Guillaume \"Louis-Marie\" Delhumeau [via XWiki]" <ml-node+s475771n7590995h0@n2.nabble.com> À: "wafid" <mahfoudh.atmani@telecom-bretagne.eu> Envoyé: Mercredi 11 Juin 2014 16:36:33 Objet: Re: Maven errors It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ? Anyway, Wafid, it should be fixed within the next 2 hours... Sorry for that. Guillaume 2014-06-11 16:23 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
settings.xml
//********************************************************************* <settings> <profiles> <profile> <id>xwiki</id>
<repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
<repository> <id>xwiki-external</id> <name>XWiki Nexus External Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
</repositories> <pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xwiki</activeProfile> </activeProfiles> </settings>
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590992.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users _______________________________________________ If you reply to this email, your message will be added to the discussion below: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590995.html To unsubscribe from Maven errors, visit http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe... -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590997.html Sent from the XWiki- Users mailing list archive at Nabble.com.
2014-06-11 16:34 GMT+02:00 Guillaume "Louis-Marie" Delhumeau < gdelhumeau@xwiki.com>:
It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ?
I see it in your nexus, with: Uploaded Date:Mon May 26 2014 11:05:53 Uploaded by "anonymous" which seems strange. I can't understand why it would try to get that one from central, and the others from nexus.xwiki.org, and why it wouldn't do the same for previous libraries ... But maybe you could also define the mirrors / mirrorOf * for nexus.xwiki.org repo in maven settings (ie, never go to central). That may not be a good idea, but as central seems to be proxified from nexus.xwiki, it should work. I didn't find any mirror recommendations on http://dev.xwiki.org/xwiki/bin/view/Community/Building .
Anyway, Wafid, it should be fixed within the next 2 hours...
Sorry for that.
Guillaume
2014-06-11 16:23 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
settings.xml
//********************************************************************* <settings> <profiles> <profile> <id>xwiki</id>
<repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name> <url>
http://nexus.xwiki.org/nexus/content/groups/public-snapshots
</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
<repository> <id>xwiki-external</id> <name>XWiki Nexus External Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
</repositories> <pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name> <url> http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xwiki</activeProfile> </activeProfiles> </settings>
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590992.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
xwiki-commons and xwiki-rendering 5.4.5 should be on maven central now. 2014-06-11 17:02 GMT+02:00 Jeremie BOUSQUET <jeremie.bousquet@gmail.com>:
2014-06-11 16:34 GMT+02:00 Guillaume "Louis-Marie" Delhumeau < gdelhumeau@xwiki.com>:
It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ?
I see it in your nexus, with: Uploaded Date:Mon May 26 2014 11:05:53
Uploaded by "anonymous" which seems strange.
I can't understand why it would try to get that one from central, and the others from nexus.xwiki.org, and why it wouldn't do the same for previous libraries ... But maybe you could also define the mirrors / mirrorOf * for nexus.xwiki.org repo in maven settings (ie, never go to central). That may not be a good idea, but as central seems to be proxified from nexus.xwiki, it should work. I didn't find any mirror recommendations on http://dev.xwiki.org/xwiki/bin/view/Community/Building .
Anyway, Wafid, it should be fixed within the next 2 hours...
Sorry for that.
Guillaume
2014-06-11 16:23 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
settings.xml
//********************************************************************* <settings> <profiles> <profile> <id>xwiki</id>
<repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name> <url>
http://nexus.xwiki.org/nexus/content/groups/public-snapshots
</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
<repository> <id>xwiki-external</id> <name>XWiki Nexus External Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
</repositories> <pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name> <url> http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xwiki</activeProfile> </activeProfiles> </settings>
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590992.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
It indicate central in the error only because that's the last repository it tried I think. We of course have everything we release in maven.xwiki.org so there is no really Maven does not find it. On Wed, Jun 11, 2014 at 6:35 PM, Guillaume "Louis-Marie" Delhumeau <gdelhumeau@xwiki.com> wrote:
xwiki-commons and xwiki-rendering 5.4.5 should be on maven central now.
2014-06-11 17:02 GMT+02:00 Jeremie BOUSQUET <jeremie.bousquet@gmail.com>:
2014-06-11 16:34 GMT+02:00 Guillaume "Louis-Marie" Delhumeau < gdelhumeau@xwiki.com>:
It seems I haven't fully released xwiki-commons and xwiki-rendering 5.4.5 on maven central. I just have done this. Don't we have them on our own Maven repository ?
I see it in your nexus, with: Uploaded Date:Mon May 26 2014 11:05:53
Uploaded by "anonymous" which seems strange.
I can't understand why it would try to get that one from central, and the others from nexus.xwiki.org, and why it wouldn't do the same for previous libraries ... But maybe you could also define the mirrors / mirrorOf * for nexus.xwiki.org repo in maven settings (ie, never go to central). That may not be a good idea, but as central seems to be proxified from nexus.xwiki, it should work. I didn't find any mirror recommendations on http://dev.xwiki.org/xwiki/bin/view/Community/Building .
Anyway, Wafid, it should be fixed within the next 2 hours...
Sorry for that.
Guillaume
2014-06-11 16:23 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
settings.xml
//********************************************************************* <settings> <profiles> <profile> <id>xwiki</id>
<repositories> <repository> <id>xwiki-snapshots</id> <name>XWiki Nexus Snapshot Repository Proxy</name> <url>
http://nexus.xwiki.org/nexus/content/groups/public-snapshots
</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>xwiki-releases</id> <name>XWiki Nexus Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
<repository> <id>xwiki-external</id> <name>XWiki Nexus External Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository>
</repositories> <pluginRepositories> <pluginRepository> <id>xwiki-plugins-snapshots</id> <name>XWiki Nexus Plugin Snapshot Repository Proxy</name> <url> http://nexus.xwiki.org/nexus/content/groups/public-snapshots </url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>xwiki-plugins-releases</id> <name>XWiki Nexus Plugin Releases Repository Proxy</name> <url>http://nexus.xwiki.org/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>xwiki</activeProfile> </activeProfiles> </settings>
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7590992.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
I did not understand!! this means that there is no problem ? or I can not continue? -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7591007.html Sent from the XWiki- Users mailing list archive at Nabble.com.
is there a problem if i disabled unit tests? -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7591010.html Sent from the XWiki- Users mailing list archive at Nabble.com.
when disabled unit tests, XWiki-plate-forme and XWiki-entreprise build Successful! -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7591013.html Sent from the XWiki- Users mailing list archive at Nabble.com.
2014-06-12 9:39 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
I did not understand!! this means that there is no problem ? or I can not continue?
Now that Guillaume published missing stuff on central, you could try again to build, and tell here if it now succeeds or not.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7591007.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
the same error : //************************************************************************ //************************************************************************* [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9:05.382s [INFO] Finished at: Thu Jun 12 10:37:41 CEST 2014 [INFO] Final Memory: 154M/562M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-platform-oldcore: There are test failures. [ERROR] [ERROR] Please refer to /home/matmani/xwikibuild/xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xwiki-platform-oldcore matmani@pc-eqi06128:~/xwikibuild/xwiki-platform$ //****************************************************************************************************************** Test set: com.xpn.xwiki.doc.XWikiDocumentTest //*************************************************************************** <testcase name="testObjectNumbersAfterXMLRoundrip" classname="com.xpn.xwiki.doc.XWikiDocumentTest" time="0.257"> <error message="Error number 7005 in 7: Error instanciating property class" type="com.xpn.xwiki.XWikiException">com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) at com.xpn.xwiki.objects.BaseObject.fromXML(BaseObject.java:283) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4411) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4288) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4267) at com.xpn.xwiki.doc.XWikiDocumentTest.testObjectNumbersAfterXMLRoundrip(XWikiDocumentTest.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500) at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more </error> </testcase> //****************************************************************************** -- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7591017.html Sent from the XWiki- Users mailing list archive at Nabble.com.
I don't understand why you have this error, but at least you are able to compile it with mvn clean install -DskipTests=true. 2014-06-12 10:43 GMT+02:00 wafid <mahfoudh.atmani@telecom-bretagne.eu>:
the same error : //************************************************************************ //************************************************************************* [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9:05.382s [INFO] Finished at: Thu Jun 12 10:37:41 CEST 2014 [INFO] Final Memory: 154M/562M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project xwiki-platform-oldcore: There are test failures. [ERROR] [ERROR] Please refer to
/home/matmani/xwikibuild/xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :xwiki-platform-oldcore matmani@pc-eqi06128:~/xwikibuild/xwiki-platform$
//******************************************************************************************************************
Test set: com.xpn.xwiki.doc.XWikiDocumentTest
//*************************************************************************** <testcase name="testObjectNumbersAfterXMLRoundrip" classname="com.xpn.xwiki.doc.XWikiDocumentTest" time="0.257"> <error message="Error number 7005 in 7: Error instanciating property class" type="com.xpn.xwiki.XWikiException">com.xpn.xwiki.XWikiException: Error number 7005 in 7: Error instanciating property class at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:597) at com.xpn.xwiki.objects.BaseObject.fromXML(BaseObject.java:283) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4411) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4288) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4267) at
com.xpn.xwiki.doc.XWikiDocumentTest.testObjectNumbersAfterXMLRoundrip(XWikiDocumentTest.java:515) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at junit.framework.TestCase.runTest(TestCase.java:176) at org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: com.xpn.xwiki.XWikiException: Error number 7006 in 7: Cannot find property class com.xpn.xwiki.objects.classes.StaticListClass in MetaClass object at com.xpn.xwiki.objects.classes.PropertyClass.fromXML(PropertyClass.java:500) at com.xpn.xwiki.objects.classes.BaseClass.fromXML(BaseClass.java:593) ... 24 more </error> </testcase>
//******************************************************************************
-- View this message in context: http://xwiki.475771.n2.nabble.com/Maven-errors-tp7590867p7591017.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (5)
-
Clemens Klein-Robbenhaar -
Guillaume "Louis-Marie" Delhumeau -
Jeremie BOUSQUET -
Thomas Mortagne -
wafid