A few questions about creating archetypes

2005-10-26 Thread Alexander Hars
Hi, I have read the Guide to creating archetypes but I am not sure about a few things: I assume that we create the archetype as a maven-plugin. Then it needs a pom. Do I include the archetype ... /archetype in the archetype plugin's pom.xml? Do I also need to define

archetype -- creating empty folders ?

2005-10-26 Thread Alexander Hars
Hi, is it possible to instruct a custom archetype to create an empty folder? I tried with sources sourcesrc/main/java//source /sources //raises an error and sources sourceDirsrc/main/java//sourceDir /sources //didn't work I was not able to find an example in the maven archetype plugins.

Re: Summary: Guide for creating archetypes

2005-10-26 Thread Alexander Hars
, please correct it. Cheers -Alexander .apt file is below -- Guide to Creating Archetypes -- Jason van Zyl, Alexander Hars -- 26 October 2005 -- Guide to Creating Archetypes Creating an archetype is a pretty straight forward process. An archetype

[m2] Copying dependencies to target/lib as individual files?

2005-10-26 Thread Alexander Hars
Hi, I need to obtain the individual .jar files from the dependency list and place each of them into a folder target/lib (for further processing). Combining all of the dependencies in one .zip or .jar file does not help. Can I do this with the assembly plugin, e.g. through some special

[m2] How can I register an archiver?

2005-11-02 Thread Alexander Hars
The assembly mechanism has a small problem: It can not be used to just copy plain files plus dependencies into some target directory structure (without compressing/zipping/packing or changing the copied files in any way). In my case, I need this because I am using an unsupported packaging

[m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Alexander Hars
Hi, The assembly:directory goal can be used to simply copy files and dependencies into some target directory without packing into a jar or zip. This is useful when we have custom plugins that need to do some special processing on certain files/directories. However, in the current version of

Re: [m2] assembly:directory problem (DirectoryMojo)

2005-11-06 Thread Alexander Hars
custom plugins. Lots of examples on how to copy files in the other plugins. -- Kenney On Sun, 6 Nov 2005, Alexander Hars wrote: Hi, The assembly:directory goal can be used to simply copy files and dependencies into some target directory without packing into a jar or zip. This is useful when we have

Guide to creating archetypes

2005-11-08 Thread Alexander Hars
Hi, Two weeks ago I wrote a significantly expanded Guide to Creating Archetypes. It was immediately posted to CVS, but it is still not available on the website. Is there some reason why the Maven2 site is not updated regularly (last update was 10/21). Shouldn't it be very easy using Maven2?

Line-breaks in project description and the jar plugin

2005-11-09 Thread Alexander Hars
Hi, Are there any special requirements for the description tag of the pom? I have tried using a description consisting of several lines but this leads to a conflict with the jar plugin: When trying to launch the jar (i.e. on windows by double-clicking), java reports a corrupt jar file

Maven2 Website rolled back?

2005-11-09 Thread Alexander Hars
Hi, Thanks for releasing the latest version of the Maven2 website (version dated: November 8). Unfortunately, for some reason, after less than 12 hours of being up, the Maven2 web site has now reverted to the old October 21 version again. Is that intentional? - Alexander

Re: Maven2 Website rolled back?

2005-11-09 Thread Alexander Hars
are again not available on the site. - Alexander Rik Bosman wrote: Alexander; The URL maven.apache.org/maven2 http://maven.apache.org/maven2 is dated oct 21st. The URL maven.apache.org http://maven.apache.org is dated nov. 9th. Hope this helps. 2005/11/9, Alexander Hars [EMAIL PROTECTED

http://maven.apache/org/maven2/ is invalid

2005-11-10 Thread Alexander Hars
Thanks, I now found out that for a good time I have been looking at an invalid website, because I had bookmarked http://maven.apache/org/maven2/ two weeks ago (Two weeks ago, that site was the official maven2 site). Unfortunately, there is no way to realize this mistake for anyone who

Documentation -- making better use of the wiki

2005-11-11 Thread Alexander Hars
to the wiki page from the original documentation. I am sure that we could greatly expand the Maven-related knowledge this way. I certainly would be willing to work on the necessary changes to get this rolling if you think this is a good idea. - Alexander Hars

Referencing project properties in an .apt file

2005-11-11 Thread Alexander Hars
Hi, Is it possible to reference project properties in an .apt file? It tried something like ${project.version} but the site plugin did not pick it up. Is there any other way? Thanks - Alexander - To unsubscribe, e-mail:

Site Plugin: Changing the Template

2005-11-11 Thread Alexander Hars
message is below). Has anyone been successful at using the site plugin with a different template? Thanks - Alexander Hars ... [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [site:site] [INFO] Generate Continuous Integration report. [ERROR

Re: Documentation -- making better use of the wiki

2005-11-12 Thread Alexander Hars
Jason, Thank you for setting up the mavenusers space on confluence. While this solution is certainly better for integrating the documentation with Maven, it has the disadvantage that it significantly raises the bar for anyone who wants to contribute. For example, unregistered users can't

Site plugin: internationalization - css and image resource duplication

2007-08-16 Thread Alexander Hars
Hi, I am trying to use the site plugin with several languages. Unfortunately, the site plugin copies all its css files and image resources into each locale. This is inefficient, furthermore I run into a problem when I use my own css files or image resources to override the default maven

Problem with Maven Hello Plugin Example

2006-07-14 Thread Alexander Hars
Hi, I am getting a strange error when I try to create the simple Maven Hello Plugin example. When compiling it, I get the message: Cannot read file: GreetingMojo.java (Detailed error message is below). I don't get any error when I just change the packaging from maven-plugin to jar. Any

Re: Problem with Maven Hello Plugin Example

2006-07-14 Thread Alexander Hars
Dennis, Thanks for your quick response. I found the problem: The error occurs when the paths contains unusual characters. In my case: it was quite a long path that was c:\.\vc#\..\temp\... It is the '#' character that throws qdox of. -Alexander Dennis Lundberg wrote: This works fine

Re: [M2] Insert variables in xdoc/apt files

2006-07-18 Thread Alexander Hars
Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs

Compiler plugin: trying to set compileSourceRoots

2006-08-09 Thread Alexander Hars
Hi, I am trying to specify multiple source locations for the compiler-plugin (goal: test-compile). How do I accomplish that? I have tried to set the compileSourceRoots in the configuration of the compiler plugin: configuration

PHP and Maven2?

2006-09-11 Thread Alexander Hars
Hi, Is anybody using Maven2 for a PHP project? Are there any best practices to start out with (e.g. directory layout etc.)? I would like to use Maven for a new PHP project but all I found so far was a Php Plugin for Maven1. Thanks, Alexander

javadoc plugin: Problem with package-info.java

2005-12-21 Thread Alexander Hars
Hi, When I use the javadoc plugin, the package description that is contained in package-info.java does not show up on the generated javadoc. Am I doing something wrong? I thought that maybe a doclet from an older JDK is being used, and tried to set the doclet explicitly: plugin

Re: [m2] production ready? any experience?

2005-12-21 Thread Alexander Hars
In my opinion, Maven2 is great and has clear immediate benefits - even if it can not do everything that may be needed for everyone. However, there are many small problems. I have found that whatever I start in Maven that is not 100% standard, I run into problems that cost me hours. Basic