You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Madu <an...@gmail.com> on 2008/06/06 10:43:24 UTC
HowTo: Create new Dependency Type?
Hi,
I am in the process of re-architecting a project using the Spring
framework on a Jboss5 AS and need to create a new dependency of type
'spring', <packaging>spring</packaging>.
How do I go about doing this?
My platform details are as follows:
Maven version: 2.0.9
JDK: 1.6.0_06
OS: Win XP SP1
Many thanks in advance
--
Know Thyself
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: HowTo: Create new Dependency Type?
Posted by ni...@planet.nl.
It also works as a shorter version:
https://jira.codehaus.org/browse/MNG-3343
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
-----Original Message-----
From: Andrew Madu [mailto:andrewmadu@gmail.com]
Sent: Fri 6/6/2008 14:22
To: Maven Users List
Subject: Re: HowTo: Create new Dependency Type?
Many thanks for the links, Nick,
Unfortunately the second link does not work. Could you possibly resend?
Many thanks.
--
Regards
Andrew
> Hi,
>
> Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
>
> Hth,
>
> [1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
> [2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> -----Original Message-----
> From: Andrew Madu [mailto:andrewmadu@gmail.com]
> Sent: Fri 6/6/2008 10:43
> To: users@maven.apache.org
> Subject: HowTo: Create new Dependency Type?
>
> Hi,
> I am in the process of re-architecting a project using the Spring
> framework on a Jboss5 AS and need to create a new dependency of type
> 'spring', <packaging>spring</packaging>.
>
> How do I go about doing this?
>
> My platform details are as follows:
> Maven version: 2.0.9
> JDK: 1.6.0_06
> OS: Win XP SP1
>
> Many thanks in advance
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
Many thanks for the links, Nick,
Unfortunately the second link does not work. Could you possibly resend?
Many thanks.
--
Regards
Andrew
> Hi,
>
> Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
>
> Hth,
>
> [1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
> [2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> -----Original Message-----
> From: Andrew Madu [mailto:andrewmadu@gmail.com]
> Sent: Fri 6/6/2008 10:43
> To: users@maven.apache.org
> Subject: HowTo: Create new Dependency Type?
>
> Hi,
> I am in the process of re-architecting a project using the Spring
> framework on a Jboss5 AS and need to create a new dependency of type
> 'spring', <packaging>spring</packaging>.
>
> How do I go about doing this?
>
> My platform details are as follows:
> Maven version: 2.0.9
> JDK: 1.6.0_06
> OS: Win XP SP1
>
> Many thanks in advance
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
Hi,
I should have added in my last post my platform, which is as follows:
WIN XP SP1
JDK 1.6.0_06
Maven 2.0.9
Many thanks.
--
Regards
Andrew
> Hi,
> I would appreciate it very much if someone can direct me to the
> location of the plugin (jar file) which handles packaging type
> definitions as described in an earlier post I sent.
>
> For some bizarre reason, which I can only attribute to not having
> enough coffee today, I am unable to locate it in my repository!
>
> Many thanks in advance.
> --
> Regards
>
> Andrew
>
>> 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.
>> --
>> Regards
>>
>> Andrew
>>
>>> Hi,
>>>
>>> Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
>>>
>>> Hth,
>>>
>>> [1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
>>> [2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>
>>> Nick Stolwijk
>>> ~Java Developer~
>>>
>>> Iprofs BV.
>>> Claus Sluterweg 125
>>> 2012 WS Haarlem
>>> www.iprofs.nl
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Andrew Madu [mailto:andrewmadu@gmail.com]
>>> Sent: Fri 6/6/2008 10:43
>>> To: users@maven.apache.org
>>> Subject: HowTo: Create new Dependency Type?
>>>
>>> Hi,
>>> I am in the process of re-architecting a project using the Spring
>>> framework on a Jboss5 AS and need to create a new dependency of type
>>> 'spring', <packaging>spring</packaging>.
>>>
>>> How do I go about doing this?
>>>
>>> My platform details are as follows:
>>> Maven version: 2.0.9
>>> JDK: 1.6.0_06
>>> OS: Win XP SP1
>>>
>>> Many thanks in advance
>>>
>>>
>>
>>
>
>
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
Hi,
I would appreciate it very much if someone can direct me to the location
of the plugin (jar file) which handles packaging type definitions as
described in an earlier post I sent.
For some bizarre reason, which I can only attribute to not having enough
coffee today, I am unable to locate it in my repository!
Many thanks in advance.
--
Regards
Andrew
> 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.
> --
> Regards
>
> Andrew
>
>> Hi,
>>
>> Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
>>
>> Hth,
>>
>> [1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
>> [2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>
>> Nick Stolwijk
>> ~Java Developer~
>>
>> Iprofs BV.
>> Claus Sluterweg 125
>> 2012 WS Haarlem
>> www.iprofs.nl
>>
>>
>>
>> -----Original Message-----
>> From: Andrew Madu [mailto:andrewmadu@gmail.com]
>> Sent: Fri 6/6/2008 10:43
>> To: users@maven.apache.org
>> Subject: HowTo: Create new Dependency Type?
>>
>> Hi,
>> I am in the process of re-architecting a project using the Spring
>> framework on a Jboss5 AS and need to create a new dependency of type
>> 'spring', <packaging>spring</packaging>.
>>
>> How do I go about doing this?
>>
>> My platform details are as follows:
>> Maven version: 2.0.9
>> JDK: 1.6.0_06
>> OS: Win XP SP1
>>
>> Many thanks in advance
>>
>>
>
>
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
Hi,
please ignore the issue regarding the location of the descriptor file a
I have resolved this. What I am still unsure about is the
ArchiveManager. Could someone direct me to any information regarding this?
Many thanks in advance.
--
Regards
Andrew
> Hi Nick,
> many thanks for the link.
>
> Out of interest where exactly is the ArchiveManager located?! Also,
> would I be correct in assuming that the assembly descriptor xml file
> is situated as follows?:
>
> myproject\src\assemble\mydescriptor.xml
>
> Many thanks in advance.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
Hi Nick,
many thanks for the link.
Out of interest where exactly is the ArchiveManager located?! Also,
would I be correct in assuming that the assembly descriptor xml file is
situated as follows?:
myproject\src\assemble\mydescriptor.xml
Many thanks in advance.
--
Regards
Andrew
> 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:andrewmadu@gmail.com]
> 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.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: HowTo: Create new Dependency Type?
Posted by ni...@planet.nl.
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:andrewmadu@gmail.com]
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:andrewmadu@gmail.com]
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
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:andrewmadu@gmail.com]
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: HowTo: Create new Dependency Type?
Posted by ni...@planet.nl.
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:andrewmadu@gmail.com]
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.
--
Regards
Andrew
> Hi,
>
> Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
>
> Hth,
>
> [1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
> [2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> -----Original Message-----
> From: Andrew Madu [mailto:andrewmadu@gmail.com]
> Sent: Fri 6/6/2008 10:43
> To: users@maven.apache.org
> Subject: HowTo: Create new Dependency Type?
>
> Hi,
> I am in the process of re-architecting a project using the Spring
> framework on a Jboss5 AS and need to create a new dependency of type
> 'spring', <packaging>spring</packaging>.
>
> How do I go about doing this?
>
> My platform details are as follows:
> Maven version: 2.0.9
> JDK: 1.6.0_06
> OS: Win XP SP1
>
> Many thanks in advance
>
>
Re: HowTo: Create new Dependency Type?
Posted by Andrew Madu <an...@gmail.com>.
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.
--
Regards
Andrew
> Hi,
>
> Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
>
> Hth,
>
> [1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
> [2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> -----Original Message-----
> From: Andrew Madu [mailto:andrewmadu@gmail.com]
> Sent: Fri 6/6/2008 10:43
> To: users@maven.apache.org
> Subject: HowTo: Create new Dependency Type?
>
> Hi,
> I am in the process of re-architecting a project using the Spring
> framework on a Jboss5 AS and need to create a new dependency of type
> 'spring', <packaging>spring</packaging>.
>
> How do I go about doing this?
>
> My platform details are as follows:
> Maven version: 2.0.9
> JDK: 1.6.0_06
> OS: Win XP SP1
>
> Many thanks in advance
>
>
RE: HowTo: Create new Dependency Type?
Posted by ni...@planet.nl.
Hi,
Back in the days there used to be a piece of information on specifying a new package on the maven web site. I found a backup at [1]. Also at [2] there is issue with patch which adds a new packaging. So maybe you have to patch a custom maven installation to provide your package type.
Hth,
[1] http://www.propellors.net/maven/site/guides/introduction/introduction-to-the-lifecycle.html
[2] https://jira.codehaus.org/browse/MNG-3343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
-----Original Message-----
From: Andrew Madu [mailto:andrewmadu@gmail.com]
Sent: Fri 6/6/2008 10:43
To: users@maven.apache.org
Subject: HowTo: Create new Dependency Type?
Hi,
I am in the process of re-architecting a project using the Spring
framework on a Jboss5 AS and need to create a new dependency of type
'spring', <packaging>spring</packaging>.
How do I go about doing this?
My platform details are as follows:
Maven version: 2.0.9
JDK: 1.6.0_06
OS: Win XP SP1
Many thanks in advance
--
Know Thyself
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org