Hi, I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xe- debug-web) into a war file, I can deploy the result in a webserver. Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message: mvn package : [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: xe-debug-web:xe-debug-web Reason: Parent: null:xwiki-web-standard:war:null of project: xe-debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory: ... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources/META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/main/ webInfResources does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ... Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again. All pointers much appreciated, J.L.Simon
Hi, If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project. The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency. Something like: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project> On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected]> wrote:
Hi,
I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xe- debug-web) into a war file, I can deploy the result in a webserver.
Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message:
mvn package :
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: xe-debug-web:xe-debug-web
Reason: Parent: null:xwiki-web-standard:war:null of project: xe-debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory:
... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources/META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/main/ webInfResources does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ...
Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again.
All pointers much appreciated, J.L.Simon
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hello Thomas, thanks for the help. I tried to do as you suggested and got as far as setting the project up and downloading all the dependencies. However, once that is done, I get the following error: mvn package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: com.kontrast.vodafone:portal-wiki Reason: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 04 11:36:29 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ On 04.12.2008, at 10:12, Thomas Mortagne wrote:
Hi,
If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project.
The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency.
Something like:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xe- debug-web) into a war file, I can deploy the result in a webserver.
Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message:
mvn package :
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: xe-debug-web:xe-debug-web
Reason: Parent: null:xwiki-web-standard:war:null of project: xe- debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe-debug- web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory:
... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources/ META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/ simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug- web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/main/ webInfResources does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ...
Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again.
All pointers much appreciated, J.L.Simon
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Did you added the xwiki setting to .m2/setting.xml you can find at http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven ? Which version of maven are you using ? On Thu, Dec 4, 2008 at 11:37 AM, Juergen Lorenz Simon <[email protected]> wrote:
Hello Thomas,
thanks for the help. I tried to do as you suggested and got as far as setting the project up and downloading all the dependencies. However, once that is done, I get the following error:
mvn package
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: com.kontrast.vodafone:portal-wiki
Reason: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 04 11:36:29 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
On 04.12.2008, at 10:12, Thomas Mortagne wrote:
Hi,
If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project.
The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency.
Something like:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xe- debug-web) into a war file, I can deploy the result in a webserver.
Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message:
mvn package :
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: xe-debug-web:xe-debug-web
Reason: Parent: null:xwiki-web-standard:war:null of project: xe- debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe-debug- web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory:
... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources/ META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/ simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug- web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/main/ webInfResources does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ...
Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again.
All pointers much appreciated, J.L.Simon
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi, On 04.12.2008, at 12:24, Thomas Mortagne wrote:
Did you added the xwiki setting to .m2/setting.xml you can find at http://dev.xwiki.org/xwiki/bin/view/Community/ Building#HInstallingMaven
Yes. Just to make sure that nothing changed in the meantime (since I first added the xwiki profile) I re-added it from that page. Problem persists.
Which version of maven are you using ?
mvn -version Maven version: 2.0.9 Java version: 1.5.0_16 OS name: "mac os x" version: "10.5.5" arch: "i386" Family: "unix"
On Thu, Dec 4, 2008 at 11:37 AM, Juergen Lorenz Simon <[email protected]
wrote: Hello Thomas,
thanks for the help. I tried to do as you suggested and got as far as setting the project up and downloading all the dependencies. However, once that is done, I get the following error:
mvn package
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: com.kontrast.vodafone:portal-wiki
Reason: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 04 11:36:29 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
On 04.12.2008, at 10:12, Thomas Mortagne wrote:
Hi,
If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project.
The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency.
Something like:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xe- debug-web) into a war file, I can deploy the result in a webserver.
Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message:
mvn package :
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: xe-debug-web:xe-debug-web
Reason: Parent: null:xwiki-web-standard:war:null of project: xe- debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug- web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe-debug- web has wrong packaging: war. Must be 'pom'. for project xe-debug- web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory:
... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/ xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources/ META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/ simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug- web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/main/ webInfResources does not exist at org .codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ...
Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again.
All pointers much appreciated, J.L.Simon
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Sorry I made a mistake you can't have war project as parent, you have to set XE web project as dependency: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-myenterprise-web</artifactId> <version>1.0</version> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project> On Thu, Dec 4, 2008 at 12:59 PM, Juergen Lorenz Simon <[email protected]> wrote:
Hi,
On 04.12.2008, at 12:24, Thomas Mortagne wrote:
Did you added the xwiki setting to .m2/setting.xml you can find at http://dev.xwiki.org/xwiki/bin/view/Community/ Building#HInstallingMaven
Yes. Just to make sure that nothing changed in the meantime (since I first added the xwiki profile) I re-added it from that page. Problem persists.
Which version of maven are you using ?
mvn -version
Maven version: 2.0.9 Java version: 1.5.0_16 OS name: "mac os x" version: "10.5.5" arch: "i386" Family: "unix"
On Thu, Dec 4, 2008 at 11:37 AM, Juergen Lorenz Simon <[email protected]
wrote: Hello Thomas,
thanks for the help. I tried to do as you suggested and got as far as setting the project up and downloading all the dependencies. However, once that is done, I get the following error:
mvn package
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: com.kontrast.vodafone:portal-wiki
Reason: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 04 11:36:29 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
On 04.12.2008, at 10:12, Thomas Mortagne wrote:
Hi,
If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project.
The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency.
Something like:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xe- debug-web) into a war file, I can deploy the result in a webserver.
Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message:
mvn package :
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: xe-debug-web:xe-debug-web
Reason: Parent: null:xwiki-web-standard:war:null of project: xe- debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug- web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe-debug- web has wrong packaging: war. Must be 'pom'. for project xe-debug- web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory:
... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/ xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive-resources/ META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/ simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug- web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/main/ webInfResources does not exist at org .codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ...
Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again.
All pointers much appreciated, J.L.Simon
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi, when I use this dependency to xwiki-enterprise-web, I get a missing artifact: 12/4/08 3:10:16 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile I did browse the xwiki repositories from the settins.xml file, neither the release nor the snapshot repository contain anything that fits. Do I need to install something into my local repository first? Cheers, J. On 04.12.2008, at 13:45, Thomas Mortagne wrote:
Sorry I made a mistake you can't have war project as parent, you have to set XE web project as dependency:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-myenterprise-web</artifactId> <version>1.0</version> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 12:59 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
On 04.12.2008, at 12:24, Thomas Mortagne wrote:
Did you added the xwiki setting to .m2/setting.xml you can find at http://dev.xwiki.org/xwiki/bin/view/Community/ Building#HInstallingMaven
Yes. Just to make sure that nothing changed in the meantime (since I first added the xwiki profile) I re-added it from that page. Problem persists.
Which version of maven are you using ?
mvn -version
Maven version: 2.0.9 Java version: 1.5.0_16 OS name: "mac os x" version: "10.5.5" arch: "i386" Family: "unix"
On Thu, Dec 4, 2008 at 11:37 AM, Juergen Lorenz Simon <[email protected]
wrote: Hello Thomas,
thanks for the help. I tried to do as you suggested and got as far as setting the project up and downloading all the dependencies. However, once that is done, I get the following error:
mvn package
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: com.kontrast.vodafone:portal-wiki
Reason: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- enterprise-web:war:null of project: com.kontrast.vodafone:portal- wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 04 11:36:29 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
On 04.12.2008, at 10:12, Thomas Mortagne wrote:
Hi,
If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project.
The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency.
Something like:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
I've created an XWiki plugin, which uses a whole lot of frameworks to do it's job, including WebObjects, ProjectWonder and some of our own frameworks. It's running fine in Eclipse. When I package the resulting webapp from the workspace's server area (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ xe- debug-web) into a war file, I can deploy the result in a webserver.
Now I would like to be able to package the xe-debug-web from the command line or Eclipse into a .war. However: When I invoke mvn clean package (or any other mvn command for that matter) inside the xe-debug-web project directory, i get the following error message:
mvn package :
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: xe-debug-web:xe-debug-web
Reason: Parent: null:xwiki-web-standard:war:null of project: xe- debug- web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug-web
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- web-standard:war:null of project: xe-debug-web:xe-debug-web has wrong packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug- web at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-web-standard:war:null of project: xe-debug-web:xe- debug- web has wrong packaging: war. Must be 'pom'. for project xe-debug- web:xe- debug-web at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder .build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
I don't know what to do about this message. So my thought was to create a Maven goal in Eclipse from the run configurations. However, the 'war' goal seems to be quite fussy about the layout, and the xe-debug-web project layout does not to be satisfactory:
... [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] [INFO] Processing war project [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive- resources] to[/ Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/ xe- debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/target/maven-shared-archive- resources/ META- INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug- web/ target/xe-debug-web-1.6.1] [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/ simon/ Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug- web-1.6.1] Exception in thread "main" java.lang.IllegalStateException: basedir / Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/ main/ webInfResources does not exist at org .codehaus .plexus.util.DirectoryScanner.scan(DirectoryScanner.java: 550) ...
Since both approaches failed, I need some advice on how to package the xe-debug-web into a proper WAR file again.
All pointers much appreciated, J.L.Simon
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Thu, Dec 4, 2008 at 3:12 PM, Juergen Lorenz Simon <[email protected]> wrote:
Hi,
when I use this dependency to xwiki-enterprise-web, I get a missing artifact:
12/4/08 3:10:16 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile
http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web... Try forcing <packaging>war</packaging> for the xe dependency, it's working without it for me but i'm using maven 2.1M1
I did browse the xwiki repositories from the settins.xml file, neither the release nor the snapshot repository contain anything that fits. Do I need to install something into my local repository first?
Cheers, J.
On 04.12.2008, at 13:45, Thomas Mortagne wrote:
Sorry I made a mistake you can't have war project as parent, you have to set XE web project as dependency:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-myenterprise-web</artifactId> <version>1.0</version> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 12:59 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
On 04.12.2008, at 12:24, Thomas Mortagne wrote:
Did you added the xwiki setting to .m2/setting.xml you can find at http://dev.xwiki.org/xwiki/bin/view/Community/ Building#HInstallingMaven
Yes. Just to make sure that nothing changed in the meantime (since I first added the xwiki profile) I re-added it from that page. Problem persists.
Which version of maven are you using ?
mvn -version
Maven version: 2.0.9 Java version: 1.5.0_16 OS name: "mac os x" version: "10.5.5" arch: "i386" Family: "unix"
On Thu, Dec 4, 2008 at 11:37 AM, Juergen Lorenz Simon <[email protected]
wrote: Hello Thomas,
thanks for the help. I tried to do as you suggested and got as far as setting the project up and downloading all the dependencies. However, once that is done, I get the following error:
mvn package
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM).
Project ID: com.kontrast.vodafone:portal-wiki
Reason: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki
[INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Parent: null:xwiki- enterprise-web:war:null of project: com.kontrast.vodafone:portal- wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 292) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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) Caused by: org.apache.maven.project.ProjectBuildingException: Parent: null:xwiki-enterprise-web:war:null of project: com.kontrast.vodafone:portal-wiki has wrong packaging: war. Must be 'pom'. for project com.kontrast.vodafone:portal-wiki at org .apache .maven .project .DefaultMavenProjectBuilder .assembleLineage(DefaultMavenProjectBuilder.java:1377) at org .apache .maven .project .DefaultMavenProjectBuilder .buildInternal(DefaultMavenProjectBuilder.java:821) at org .apache .maven .project .DefaultMavenProjectBuilder .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org .apache .maven .project .DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java: 198) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: 583) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: 461) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) ... 11 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu Dec 04 11:36:29 CET 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
On 04.12.2008, at 10:12, Thomas Mortagne wrote:
Hi,
If you folowed the tuto at http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse xe-web-dev is composed by Eclipse linked folders and maven or m2eclipse does not support it when building so a mvn install or any other building command will not see any of the folders which are not really in this project.
The easier way to package a new clean war project based on XE is to create a maven war project with XE as parent and having your plugin as dependency.
Something like:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </parent> <artifactId>xwiki-myenterprise-web</artifactId> <name>XWiki Products - My Enterprise - Web</name> <packaging>war</packaging> <description>XWiki Products - My Enterprise - Web</description> <dependencies> <dependency> <groupId>com.xpn.xwiki.platform.plugins</groupId> <artifactId>xwiki-plugin-myplugin</artifactId> <version>1.0</version> </dependency> </dependencies> </project>
On Thu, Dec 4, 2008 at 2:21 AM, Juergen Lorenz Simon <[email protected] > wrote: > Hi, > > I've created an XWiki plugin, which uses a whole lot of > frameworks > to > do it's job, including > WebObjects, ProjectWonder and some of our own frameworks. It's > running > fine in Eclipse. > When I package the resulting webapp from the workspace's server > area > (.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ > xe- > debug-web) > into a war file, I can deploy the result in a webserver. > > Now I would like to be able to package the xe-debug-web from the > command line > or Eclipse into a .war. However: When I invoke mvn clean package > (or > any other > mvn command for that matter) inside the xe-debug-web project > directory, i get the > following error message: > > mvn package : > > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error building POM (may not be this project's POM). > > > Project ID: xe-debug-web:xe-debug-web > > Reason: Parent: null:xwiki-web-standard:war:null of project: xe- > debug- > web:xe-debug-web has wrong packaging: war. Must be 'pom'. for > project > xe-debug-web:xe-debug-web > > > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.reactor.MavenExecutionException: Parent: > null:xwiki- > web-standard:war:null of project: xe-debug-web:xe-debug-web has > wrong > packaging: war. Must be 'pom'. for project xe-debug-web:xe-debug- > web > at > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: > 292) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: > 129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > 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) > Caused by: org.apache.maven.project.ProjectBuildingException: > Parent: > null:xwiki-web-standard:war:null of project: xe-debug-web:xe- > debug- > web > has wrong packaging: war. Must be 'pom'. for project xe-debug- > web:xe- > debug-web > at > org > .apache > .maven > .project > .DefaultMavenProjectBuilder > .assembleLineage(DefaultMavenProjectBuilder.java:1377) > at > org > .apache > .maven > .project > .DefaultMavenProjectBuilder > .buildInternal(DefaultMavenProjectBuilder.java:821) > at > org > .apache > .maven > .project > .DefaultMavenProjectBuilder > .buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) > at > org > .apache > .maven > .project > .DefaultMavenProjectBuilder > .build(DefaultMavenProjectBuilder.java: > 198) > at > org.apache.maven.DefaultMaven.getProject(DefaultMaven.java: > 583) > at > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java: > 461) > at > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) > ... 11 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Wed Dec 03 18:41:14 CET 2008 > [INFO] Final Memory: 1M/2M > [INFO] > ------------------------------------------------------------------------ > > I don't know what to do about this message. So my thought was to > create a Maven goal > in Eclipse from the run configurations. However, the 'war' goal > seems > to be quite fussy > about the layout, and the xe-debug-web project layout does not to > be > satisfactory: > > ... > [INFO] [war:war] > [INFO] Packaging webapp > [INFO] Assembling webapp[xe-debug-web] in [/Users/simon/Projects/ > Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug-web-1.6.1] > [INFO] Processing war project > [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ > MavenWorkspace/xe-debug-web/target/maven-shared-archive- > resources] > to[/ > Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/target/ > xe- > debug-web-1.6.1] > [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ > MavenWorkspace/xe-debug-web/target/maven-shared-archive- > resources/ > META- > INF] to[/Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug- > web/ > target/xe-debug-web-1.6.1] > [INFO] Copy webapp webResources[/Users/simon/Projects/Kontrast/ > MavenWorkspace/xe-debug-web/src/main/webInfResources] to[/Users/ > simon/ > Projects/Kontrast/MavenWorkspace/xe-debug-web/target/xe-debug- > web-1.6.1] > Exception in thread "main" java.lang.IllegalStateException: > basedir / > Users/simon/Projects/Kontrast/MavenWorkspace/xe-debug-web/src/ > main/ > webInfResources does not exist > at > org > .codehaus > .plexus.util.DirectoryScanner.scan(DirectoryScanner.java: > 550) > ... > > Since both approaches failed, I need some advice on how to > package > the > xe-debug-web into > a proper WAR file again. > > All pointers much appreciated, > J.L.Simon > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs >
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi again, On 04.12.2008, at 15:53, Thomas Mortagne wrote:
On Thu, Dec 4, 2008 at 3:12 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
when I use this dependency to xwiki-enterprise-web, I get a missing artifact:
12/4/08 3:10:16 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile
http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web...
Try forcing <packaging>war</packaging> for the xe dependency, it's working without it for me but i'm using maven 2.1M1
Nope. Same result. (it was set to war before, btw.): 12/4/08 4:15:23 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile Here's my project's pom.xml file: <?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <groupId>com.kontrast.vodafone</groupId> <artifactId>portal-wiki</artifactId> <packaging>war</packaging> <version>1.0</version> <dependencies> <dependency> <groupId>com.kontrast.vodafone.portal.xwiki</groupId> <artifactId>xwiki-plugin-portalindexer</artifactId> <version>0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> </dependency> </dependencies> <build> <finalName>portal-wiki</finalName> </build> </project>
On Thu, Dec 4, 2008 at 4:17 PM, Juergen Lorenz Simon <[email protected]> wrote:
Hi again,
On 04.12.2008, at 15:53, Thomas Mortagne wrote:
On Thu, Dec 4, 2008 at 3:12 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
when I use this dependency to xwiki-enterprise-web, I get a missing artifact:
12/4/08 3:10:16 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile
http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web...
Try forcing <packaging>war</packaging> for the xe dependency, it's working without it for me but i'm using maven 2.1M1
Nope. Same result. (it was set to war before, btw.):
Not the pom packaging but the dependency packaging:
12/4/08 4:15:23 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile
Here's my project's pom.xml file:
<?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion>
<groupId>com.kontrast.vodafone</groupId> <artifactId>portal-wiki</artifactId> <packaging>war</packaging> <version>1.0</version>
<dependencies> <dependency> <groupId>com.kontrast.vodafone.portal.xwiki</groupId> <artifactId>xwiki-plugin-portalindexer</artifactId> <version>0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version>
add <packaging>war</packaging> here
</dependency> </dependencies>
<build> <finalName>portal-wiki</finalName> </build> </project>
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hello, On 04.12.2008, at 16:23, Thomas Mortagne wrote:
On Thu, Dec 4, 2008 at 4:17 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi again,
On 04.12.2008, at 15:53, Thomas Mortagne wrote:
On Thu, Dec 4, 2008 at 3:12 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
when I use this dependency to xwiki-enterprise-web, I get a missing artifact:
12/4/08 3:10:16 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7- SNAPSHOT:compile
http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web...
Try forcing <packaging>war</packaging> for the xe dependency, it's working without it for me but i'm using maven 2.1M1
Nope. Same result. (it was set to war before, btw.):
Not the pom packaging but the dependency packaging:
12/4/08 4:15:23 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile
Here's my project's pom.xml file:
<?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion>
<groupId>com.kontrast.vodafone</groupId> <artifactId>portal-wiki</artifactId> <packaging>war</packaging> <version>1.0</version>
<dependencies> <dependency> <groupId>com.kontrast.vodafone.portal.xwiki</ groupId> <artifactId>xwiki-plugin-portalindexer</ artifactId> <version>0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version>
add <packaging>war</packaging> here
Yes, I thought you might have meant that. I tried it before only to receive the following xml error from the parser: Unrecognised tag: 'packaging' (position: START_TAG seen ...</version>\n \t\t<packaging>... @25:18) portal-wiki line 25 pom.xml Maven Problem the only valid option for me is to use <type>war</type> instead of packaging, but that only gets me the same error message, only with war: <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> <type>war</type> </dependency> yields: 12/4/08 4:49:10 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:war:1.7-SNAPSHOT:compile
On Thu, Dec 4, 2008 at 4:53 PM, Juergen Lorenz Simon <[email protected]> wrote:
Hello,
On 04.12.2008, at 16:23, Thomas Mortagne wrote:
On Thu, Dec 4, 2008 at 4:17 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi again,
On 04.12.2008, at 15:53, Thomas Mortagne wrote:
On Thu, Dec 4, 2008 at 3:12 PM, Juergen Lorenz Simon <[email protected]
wrote: Hi,
when I use this dependency to xwiki-enterprise-web, I get a missing artifact:
12/4/08 3:10:16 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7- SNAPSHOT:compile
http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web...
Try forcing <packaging>war</packaging> for the xe dependency, it's working without it for me but i'm using maven 2.1M1
Nope. Same result. (it was set to war before, btw.):
Not the pom packaging but the dependency packaging:
12/4/08 4:15:23 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT:compile
Here's my project's pom.xml file:
<?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion>
<groupId>com.kontrast.vodafone</groupId> <artifactId>portal-wiki</artifactId> <packaging>war</packaging> <version>1.0</version>
<dependencies> <dependency> <groupId>com.kontrast.vodafone.portal.xwiki</ groupId> <artifactId>xwiki-plugin-portalindexer</ artifactId> <version>0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version>
add <packaging>war</packaging> here
Yes, I thought you might have meant that. I tried it before only to receive the following xml error from the parser:
Unrecognised tag: 'packaging' (position: START_TAG seen ...</version>\n \t\t<packaging>... @25:18) portal-wiki line 25 pom.xml Maven Problem
the only valid option for me is to use <type>war</type> instead of packaging, but that only gets me the same error message, only with war:
yes it's "type" in that context not "packaging" (I did not checked). Can you copy paste here the entire maven build log ?
<dependency> <groupId>com.xpn.xwiki.products</groupId> <artifactId>xwiki-enterprise-web</artifactId> <version>1.7-SNAPSHOT</version> <type>war</type> </dependency>
yields:
12/4/08 4:49:10 PM CET: Missing indirectly referenced artifact com.xpn.xwiki.products:xwiki-enterprise-web:war:1.7-SNAPSHOT:compile
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi,
Can you copy paste here the entire maven build log ?
Sure thing: asimov:portal-wiki simon$ mvn clean package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building portal-wiki Maven Webapp [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /Users/simon/Projects/Kontrast/ MavenWorkspace/portal-wiki/target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from mdimension [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from snapshots.jboss.org [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from xwiki-snapshots Downloading: http://webobjects.mdimension.com/maven2/releases/groovy/groovy-all-1.0-jsr/0... Downloading: http://repository.jboss.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1... Downloading: http://maven.xwiki.org/externals/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0... Downloading: http://maven.xwiki.org/releases/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-... Downloading: http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-js... Downloading: http://webobjects.mdimension.com/maven2/releases/opensymphony/quartz/1.6.0/q... Downloading: http://repository.jboss.org/maven2/opensymphony/quartz/1.6.0/quartz-1.6.0.po... Downloading: http://maven.xwiki.org/externals/opensymphony/quartz/1.6.0/quartz-1.6.0.pom Downloading: http://maven.xwiki.org/releases/opensymphony/quartz/1.6.0/quartz-1.6.0.pom Downloading: http://repo1.maven.org/maven2/opensymphony/quartz/1.6.0/quartz-1.6.0.pom Downloading: http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.xpn.xwiki.products - DartifactId=xwiki-enterprise-web -Dversion=1.7-20081203.235838-1252 - Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.xpn.xwiki.products - DartifactId=xwiki-enterprise-web -Dversion=1.7-20081203.235838-1252 - Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.kontrast.vodafone:portal-wiki:war:1.0 2) com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT ---------- 1 required artifact is missing. for artifact: com.kontrast.vodafone:portal-wiki:war:1.0 from the specified remote repositories: xwiki-releases (http://maven.xwiki.org/releases), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2), mdimension (http://webobjects.mdimension.com/maven2/releases), xwiki-snapshots (http://maven.xwiki.org/snapshots), xwiki-externals (http://maven.xwiki.org/externals), snapshots.jboss.org (http://snapshots.jboss.org/maven2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Thu Dec 04 17:43:28 CET 2008 [INFO] Final Memory: 15M/27M [INFO] ------------------------------------------------------------------------
On Thu, Dec 4, 2008 at 5:44 PM, Juergen Lorenz Simon <[email protected]> wrote:
Hi,
Can you copy paste here the entire maven build log ?
Sure thing:
asimov:portal-wiki simon$ mvn clean package
[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building portal-wiki Maven Webapp [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /Users/simon/Projects/Kontrast/ MavenWorkspace/portal-wiki/target [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from mdimension [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from snapshots.jboss.org [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from xwiki-externals [INFO] snapshot com.kontrast.vodafone.portal.xwiki:xwiki-plugin- portalindexer:0.1-SNAPSHOT: checking for updates from xwiki-snapshots Downloading: http://webobjects.mdimension.com/maven2/releases/groovy/groovy-all-1.0-jsr/0... Downloading: http://repository.jboss.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1... Downloading: http://maven.xwiki.org/externals/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0... Downloading: http://maven.xwiki.org/releases/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-... Downloading: http://repo1.maven.org/maven2/groovy/groovy-all-1.0-jsr/06/groovy-all-1.0-js... Downloading: http://webobjects.mdimension.com/maven2/releases/opensymphony/quartz/1.6.0/q... Downloading: http://repository.jboss.org/maven2/opensymphony/quartz/1.6.0/quartz-1.6.0.po... Downloading: http://maven.xwiki.org/externals/opensymphony/quartz/1.6.0/quartz-1.6.0.pom Downloading: http://maven.xwiki.org/releases/opensymphony/quartz/1.6.0/quartz-1.6.0.pom Downloading: http://repo1.maven.org/maven2/opensymphony/quartz/1.6.0/quartz-1.6.0.pom Downloading: http://maven.xwiki.org/snapshots/com/xpn/xwiki/products/xwiki-enterprise-web...
It still search for jar and not war, are you sure you correctly set the <type>war</type> ?
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact.
Missing: ---------- 1) com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command: mvn install:install-file -DgroupId=com.xpn.xwiki.products - DartifactId=xwiki-enterprise-web -Dversion=1.7-20081203.235838-1252 - Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.xpn.xwiki.products - DartifactId=xwiki-enterprise-web -Dversion=1.7-20081203.235838-1252 - Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency: 1) com.kontrast.vodafone:portal-wiki:war:1.0 2) com.xpn.xwiki.products:xwiki-enterprise-web:jar:1.7-SNAPSHOT
---------- 1 required artifact is missing.
for artifact: com.kontrast.vodafone:portal-wiki:war:1.0
from the specified remote repositories: xwiki-releases (http://maven.xwiki.org/releases), central (http://repo1.maven.org/maven2), repository.jboss.org (http://repository.jboss.org/maven2), mdimension (http://webobjects.mdimension.com/maven2/releases), xwiki-snapshots (http://maven.xwiki.org/snapshots), xwiki-externals (http://maven.xwiki.org/externals), snapshots.jboss.org (http://snapshots.jboss.org/maven2)
[INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Thu Dec 04 17:43:28 CET 2008 [INFO] Final Memory: 15M/27M [INFO] ------------------------------------------------------------------------
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (2)
-
Juergen Lorenz Simon -
Thomas Mortagne