cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2252) when using the maven archetype to build a block (plain), the pom generated is invalid
Date Wed, 25 Feb 2009 21:47:04 GMT
when using the maven archetype to build a block (plain), the pom generated is invalid
-------------------------------------------------------------------------------------

                 Key: COCOON-2252
                 URL: https://issues.apache.org/jira/browse/COCOON-2252
             Project: Cocoon
          Issue Type: Bug
          Components: - Build System: Maven
    Affects Versions: 2.2
            Reporter: Robby Pelssers
             Fix For: 2.2


When using the maven archetype to build a cocoon block, the pom does not get generated properly.

$ mvn archetype:generate -DarchetypeCatalog=http://cocoon.apache.org
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from
central
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://cocoon.apache.org -> cocoon-22-archetype-block-plain (Creates an empty Cocoon
block; useful if you want to add another block to a Cocoon application)
2: http://cocoon.apache.org -> cocoon-22-archetype-block (Creates a Cocoon block containing
some small samples)
3: http://cocoon.apache.org -> cocoon-22-archetype-webapp (Creates a web application configured
to host Cocoon blocks. Just add the block dependencies)
Choose a number:  (1/2/3): 1
Define value for groupId: : com.ciber
Define value for artifactId: : demo
Define value for version:  1.0-SNAPSHOT: : 1.0.0
Define value for package:  com.ciber: : com.ciber.demo
Confirm properties configuration:
groupId: com.ciber
artifactId: demo
version: 1.0.0
package: com.ciber.demo
 Y: : y
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating OldArchetype: cocoon-22-archetype-block-plain:1.0.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: com.ciber
[INFO] Parameter: packageName, Value: com.ciber.demo
[INFO] Parameter: basedir, Value: d:\development\workspaces
[INFO] Parameter: package, Value: com.ciber.demo
[INFO] Parameter: version, Value: 1.0.0
[INFO] Parameter: artifactId, Value: demo
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template =
archetype-resources/pom.xml [line 20,column 6] : $Id is not a valid reference.
[INFO] ********************* End of debug info from resources from generated POM ***********************
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template =
archetype-resources/src/main/resources/META-INF/cocoon/spring/block-servlet-se
mn 6] : $Id is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template =
archetype-resources/src/main/resources/META-INF/cocoon/spring/block-applicatio
column 6] : $Id is not a valid reference.
[INFO] OldArchetype created in dir: d:\development\workspaces\demo
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48 seconds
[INFO] Finished at: Wed Feb 25 22:36:35 CET 2009
[INFO] Final Memory: 8M/14M
[INFO] ------------------------------------------------------------------------


Results in  following invalid pom snippet:

<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.ciber</groupId>
    <artifactId>[parent-archetype-id]</artifactId>
    <version>[parent-version]</version>
  </parent>
  <name>demo</name>
  <artifactId>demo</artifactId>
  <version>1.0.0</version>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message