Then the assembly plugin would be your friend.

http://maven.apache.org/plugins/maven-assembly-plugin/

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



-----Original Message-----
From: Andrew Madu [mailto:[EMAIL PROTECTED]
Sent: Fri 6/6/2008 16:27
To: Maven Users List
Subject: Re: HowTo: Create new Dependency Type?
 
Hi Nick,
the .spring archive is nothing special, just a means by which spring 
beans can be exposed via JNDI. The file will contain a class directory 
structure with a bean descriptor file located in the META-INF directory. 
The following document explains the .spring requirement:

http://wiki.jboss.org/wiki/JBossSpringIntegration

So I imply need carry out all the phases ala jar, pull a 
jboss-spring.xml file into the META-INF directory and create/store the 
files  in an archive such as myproject.spring for example

Many thanks in advance.

-- 
Know Thyself

Andrew

> What you're seeing there is which plugin with which goal to run. As far as I 
> know there is no plugin which creates such ".spring" files. Are they any 
> special files?
>
> One solution I see is to specify the assembly plugin there and provide a 
> default configuration in your company's parent pom. (Sort like Maven does, 
> the default configuration in the super pom)
>
> If it involves something more then just assembling some files I think you 
> need to create your own plugin.
>
> Could you please inform us a little more about those ".spring" files? What 
> are they? How should they be created? What do they contain?
>
> With regards,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> -----Original Message-----
> From: Andrew Madu [mailto:[EMAIL PROTECTED]
> Sent: Fri 6/6/2008 14:59
> To: Maven Users List
> Subject: Re: HowTo: Create new Dependency Type?
>  
> Hi,
> I'm currently editing the PLEXUS\components file:
>
> [code]
>     <component>
>       <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
>       <role-hint>spring</role-hint>
>       
> <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
>       <configuration>
>         <lifecycles>
>           <lifecycle>
>             <id>default</id>
>             <phases>
>               
> <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
>               
> <compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
>               
> <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
>               
> <test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
>               
> <test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
>               
> *<package>org.apache.maven.plugins:maven-jar-plugin:jar</package>*
>               
> <install>org.apache.maven.plugins:maven-install-plugin:install</install>
>               
> <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
>             </phases>
>           </lifecycle>
>         </lifecycles>
>       </configuration>
>     </component>
> [/code]
>
> and in regards to the <package/> section what I wish to do is to specify 
> a package returned with a file extension of .spring. I have tried to 
> specify org.apache.maven.plugins:maven-jar-plugin:spring but of course 
> an 'plugin does not exist' error is then generated. How do I specify 
> this in the document?
>
> Many thanks in advance.
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to