You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2006/11/08 09:57:01 UTC
Re: svn commit: r472413 - /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
giacomo@apache.org wrote:
> Author: giacomo
> Date: Tue Nov 7 23:50:28 2006
> New Revision: 472413
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=472413
> Log:
> added MANIFEST entry for Cocoon Blocks
>
> Modified:
> cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
>
> Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
> URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml?view=diff&rev=472413&r1=472412&r2=472413
> ==============================================================================
> --- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml (original)
> +++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml Tue Nov 7 23:50:28 2006
> @@ -62,6 +62,18 @@
> <contextPath>/</contextPath>
> </configuration>
> </plugin>
> + <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-jar-plugin</artifactId>
> + <version>2.1</version>
> + <configuration>
> + <archive>
> + <manifestEntries>
> + <Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name>
> + </manifestEntries>
> + </archive>
> + </configuration>
> + </plugin>
Will that work? I know this does not:
<webAppSourceDirectory>target/${artifactId}-${version}</webAppSourceDirectory>
${artifactId}, ${version} are processed during archetype creation and
all you get are static strings.
--
Leszek Gawron CTO at MobileBox Ltd.
Re: svn commit: r472413 - /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
Posted by Lars Trieloff <la...@trieloff.net>.
${pom.artifactId} in the Manifest is verified to work.
Lars
Am 08.11.2006 um 09:57 schrieb Leszek Gawron:
> giacomo@apache.org wrote:
>> Author: giacomo
>> Date: Tue Nov 7 23:50:28 2006
>> New Revision: 472413
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=472413
>> Log:
>> added MANIFEST entry for Cocoon Blocks
>>
>> Modified:
>> cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/
>> main/resources/archetype-resources/pom.xml
>>
>> Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/
>> src/main/resources/archetype-resources/pom.xml
>> URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/
>> cocoon-22-archetype-block/src/main/resources/archetype-resources/
>> pom.xml?view=diff&rev=472413&r1=472412&r2=472413
>> =====================================================================
>> =========
>> --- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/
>> main/resources/archetype-resources/pom.xml (original)
>> +++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/
>> main/resources/archetype-resources/pom.xml Tue Nov 7 23:50:28 2006
>> @@ -62,6 +62,18 @@
>> <contextPath>/</contextPath>
>> </configuration>
>> </plugin>
>> + <plugin>
>> + <groupId>org.apache.maven.plugins</groupId>
>> + <artifactId>maven-jar-plugin</artifactId>
>> + <version>2.1</version>
>> + <configuration>
>> + <archive>
>> + <manifestEntries>
>> + <Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-
>> Name>
>> + </manifestEntries>
>> + </archive>
>> + </configuration>
>> + </plugin>
>
> Will that work? I know this does not:
>
> <webAppSourceDirectory>target/${artifactId}-${version}</
> webAppSourceDirectory>
>
> ${artifactId}, ${version} are processed during archetype creation and
> all you get are static strings.
>
> --
> Leszek Gawron CTO at MobileBox Ltd.
>
--
Lars Trieloff
visit http://www.mindquarry.com/
Re: svn commit: r472413 - /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
Posted by Reinhard Poetz <re...@apache.org>.
Leszek Gawron wrote:
> Giacomo Pati wrote:
>> I've checked it. The generated pom look as expected.
>
>> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 21,column 16] : $Id is not a valid reference.
>> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 72,column 34] : ${pom.artifactId} 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/COB-INF/demo.js [line 18,column 13] : $Id is not a valid reference.
The above warning is correct as the archetype doesn't have a reference to
pom.artifactId. You have to differentiate between the generation step and builds
that are performed _after_ the project has been created. For those the
${pom.artifactId} expression does work.
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Re: svn commit: r472413 - /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Giacomo Pati wrote:
> I've checked it. The generated pom look as expected.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 21,column 16] : $Id is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 72,column 34] : ${pom.artifactId} 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/COB-INF/demo.js [line 18,column 13] : $Id is not a valid reference.
--
Leszek Gawron CTO at MobileBox Ltd.
Re: svn commit: r472413 - /cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
Posted by Giacomo Pati <gi...@apache.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've checked it. The generated pom look as expected.
Ciao and thanks
Leszek Gawron wrote:
> giacomo@apache.org wrote:
>> Author: giacomo
>> Date: Tue Nov 7 23:50:28 2006
>> New Revision: 472413
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=472413
>> Log:
>> added MANIFEST entry for Cocoon Blocks
>>
>> Modified:
>> cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
>>
>> Modified: cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
>> URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml?view=diff&rev=472413&r1=472412&r2=472413
>> ==============================================================================
>> --- cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml (original)
>> +++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml Tue Nov 7 23:50:28 2006
>> @@ -62,6 +62,18 @@
>> <contextPath>/</contextPath>
>> </configuration>
>> </plugin>
>> + <plugin>
>> + <groupId>org.apache.maven.plugins</groupId>
>> + <artifactId>maven-jar-plugin</artifactId>
>> + <version>2.1</version>
>> + <configuration>
>> + <archive>
>> + <manifestEntries>
>> + <Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name>
>> + </manifestEntries>
>> + </archive>
>> + </configuration>
>> + </plugin>
>
> Will that work? I know this does not:
>
> <webAppSourceDirectory>target/${artifactId}-${version}</webAppSourceDirectory>
>
> ${artifactId}, ${version} are processed during archetype creation and
> all you get are static strings.
>
- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFUaG/LNdJvZjjVZARAlkkAJ4lcyfCsz7dkv7q03Wv1BOcMM5sxgCfbbb4
zt7o8twrkdj9DM2rng7qCUU=
=38ow
-----END PGP SIGNATURE-----