Hi Greg,
What Wouter says will work for Ant, but since you're
using Maven: You'll need to add an <exceptions/>
element that points to where your generated exceptions
will go in the java cartridge dependency of your
project.xml , for example: (this is taken from the
animal-quiz sample mda/project.xml):
<dependency>
<groupId>andromda-cartridges</groupId>
<artifactId>andromda-java-cartridge</artifactId>
<version>${pom.currentVersion}</version>
<properties>
<exceptions>${maven.andromda.java.generated.dir}</exceptions>
<value-objects>${maven.andromda.java.generated.dir}</value-objects>
</properties>
</dependency>
If you wanted to ignore the exceptions (i.e. not
generate exceptions and get rid of that message you're
getting), you would add "<exceptions.ignore/>" instead
of the body of the <exceptions/> element. Does that
answer your question?
--- [EMAIL PROTECTED] wrote:
> hi Greg,
>
> if you're using Ant you should put a new
> 'exceptions' element like this (in the namespaces
> he's complaining about)
>
> <namespace name="hibernate" ignore="false">
> ...
> <property name="exceptions"
> value="${gen.src.dir}" ignore="false"/>
> ...
> </namespace>
>
>
> I don't know for sure how this issue sneaked in but
> I guess it has something to do with
>
> 1. anonymous CVS has a 1 day lag on dev CVS, so
> you'll get 1-day old code, it's possible you have
> only a part of a large commit
> 2. Chad Brandon implemented an additional feature
> where exceptions would also be generated
> automatically, I am sure he'll reply to this message
> too
>
>
> AndroMDA generates their documentation website from
> anon CVS every night, check it out here:
>
> http://team.andromda.org/docs
>
> you'll find the most up-to-date information here,
> although this issue is not mentioned yet
>
>
> -- Wouter
>
> Greg Johnson <[EMAIL PROTECTED]> wrote:
>
> >hi guys,
> >am using 3.0 snapshot with maven & get the
> following message:
> >
> >13:47:21,431 INFO [hibernate] Output:
>
>'file:/home/common/data/eclipse/merriment/hibernate/ejb/target/src/com/anekol/merriment/contacts/UserFactory.java'
> >13:47:21,544 WARN [Namespaces] WARNING! Namespaces
> 'default' and 'java' have no
> >property 'exceptions' defined --> please define
> this property in AT LEAST ONE
> >of these two namespaces. If you want to 'ignore'
> this message, add the
> >property to the namespace with ignore set to 'true'
> >
> >i'm new at andromda (and impressed!) and while the
> docs cover this when using
> >the ant task, i can't find any hints for maven.
> >
> >any hints please?
> >
> >thanks,
> >regards,
> >greg johnson
> >
> >ps. i'm exploring & finding my way using andromda
> with an eclipse, spring,
> >tapestry, hibernate environment, so if anyone else
> has any interest in this
> >area i'm happy to share my experiences.
> >
> >
>
>-------------------------------------------------------
> >This SF.Net email is sponsored by: IBM Linux
> Tutorials
> >Free Linux tutorial presented by Daniel Robbins,
> President and CEO of
> >GenToo technologies. Learn everything from
> fundamentals to system
>
>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> >_______________________________________________
> >Andromda-user mailing list
> >[EMAIL PROTECTED]
>
>https://lists.sourceforge.net/lists/listinfo/andromda-user
> >
>
>
__________________________________________________________________
> Introducing the New Netscape Internet Service.
> Only $9.95 a month -- Sign up today at
> http://isp.netscape.com/register
>
> Netscape. Just the Net You Need.
>
> New! Netscape Toolbar for Internet Explorer
> Search from anywhere on the Web and block those
> annoying pop-ups.
> Download now at
> http://channels.netscape.com/ns/search/install.jsp
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux
> Tutorials
> Free Linux tutorial presented by Daniel Robbins,
> President and CEO of
> GenToo technologies. Learn everything from
> fundamentals to system
>
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user