Hi,
I have a question?
Does Maven 2.0 support custom scripts?
I have read on their site that they don't support custom scripts, you should create a plugin and submit that plugin if a custom script is needed, there is quite a few custom scripts in geoserver? How does geotools handle this?
Thanks
Clint Lewis a écrit :
Does Maven 2.0 support custom scripts?
I have read on their site that they don't support custom scripts, you should create a plugin and submit that plugin if a custom script is needed, there is quite a few custom scripts in geoserver? How does geotools handle this?
Maven 2 supports Ant scripts. I'm not sure about Jelly (I'm not familiar with that beast), but I expect that Maven 2 supports them too. The difference compared with Maven 1 is that Maven 2 is not build on top of Jelly (or some other script language I'm confusing with). With Maven 1, you had to play with that scripting language for adding functionalities. With Maven 2, you can if you want but you don't have to (in my understanding).
Maven 2 also allows to write custom plugin in Ant or in the Java language, which is really usefull (Geotools has some custom plugin in the Java language). You don't have to submit them to Apache, unless you want to share them with the world. Geotools just deploy its custom plugins on the Geotools repository, so any Geotools developper (or anyone listing http://maven.geotools.fr/repository in its <repository> section) get them like any standard Apache plugin.
Martin.
Hi,
See an example of a directory structure below. There is a prom.xml, project.xml and run-maven.xml. The pom.xm and project.xml is for Maven 2.0m, however maven 1.0 also uses the project.xml.
What is the run-maven.xml file? What I have deduced, come someone please confirm, the run-maven.xml is basically your ant build.xml, but it is called run-maven.xml. There is some plugin that was written to used the run-maven.xml. Where are these plugins kept, how do I find them?
Thanks
Clint
Directory structure
2006/03/23 09:52 AM <DIR> .
2006/03/23 09:52 AM <DIR> ..
2006/01/06 01:13 AM 1,585 .classpath
2006/01/06 01:13 AM 407 .project
2006/01/23 07:24 PM 28 LICENSE.txt
2006/02/15 10:55 AM 5,355 pom.xml
2006/03/23 09:52 AM 5,841 project.xml
2006/01/23 07:24 PM 2,085 run-maven.xml
2006/02/15 11:11 AM <DIR> src
2006/03/14 10:09 AM <DIR> target
2006/02/15 11:11 AM <DIR> test
2006/03/14 10:09 AM 33 test.dbf
2006/03/14 10:09 AM 100 test.shx
2006/02/15 11:11 AM <DIR> xdocs
8 File(s) 15,434 bytes
Martin Desruisseaux wrote:
Clint Lewis a écrit :
Does Maven 2.0 support custom scripts?
I have read on their site that they don't support custom scripts, you should create a plugin and submit that plugin if a custom script is needed, there is quite a few custom scripts in geoserver? How does geotools handle this?
Maven 2 supports Ant scripts. I'm not sure about Jelly (I'm not familiar with that beast), but I expect that Maven 2 supports them too. The difference compared with Maven 1 is that Maven 2 is not build on top of Jelly (or some other script language I'm confusing with). With Maven 1, you had to play with that scripting language for adding functionalities. With Maven 2, you can if you want but you don't have to (in my understanding).
Maven 2 also allows to write custom plugin in Ant or in the Java language, which is really usefull (Geotools has some custom plugin in the Java language). You don't have to submit them to Apache, unless you want to share them with the world. Geotools just deploy its custom plugins on the Geotools repository, so any Geotools developper (or anyone listing http://maven.geotools.fr/repository in its <repository> section) get them like any standard Apache plugin.
Martin.
Clint Lewis a écrit :
See an example of a directory structure below. There is a prom.xml, project.xml and run-maven.xml. The pom.xm and project.xml is for Maven 2.0m, however maven 1.0 also uses the project.xml.
The project.xml file is for Maven 1 only. The pom.xml file is for Maven 2 only. Both are completly independent.
What is the run-maven.xml file?
This is a Maven 1 thing, I don't know what it is for.
Basically, "pom.xml" is Maven 2 and everything else is Maven 1. Maven 2 has simplified the project management by putting everything in its pom.xml files, while Maven 1 split some parts of the build process in different kind of files.
Martin.