You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Inandjo Taurel <in...@hotmail.com> on 2005/02/01 17:40:53 UTC

Ant include error on maven -genapp

hi,

I'm trying to generate my first turbine app with META, by entering the 
following command :

maven -Dturbine.setup.properties=setup.properties turbine:setup

Here is the error I get:

BUILD FAILED
File...... C:\Documents and 
Settings\Administrateur\.maven\cache\maven-turbine-p
lugin-1.2\plugin.jelly
Element... include
Line...... 857
Column.... 43
java.lang.NullPointerException
[INFO] App - -Total time: 3 seconds
[INFO] App - -Finished at: Tue Feb 01 04:57:51 GMT 2005
[INFO] App - -


I am running this command from the tomcat webapps directory
(C:\Program Files\Apache Group\Tomcat 4.1\webapps), where I have the 
project.xml
file, the setup.properties file, as well as the build.properties file.

This is the content of my project.xml file:

<?xml version="1.0" encoding="UTF-8"?>

<project>
  <pomVersion>3</pomVersion>
  <id>myapp</id>
  <name>My first test</name>
</project>



This is the content of my build.properties file:

maven.appserver.home = C:/Program Files/Apache Group/Tomcat 4.1
maven.appserver.name = tomcat



This is the content of my setup.properties file:

turbine.plugin.mode = inplace

turbine.app.name = myapp
turbine.app.flavor = turbine-2.3.1
turbine.app.om.layer = torque
turbine.app.setup.demo = false

torque.database = mysql
torque.database.driver = com.mysql.jdbc.Driver
torque.database.user = test
torque.database.password = test
torque.database.buildUrl = jdbc:mysql://localhost/myapp
torque.database.createUrl = jdbc:mysql://localhost/myapp



The command generate the folders alright but there are no files in them 
despite the fact that
it is supposed to be copying some files from the turbine plugin.

Also, I put an <ant:echo message="${include}"> a couple of lines before the 
crashing include, in
the plugin.jelly file under the turbine plugin folder: it echoed "**/*".

I'm using a win2k SP4 box with tomcat 4.1.31, and maven 1.0.2.
Is there anything I'm doing wrong or missing here??
Thanx.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: adding a link to the generated site using "maven site"

Posted by Mauro Botelho <ma...@gmail.com>.
The navigation.xml file goes in the xdocs directory. The xdoc plugin
will convert any xml documents found in this document into html.

The xdoc plugin is called by the site plugin.

Mauro


On Tue, 1 Feb 2005 11:41:14 -0800 (PST), Janos Mucsi <mu...@yahoo.com> wrote:
> Thanks, but...
> Where do I put it? How does the plugin know about it?
> 
> Create a navigation.xml file. See
> http://maven.apache.org/site.html
> 
> Mauro
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


adding a link to the generated site using "maven site"

Posted by Janos Mucsi <mu...@yahoo.com>.
Thanks, but...
Where do I put it? How does the plugin know about it?

Create a navigation.xml file. See
http://maven.apache.org/site.html

Mauro


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: where to put navigation.xml (maven site)

Posted by John Taylor <jd...@roe.ac.uk>.
Put navigation.xml and all your html files in the xdocs folder.
BTW - your html files can also be written as "xdocs" - see 
http://www.astrogrid.org/viewcvs/astrogrid/portal/xdocs/index.xml?rev=1.12&content-type=text/vnd.viewcvs-markup
for an example - and they'll get magically transformed into the maven style.

John
=====================================
John Taylor
Astrogrid Java Developer
http://software.astrogrid.org
Royal Observatory of Edinburgh
+44 (0) 131 668 8329
skype id: johndavidtaylor
=====================================

----- Original Message ----- 
From: "Janos Mucsi" <mu...@yahoo.com>
To: "Maven Users List" <us...@maven.apache.org>; "Mauro Botelho" 
<ma...@gmail.com>
Sent: Tuesday, February 01, 2005 9:58 PM
Subject: where to put navigation.xml (maven site)


> Hi
> Where do you put navigation.xml? Where do you put the
> content htmls it references? (I assume some folder
> under src/ ).
> Thanks.
> Janos
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


where to put navigation.xml (maven site)

Posted by Janos Mucsi <mu...@yahoo.com>.
Hi
Where do you put navigation.xml? Where do you put the
content htmls it references? (I assume some folder
under src/ ).
Thanks.
Janos


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: adding a link to the generated site using "maven site"

Posted by Mauro Botelho <ma...@gmail.com>.
Create a navigation.xml file. See http://maven.apache.org/site.html

Mauro


On Tue, 1 Feb 2005 10:10:40 -0800 (PST), Janos Mucsi <mu...@yahoo.com> wrote:
> Hi
> I would like to add a link to the generated site
> (maven site) on the left sidebar in addition to
> "Mailing Lists", "Project Team", etc. Can somebody
> please point me to the right direction?
> Thanks.
> Janos
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


adding a link to the generated site using "maven site"

Posted by Janos Mucsi <mu...@yahoo.com>.
Hi
I would like to add a link to the generated site
(maven site) on the left sidebar in addition to
"Mailing Lists", "Project Team", etc. Can somebody
please point me to the right direction?
Thanks.
Janos

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org