You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Kolotyluk <er...@gmail.com> on 2011/11/10 03:19:48 UTC

Writing a Maven Plugin in Scala

Is there an archetype for a Maven plugin that is coded in Scala?

Cheers, Eric

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


Re: Writing a Maven Plugin in Scala

Posted by Jason van Zyl <ja...@tesla.io>.
There is not facility for writing plugins in Scala that I'm aware of.

Writing the actual plugin code itself is not a problem. But what happens as part of plugin development with Java is that a process walks through the code to create a plugin.xml file and this processor for dealing with Scala code isn't available to my knowledge.

The plugin.xml file looks like following. I took this out of the maven-assembly-plugin:

https://gist.github.com/1355209

Not exactly the easiest thing to write by hand, but if you did you could write your plugin in Scala. There are other processor if you want to look at making it work for Scala:

http://svn.apache.org/repos/asf/maven/plugin-tools/trunk/

On Nov 9, 2011, at 9:19 PM, Eric Kolotyluk wrote:

> Is there an archetype for a Maven plugin that is coded in Scala?
> 
> Cheers, Eric
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

Simplex sigillum veri. (Simplicity is the seal of truth.)





Re: Writing a Maven Plugin in Scala

Posted by Jason van Zyl <ja...@tesla.io>.
Not that I'm aware of. I don't think there is a Scala plugin processor so I doubt there is an Archetype.

On Nov 9, 2011, at 9:19 PM, Eric Kolotyluk wrote:

> Is there an archetype for a Maven plugin that is coded in Scala?
> 
> Cheers, Eric
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

A language that doesn’t affect the way you think about programming is not worth knowing. 
 
 -— Alan Perlis