Yes... I noticed the same issue when using the maven archetype. I just replaced the generated pom snippet with the one below to get it working:
<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> <packaging>jar</packaging> <name>common</name> <groupId>com.nxp.spider</groupId> <artifactId>common</artifactId> <version>1.0.0</version> ... </project> Cheers, Robby Pelssers -----Original Message----- From: Jose Luis Carmona [mailto:[email protected]] Sent: vrijdag 20 februari 2009 12:23 To: [email protected] Subject: Problems creating block Hi, I'm having some problems creating a new block. I'm using maven 2.0.9 whit the next commandline mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org After y select option 2, and the pom generated is: <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> <packaging>jar</packaging> <parent> <groupId>com.integromics</groupId> <artifactId>[parent-archetype-id]</artifactId> <version>[parent-version]</version> </parent> <name>flowexamp</name> <groupId>com.integromics</groupId> <artifactId>flowexamp</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.apache.cocoon</groupId> <artifactId>cocoon-core</artifactId> </dependency> <dependency> <groupId>org.apache.cocoon</groupId> <artifactId>cocoon-servlet-service-components</artifactId> </dependency> <dependency> <groupId>org.apache.cocoon</groupId> <artifactId>cocoon-template-impl</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <scope>provided</scope> </dependency> <!-- Test dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> </project> If you look the parent node is incorrect, and the version tag inside all dependecies is not generate. Thanks all, Jose Luis Carmona --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
