You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Daniel S. Haischt" <me...@daniel.stefan.haischt.name> on 2004/01/06 17:54:57 UTC

[QUESTION] AndroMDA Maven Plugin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello,

I am currently writing a Maven plugin for AndroMDA.

see -> http://www.andromda.org/

AndroMDA ships with an Ant task called ...

~ org.andromda.core.anttasks.AndroMDAGenTask

... that needs to be executed. I tried to model the
Maven plugin for AndroMDA equivalent to the Jalopy
plugin which also imports a standard Ant task definition.

Unfortunatly I am unable to setup my CLASSPATH appropriatly
I guess, because I am getting a class can't be found error.

- -------8<--------8<----------8<---------8<--------
taskdef class org.andromda.core.anttasks.AndroMDAGenTask
cannot be found
- ------->8-------->8---------->8--------->8--------

The AndroMDA class that contains the Ant task is
contained within a JAR file called 'andromda-2.1.2.jar'.

Can you take a look at the attached files to tell me
how to setup the CLASSPATH variable accordingly so the
AndroMDA task for Ant could be executed?

Thanx in advance!

regards

daniel s. haischt

- --
mail: me@daniel.stefan.haischt.name
web:  http://www.daniel.stefan.haischt.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/+uhhSj+pfjp+UA4RAqHTAKCHjgzjZvS5ai7Xzvqud42GxynFrACbBMv/
5D5Z0F5shyGXwJG1+Z4N4tc=
=BA7z
-----END PGP SIGNATURE-----


Re: [QUESTION] AndroMDA Maven Plugin

Posted by Jason van Zyl <jv...@maven.org>.
On Tue, 2004-01-06 at 11:54, Daniel S. Haischt wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hello,
> 
> I am currently writing a Maven plugin for AndroMDA.
> 
> see -> http://www.andromda.org/
> 
> AndroMDA ships with an Ant task called ...
> 
> ~ org.andromda.core.anttasks.AndroMDAGenTask

Save yourself a lot of grief and make a bean of the ant task and just
avoid the whole ant classloading issue which is a serious pain in the
ass.

Then you can give the bean to the AndroMDA folks and they can just wrap
the bean for use in Ant.

> ... that needs to be executed. I tried to model the
> Maven plugin for AndroMDA equivalent to the Jalopy
> plugin which also imports a standard Ant task definition.
> 
> Unfortunatly I am unable to setup my CLASSPATH appropriatly
> I guess, because I am getting a class can't be found error.
> 
> - -------8<--------8<----------8<---------8<--------
> taskdef class org.andromda.core.anttasks.AndroMDAGenTask
> cannot be found
> - ------->8-------->8---------->8--------->8--------
> 
> The AndroMDA class that contains the Ant task is
> contained within a JAR file called 'andromda-2.1.2.jar'.
> 
> Can you take a look at the attached files to tell me
> how to setup the CLASSPATH variable accordingly so the
> AndroMDA task for Ant could be executed?
> 
> Thanx in advance!
> 
> regards
> 
> daniel s. haischt
> 
> - --
> mail: me@daniel.stefan.haischt.name
> web:  http://www.daniel.stefan.haischt.name/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQE/+uhhSj+pfjp+UA4RAqHTAKCHjgzjZvS5ai7Xzvqud42GxynFrACbBMv/
> 5D5Z0F5shyGXwJG1+Z4N4tc=
> =BA7z
> -----END PGP SIGNATURE-----
> 
> 
> ______________________________________________________________________
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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


Re: [QUESTION] AndroMDA Maven Plugin

Posted by "Daniel S. Haischt" <me...@daniel.stefan.haischt.name>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Forgot that attachments will be discarded, sorry 'bout that.

Below you will find the jelly script part that sets up
the Ant taskdef. I am 100% sure how to reference to
a dpendency path. Do I have to use the id or the groupId
or the artifactId?

- -------8<---------8<----------8<-----------8<--------8<--------
~    <goal name="andromda:taskdef" prereqs="andromda:init"
~      description="Define the ANdroMDA task to Ant and Jelly">
~      <ant:taskdef name="andromda"
~        classname="org.andromda.core.anttasks.AndroMDAGenTask">
~        <ant:classpath>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-beanutils')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-collections')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-digester')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('commons-logging')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('junit')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('log4j')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('velocity')}"/>
~          <ant:pathelement
path="${plugin.getDependencyPath('openide-fs')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('openide-lookup')}"/>
~          <ant:pathelement path="${plugin.getDependencyPath('jmi')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('jmitoolkit')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('jmiuml14di')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('jmiutils')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('mof')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('mdrapi')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('nbmdr')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('andromda')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('andromda-ejb')}"/>
	  <ant:pathelement
path="${plugin.getDependencyPath('andromda-hibernate')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('andromda-java')}"/>
	  <ant:pathelement path="${plugin.getDependencyPath('andromda-struts')}"/>
~        </ant:classpath>
~      </ant:taskdef>
~    </goal>
- ------->8--------->8---------->8----------->8-------->8--------

and this is a snippet from my project.xml, which defines all the
dependencies.

- -------8<---------8<----------8<-----------8<--------8<--------
<dependencies>
	<dependency>
		<id>commons-beanutils</id>
		<version>1.6.1</version>
		<url>http://jakarta.apache.org/commons/beanutils.html</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<id>commons-collections</id>
		<version>2.1</version>
		<url>http://jakarta.apache.org/commons/collections.html</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<id>commons-digester</id>
		<version>1.4.1</version>
		<url>http://jakarta.apache.org/commons/digester.html</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<id>commons-logging</id>
		<version>1.0.3</version>
		<url>http://jakarta.apache.org/commons/logging.html</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<id>log4j</id>
		<version>1.2.8</version>
		<url>http://jakarta.apache.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<id>junit</id>
		<version>3.8.1</version>
		<url>http://www.junit.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>velocity</groupId>
		<artifactId>velocity-dep</artifactId>
		<version>1.3.1</version>
		<url>http://jakarta.apache.org/velocity/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>openide</groupId>
		<artifactId>openide-fs</artifactId>
		<version>2.23.1</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>openide</groupId>
		<artifactId>openide-lookup</artifactId>
		<version>2.23.1</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>mdr</groupId>
		<artifactId>mdrapi</artifactId>
		<version>0.984</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>mdr</groupId>
		<artifactId>nbmdr</artifactId>
		<version>0.984</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>jmi</groupId>
		<artifactId>jmi</artifactId>
		<version>1.0</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>jmi</groupId>
		<artifactId>jmitoolkit</artifactId>
		<version>1.0</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>jmi</groupId>
		<artifactId>jmiuml14di</artifactId>
		<version>1.0</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>jmi</groupId>
		<artifactId>jmiutils</artifactId>
		<version>1.0</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>jmi</groupId>
		<artifactId>mof</artifactId>
		<version>1.0</version>
		<url>na</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>andromda</groupId>
		<artifactId>andromda</artifactId>
		<version>2.1.2</version>
		<url>http://www.andromda.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>andromda</groupId>
		<artifactId>andromda-ejb</artifactId>
		<version>2.1.2</version>
		<url>http://www.andromda.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>andromda</groupId>
		<artifactId>andromda-hibernate</artifactId>
		<version>2.1.2</version>
		<url>http://www.andromda.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>andromda</groupId>
		<artifactId>andromda-java</artifactId>
		<version>2.1.2</version>
		<url>http://www.andromda.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
	<dependency>
		<groupId>andromda</groupId>
		<artifactId>andromda-struts</artifactId>
		<version>2.1.2</version>
		<url>http://www.andromda.org/</url>
		<properties>
			<classloader>root</classloader>
		</properties>
	</dependency>
</dependencies>
- ------->8--------->8---------->8----------->8-------->8--------

Daniel S. Haischt wrote:

| hello,
|
| I am currently writing a Maven plugin for AndroMDA.
|
| see -> http://www.andromda.org/
|
| AndroMDA ships with an Ant task called ...
|
| ~ org.andromda.core.anttasks.AndroMDAGenTask
|
| ... that needs to be executed. I tried to model the
| Maven plugin for AndroMDA equivalent to the Jalopy
| plugin which also imports a standard Ant task definition.
|
| Unfortunatly I am unable to setup my CLASSPATH appropriatly
| I guess, because I am getting a class can't be found error.
|
| -------8<--------8<----------8<---------8<--------
| taskdef class org.andromda.core.anttasks.AndroMDAGenTask
| cannot be found
| ------->8-------->8---------->8--------->8--------
|
| The AndroMDA class that contains the Ant task is
| contained within a JAR file called 'andromda-2.1.2.jar'.
|
| Can you take a look at the attached files to tell me
| how to setup the CLASSPATH variable accordingly so the
| AndroMDA task for Ant could be executed?
|
| Thanx in advance!
|
| regards
|
| daniel s. haischt
|

- ------------------------------------------------------------------------

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/+vq1Sj+pfjp+UA4RApLrAKCt8jISMx5vCyOuSrXMobfMjNz2MwCfZHa8
JndkSN4wWqLJRW3A3gnS4UI=
=fiDR
-----END PGP SIGNATURE-----



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


RE: [QUESTION] AndroMDA Maven Plugin

Posted by "J. Matthew Pryor" <jm...@yahoo.com>.
I've already done this, I can send you mine if you wish

Matthew 

> -----Original Message-----
> From: Daniel S. Haischt [mailto:me@daniel.stefan.haischt.name] 
> Sent: Wednesday, January 07, 2004 3:55 AM
> To: Maven Users List
> Subject: [QUESTION] AndroMDA Maven Plugin
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hello,
> 
> I am currently writing a Maven plugin for AndroMDA.
> 
> see -> http://www.andromda.org/
> 
> AndroMDA ships with an Ant task called ...
> 
> ~ org.andromda.core.anttasks.AndroMDAGenTask
> 
> ... that needs to be executed. I tried to model the Maven 
> plugin for AndroMDA equivalent to the Jalopy plugin which 
> also imports a standard Ant task definition.
> 
> Unfortunatly I am unable to setup my CLASSPATH appropriatly I 
> guess, because I am getting a class can't be found error.
> 
> - -------8<--------8<----------8<---------8<--------
> taskdef class org.andromda.core.anttasks.AndroMDAGenTask
> cannot be found
> - ------->8-------->8---------->8--------->8--------
> 
> The AndroMDA class that contains the Ant task is contained 
> within a JAR file called 'andromda-2.1.2.jar'.
> 
> Can you take a look at the attached files to tell me how to 
> setup the CLASSPATH variable accordingly so the AndroMDA task 
> for Ant could be executed?
> 
> Thanx in advance!
> 
> regards
> 
> daniel s. haischt
> 
> - --
> mail: me@daniel.stefan.haischt.name
> web:  http://www.daniel.stefan.haischt.name/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQE/+uhhSj+pfjp+UA4RAqHTAKCHjgzjZvS5ai7Xzvqud42GxynFrACbBMv/
> 5D5Z0F5shyGXwJG1+Z4N4tc=
> =BA7z
> -----END PGP SIGNATURE-----
> 
> 


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