[xwiki-devs] Error building from source - xwiki-platform-web - standard
Hi, I have been building xwiki directly from source for past some time and everything is going fine. Very recently I tried to build xwiki-platform-web using the maven script under pom.xml for the first time. This got failed when building the standard module under web. Here is the console output of the script: Please tell me where I am going wrong. Thanks and advance Sachin ============================================================================= [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Platform - Web - Standard [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-remote-resources-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-remote-resources-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from xwiki-plugins-releases [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-web-gwt:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-web:1.3-SNAPSHOT: checking for updates from gwt-maven [INFO] snapshot com.xpn.xwiki.platform:xwiki-web:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:8-SNAPSHOT: checking for updates from gwt-maven [INFO] snapshot com.xpn.xwiki.platform:xwiki:8-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:8-SNAPSHOT: checking for updates from xwiki-snapshots [WARN] Cannot find parent POM: com.xpn.xwiki.platform:xwiki::8-SNAPSHOT for child: [inherited]:xwiki-web:pom:1.3-SNAPSHOT. Using stub model instead. [INFO] snapshot org.xwiki.platform:xwiki-core-plexus:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-api:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-containers-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-url:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-servlet:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-containers-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-action:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-web-gwt:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-plexus:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-api:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-url:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-servlet:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-action:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] remote-resources:process [WARN] Attempting to build MavenProject instance for Artifact (org.codehaus.swizzle:swizzle-confluence:1.1-20070908) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (xmlrpc:xmlrpc-client:3.0) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (velocity:velocity:1.5) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (xmlrpc:xmlrpc-server:3.0) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (groovy:groovy-all-1.0-jsr:06) of type: jar; constructing POM artifact instead. [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] org.apache.maven.model.Repository [INFO] ---------------------------------------------------------------------------- [INFO] Total time: 56 second [INFO] Finished at: Tue Jan 15 23:09:13 IST 2008 [INFO] Memory 19M/70M [INFO] ---------------------------------------------------------------------------- -- View this message in context: http://www.nabble.com/Error-building-from-source---xwiki-platform-web---stan... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Strange error. 2 things: 1) make sure you use the maven version certified working with XWiki. See the building page 2) run again with -e to see what the problem is Thanks -Vincent On Jan 15, 2008, at 6:46 PM, Sachn Mittal wrote:
Hi, I have been building xwiki directly from source for past some time and everything is going fine.
Very recently I tried to build xwiki-platform-web using the maven script under pom.xml for the first time. This got failed when building the standard module under web.
Here is the console output of the script: Please tell me where I am going wrong.
Thanks and advance Sachin
= = = = = = = ====================================================================== [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building XWiki Platform - Web - Standard [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-remote-resources- plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-remote-resources- plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates from xwiki-plugins-releases [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from xwiki-plugins-externals [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from xwiki-plugins-releases [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-web-gwt:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-web:1.3-SNAPSHOT: checking for updates from gwt-maven [INFO] snapshot com.xpn.xwiki.platform:xwiki-web:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:8-SNAPSHOT: checking for updates from gwt-maven [INFO] snapshot com.xpn.xwiki.platform:xwiki:8-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:8-SNAPSHOT: checking for updates from xwiki-snapshots [WARN] Cannot find parent POM: com.xpn.xwiki.platform:xwiki::8- SNAPSHOT for child: [inherited]:xwiki-web:pom:1.3-SNAPSHOT. Using stub model instead. [INFO] snapshot org.xwiki.platform:xwiki-core-plexus:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-api:1.3- SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-containers-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-url:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-servlet:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-containers-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-action:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-core-parent:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki:9-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.xpn.xwiki.platform:xwiki-web-gwt:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-plexus:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-api:1.3- SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-url:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-container-servlet:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot org.xwiki.platform:xwiki-core-action:1.3-SNAPSHOT: checking for updates from xwiki-externals [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] remote-resources:process [WARN] Attempting to build MavenProject instance for Artifact (org.codehaus.swizzle:swizzle-confluence:1.1-20070908) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (xmlrpc:xmlrpc-client:3.0) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (velocity:velocity:1.5) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (xmlrpc:xmlrpc-server:3.0) of type: jar; constructing POM artifact instead. [WARN] Attempting to build MavenProject instance for Artifact (groovy:groovy-all-1.0-jsr:06) of type: jar; constructing POM artifact instead. [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] org.apache.maven.model.Repository [INFO] ---------------------------------------------------------------------------- [INFO] Total time: 56 second [INFO] Finished at: Tue Jan 15 23:09:13 IST 2008 [INFO] Memory 19M/70M [INFO] ----------------------------------------------------------------------------
-- View this message in context: http://www.nabble.com/Error-building-from-source---xwiki-platform-web---stan... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Hi, Please find the relevant stack trace. Also I am using the Maven version: 2.0.8 and not the one suggested at building page. Till now all the maven builds were happening correctly except for this one. So I used the default one. Let me know if this error (from stack trace) is because of the maven version, then I update the snapshot one. If I am doing anything else wrong please let me know that too. all I ran was mvn install under \xwiki\xwiki-platform-web\standard. Thanks Sachin ======================================================================= [DEBUG] Building project for groovy:groovy-all-1.0-jsr:jar:06:compile [WARN] Attempting to build MavenProject instance for Artifact (groovy:groovy-all-1.0-jsr:06) of type: jar; constructing POM artifact instead. [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] org.apache.maven.model.Repository java.lang.ClassCastException: org.apache.maven.model.Repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:321) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:234) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:83) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:447) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:210) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:192) at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.getProjects(ProcessRemoteResourcesMojo.java:387) at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.configureVelocityContext(ProcessRemoteResourcesMojo.java:547) at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:316) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813) at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85) vmassol wrote:
Strange error.
2 things:
1) make sure you use the maven version certified working with XWiki. See the building page 2) run again with -e to see what the problem is
Thanks -Vincent
-- View this message in context: http://www.nabble.com/Error-building-from-source---xwiki-platform-web---stan... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Jan 16, 2008, at 4:41 PM, Sachn Mittal wrote:
Hi, Please find the relevant stack trace. Also I am using the Maven version: 2.0.8 and not the one suggested at building page. Till now all the maven builds were happening correctly except for this one. So I used the default one.
Let me know if this error (from stack trace) is because of the maven version, then I update the snapshot one.
If I am doing anything else wrong please let me know that too.
all I ran was mvn install under \xwiki\xwiki-platform-web\standard.
This is definitely not a xwiki issue... If you want to build xwiki you MUST use the version we recommend. Thanks -Vincent [snip]
Here is the list of stack traces I am getting with various maven versions and again rest of my maven targets went fine using them from eclipse: 1. building from eclipse using org.maven.ide.eclipse plugin: [DEBUG] Building project for groovy:groovy-all-1.0-jsr:jar:06:compile [WARN] Attempting to build MavenProject instance for Artifact (groovy:groovy-all-1.0-jsr:06) of type: jar; constructing POM artifact instead. [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] org.apache.maven.model.Repository java.lang.ClassCastException: org.apache.maven.model.Repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:321) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:234) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:83) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:447) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:210) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:192) at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.getProjects(ProcessRemoteResourcesMojo.java:387) at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.configureVelocityContext(ProcessRemoteResourcesMojo.java:547) at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:316) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813) at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85) 2. building from console using maven 2.0.8 version [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugin.surefire.SurefirePlugin.constructSurefireBooter(SurefirePlugin.java:594) at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:391) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) 3. building from console using 2.1 snapshot version on building page on dev.xwiki [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:308) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:124) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:906) at org.apache.maven.cli.MavenCli.main(MavenCli.java:377) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351) Caused by: java.lang.NullPointerException at org.apache.maven.plugin.surefire.SurefirePlugin.constructSurefireBooter(SurefirePlugin.java:594) at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:391) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:618) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:359) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:260) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:146) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:304) ... 11 more [INFO] ------------------------------------------------------------------------ I guess I am missing some setting. Do I need to set something in some property file or simply running mvn install in the standard directory is fine. Thanks Sachin vmassol wrote:
On Jan 16, 2008, at 4:41 PM, Sachn Mittal wrote:
Hi, Please find the relevant stack trace. Also I am using the Maven version: 2.0.8 and not the one suggested at building page. Till now all the maven builds were happening correctly except for this one. So I used the default one.
Let me know if this error (from stack trace) is because of the maven version, then I update the snapshot one.
If I am doing anything else wrong please let me know that too.
all I ran was mvn install under \xwiki\xwiki-platform-web\standard.
This is definitely not a xwiki issue...
If you want to build xwiki you MUST use the version we recommend.
Thanks -Vincent
[snip]
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- View this message in context: http://www.nabble.com/Error-building-from-source---xwiki-platform-web---stan... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi Sachin, This has nothing to do with xwiki AFAICS. If I were you I'd reinstall the maven version we recommend + clean your local repository + verify your settings.xml file. Thanks -Vincent On Jan 16, 2008, at 6:57 PM, Sachn Mittal wrote:
Here is the list of stack traces I am getting with various maven versions and again rest of my maven targets went fine using them from eclipse:
1. building from eclipse using org.maven.ide.eclipse plugin: [DEBUG] Building project for groovy:groovy-all-1.0-jsr:jar:06:compile [WARN] Attempting to build MavenProject instance for Artifact (groovy:groovy-all-1.0-jsr:06) of type: jar; constructing POM artifact instead. [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] org.apache.maven.model.Repository java.lang.ClassCastException: org.apache.maven.model.Repository at org .apache .maven .artifact .manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:321) at org .apache .maven .artifact .resolver .DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:234) at org .apache .maven .artifact .resolver .DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:83) at org .apache .maven .project .DefaultMavenProjectBuilder .findModelFromRepository(DefaultMavenProjectBuilder.java:447) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromRepository(DefaultMavenProjectBuilder.java:210) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromRepository(DefaultMavenProjectBuilder.java:192) at org .apache .maven .plugin .resources .remote .ProcessRemoteResourcesMojo .getProjects(ProcessRemoteResourcesMojo.java:387) at org .apache .maven .plugin .resources .remote .ProcessRemoteResourcesMojo .configureVelocityContext(ProcessRemoteResourcesMojo.java:547) at org .apache .maven .plugin .resources .remote .ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java: 316) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 578) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:328) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java: 813) at org .maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java: 85)
2. building from console using maven 2.0.8 version [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at org .apache .maven .plugin .surefire.SurefirePlugin.constructSurefireBooter(SurefirePlugin.java: 594) at org .apache .maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:391) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 447) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 539) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 459) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:278) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
3. building from console using 2.1 snapshot version on building page on dev.xwiki [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 308) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:124) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java: 906) at org.apache.maven.cli.MavenCli.main(MavenCli.java:377) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org .codehaus .plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: 289) at org .codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 229) at org .codehaus .plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: 408) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 351) Caused by: java.lang.NullPointerException at org .apache .maven .plugin .surefire.SurefirePlugin.constructSurefireBooter(SurefirePlugin.java: 594) at org .apache .maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:391) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 618) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:359) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:260) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:146) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 304) ... 11 more [INFO] ------------------------------------------------------------------------
I guess I am missing some setting. Do I need to set something in some property file or simply running mvn install in the standard directory is fine.
Thanks Sachin
vmassol wrote:
On Jan 16, 2008, at 4:41 PM, Sachn Mittal wrote:
Hi, Please find the relevant stack trace. Also I am using the Maven version: 2.0.8 and not the one suggested at building page. Till now all the maven builds were happening correctly except for this one. So I used the default one.
Let me know if this error (from stack trace) is because of the maven version, then I update the snapshot one.
If I am doing anything else wrong please let me know that too.
all I ran was mvn install under \xwiki\xwiki-platform-web\standard.
This is definitely not a xwiki issue...
If you want to build xwiki you MUST use the version we recommend.
Thanks -Vincent
[snip]
Hi, One has to run the script as: mvn install -Dmaven.test.skip=true surefire plugin fails if there are not test cases. you have fixed this in pom of gwt using: <!-- TODO: Disable unit tests temporarily as the only test there is failing... --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> I don't know if something needs to be done in the pom under standard. Anyway I am still learning maven so cannot say much but running above target solved my problem. Also just one question I did not want to start another thread for this .. Every time I run mvn builds it feteches latest snapshot of xwiki jars from the xwiki maven servers. I want to prevent this and always use the snapshot that I have created, how can I set this. is mvn -o install the right option. But I guess this would not get any updated jars. I still may want to get the updated jars of external libs we use but not of xwiki snapshots. Anyway to configure this specifically. Thanks a lot for your time and help. Sachin vmassol wrote:
Hi Sachin,
This has nothing to do with xwiki AFAICS. If I were you I'd reinstall the maven version we recommend + clean your local repository + verify your settings.xml file.
Thanks -Vincent
-- View this message in context: http://www.nabble.com/Error-building-from-source---xwiki-platform-web---stan... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Jan 17, 2008, at 6:57 AM, Sachn Mittal wrote:
Hi, One has to run the script as: mvn install -Dmaven.test.skip=true surefire plugin fails if there are not test cases.
you have fixed this in pom of gwt using: <!-- TODO: Disable unit tests temporarily as the only test there is failing... --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin>
I don't recall this so I'll have to check it and find out what was the problem.
I don't know if something needs to be done in the pom under standard. Anyway I am still learning maven so cannot say much but running above target solved my problem.
Also just one question I did not want to start another thread for this .. Every time I run mvn builds it feteches latest snapshot of xwiki jars from the xwiki maven servers. I want to prevent this and always use the snapshot that I have created, how can I set this. is mvn -o install the right option. But I guess this would not get any updated jars. I still may want to get the updated jars of external libs we use but not of xwiki snapshots. Anyway to configure this specifically.
mvn -nsu -Vincent
I am again facing the error after updating the code for 1.4. This time its a new error: [INFO] [war:inplace] [INFO] Generating webapp in source directory[E:\xwiki\xwiki-platform-web\standard\src\main\webapp] [INFO] Assembling webapp[xwiki-web-standard] in [E:\xwiki\xwiki-platform-web\standard\src\main\webapp] [INFO] Processing war project [INFO] Copy webapp webResources[E:\xwiki\xwiki-platform-web\standard\target/maven-shared-archive-resources] to[E:\xwiki\xwiki-platform-web\standard\src\main\web app] [INFO] Copy webapp webResources[E:\xwiki\xwiki-platform-web\standard\target/maven-shared-archive-resources/META-INF] to[E:\xwiki\xwiki-platform-web\standard\src \main\webapp] [INFO] Copy webapp webResources[E:\xwiki\xwiki-platform-web\standard/src/main/webInfResources] to[E:\xwiki\xwiki-platform-web\standard\src\main\webapp] [INFO] Copy webapp webResources[E:\xwiki\xwiki-platform-web\standard\target/skin] to[E:\xwiki\xwiki-platform-web\standard\src\main\webapp] [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] basedir E:\xwiki\xwiki-platform-web\standard\target\skin does not exist [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.IllegalStateException: basedir E:\xwiki\xwiki-platform-web\standard\target\skin does not exist Please let me know what would be the problem. It seems as now skins have moved to a separte folder under xwiki-platform-skins, pom under xwiki-platform-web\standard is not updated accordingly. Thanks Sachin ----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Error-building-from-source---xwiki-platform-web---stan... Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (3)
-
Sachin Mittal -
Sachn Mittal -
Vincent Massol