Maven plugin testing

2008-01-07 Thread Serge Huber
Hi all,

I am developing a plugin that copies some dependencies to a directory. I'm
doing this because I need to setup a server by copying some JARs to a
deployment directory.

I am having lots of problems understanding the different plugin testing
methods described on the page :
http://maven.apache.org/plugin-developers/plugin-testing.html
Are there any definitions for the different types of tests ?

Basically all I need to do is to launch my plugin so that I can validate the
code I'm developing, and make sure everything is correct, preferably using a
test pom.

Any help with this would be greatly appreciated.

Regards,
  Serge Huber.


Re: maven-sar-plugin?

2008-01-07 Thread amit kumar
Thanks lan, the copying is working now. :-)

On Jan 7, 2008 9:15 PM, Ian Springer <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Use the dependency plugin's copy goal:
> http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html
>
> Ian
>
> amit kumar wrote:
> > Hi,
> > I am using maven-sar-plugin and after the build its creating a lib
> folder. I
> > want to put all the dependencies that I mentioned in the pom.xml to this
> > folder. How do I do it?
> >
> > Regards,
> > Hemant malik
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: plexus components configuration

2008-01-07 Thread Olivier Dehon

On Tue, 2008-01-08 at 00:46 +0100, Zsolt KOZAK wrote:

> So I have the following snipplet from a components.xml and I'd like to
> pass some config parameters to the maven-war-plugin for the package
> phase. Is it possible in a plexus components.xml?
> 
> 
I have never done that myself so take it for what it's worth, but the
only way I see to do that would be to define your own lifecycle in
META-INF/maven/lifecycle.xml in the plugin JAR.

You can define configuration elements for the plugins in that file.

HTH, -Olivier


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



Re: plexus components configuration

2008-01-07 Thread Zsolt KOZAK
Hi Olivier,


On 2008-01-08 00:36, Olivier Dehon wrote:
> On Mon, 2008-01-07 at 16:21 +0100, Zsolt KOZAK wrote:
>   
>> Hi,
>>
>> I have the following problem.
>>
>> We use a custom packaging called "warstub". We uses modules and if a
>> module depends on other modules, its war will contain ALL the
>> dependecies (jars, html, images, etc). A warstub would contain only the
>> current module web-stuff (jar, html, etc.), so it's a kind of war but
>> contains less stuff. We created our own plugin which creates "warstub".
>>
>> 
>
> If I understand correctly what you are trying to achieve, you might want
> to use the overlay capability of the war plugin, by adding a dependency
> of type "war".
>
> http://maven.apache.org/plugins/maven-war-plugin/overlays.html
>   

Not exactly... This problem was solved with an own plugin. The problem
is to fine tune this plugin by passing configure parameters to the
maven-war-plugin in a plexus components.xml. (I just tried to explain
why I needed to configure the war-plugin).

So I have the following snipplet from a components.xml and I'd like to
pass some config parameters to the maven-war-plugin for the package
phase. Is it possible in a plexus components.xml?


.


  org.apache.maven.lifecycle.mapping.LifecycleMapping
  warstub
 
  
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
  

  
default

 
org.apache.maven.plugins:maven-resources-plugin:resources
 
org.apache.maven.plugins:maven-compiler-plugin:compile
 
org.apache.maven.plugins:maven-resources-plugin:testResources
 
org.apache.maven.plugins:maven-compiler-plugin:testCompile
 org.apache.maven.plugins:maven-surefire-plugin:test
 org.apache.maven.plugins:maven-war-plugin:war
 
org.apache.maven.plugins:maven-install-plugin:install
 
org.apache.maven.plugins:maven-deploy-plugin:deploy

  

  

.


thank you,
Zsolt



-- 
Zsolt KOZAK  [EMAIL PROTECTED]
personal web:http://zso.lt
Road To Avonlea: http://avonlea.hu


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



Re: plexus components configuration

2008-01-07 Thread Olivier Dehon
On Mon, 2008-01-07 at 16:21 +0100, Zsolt KOZAK wrote:
> Hi,
> 
> I have the following problem.
> 
> We use a custom packaging called "warstub". We uses modules and if a
> module depends on other modules, its war will contain ALL the
> dependecies (jars, html, images, etc). A warstub would contain only the
> current module web-stuff (jar, html, etc.), so it's a kind of war but
> contains less stuff. We created our own plugin which creates "warstub".
> 

If I understand correctly what you are trying to achieve, you might want
to use the overlay capability of the war plugin, by adding a dependency
of type "war".

http://maven.apache.org/plugins/maven-war-plugin/overlays.html

HTH, -Olivier


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



Re: archiva failed with mysql setup

2008-01-07 Thread Zemian Deng
Mick, My exact error are gone now after I restart Tomcat again. It's weird.

But anyways, to your replied, I think the following works actually:
1.) default mysql jdbc url is to 3306. The exception did not complain
connection problem, but an SQLException when creating table.

2.) the two databases are assuming user table are in different
location(which is a good feature). But if I wanted them all in the same db,
it should create wihtou problem as it has different table names than the
rest of the application. So pointing two db settings back into one db should
works.

Thanks for quick response.
-Zemian


On Jan 7, 2008 3:17 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> You did not specify the port :3306 in your jdbc URL And you need 2 DB's. 1
> for archiva, and 1 for users.
>
>
> On Jan 7, 2008 11:34 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:
>
> > @Mick
> > I am using Mysql version 4.1.21-standard
> >
> > Here are archiva.xml
> >  >  docBase="${catalina.base}/wars/apache-archiva-1.0.war">
> >  >   username="archiva"
> >   password="archiva"
> >   driverClassName="com.mysql.jdbc.Driver"
> >   url="jdbc:mysql://localhost/archiva" />
> >
> >  >   username="archiva"
> >   password="archiva"
> >   driverClassName="com.mysql.jdbc.Driver"
> >   url="jdbc:mysql://localhost/archiva" />
> >  >type="javax.mail.Session"
> >mail.smtp.host="popmail01.corporate.connextions.net"/>
> >  
> >
> >
> >
> > @Wayne
> > Thanks! I will post there from now on after this question :)
> >
> > -Zemian
> >
> > On Jan 7, 2008 2:05 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > > As Wendy says... ;-)
> > >
> > > Archiva has separate mailing lists... please come join us there if you
> > > have questions:  http://maven.apache.org/archiva/mail-lists.html
> > >
> > > Wayne
> > >
> > > On 1/7/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > > What MySql Version?
> > > >
> > > > Can you post your archiva.xml?
> > > >
> > > >
> > > > On Jan 7, 2008 10:57 AM, Zemian Deng <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > > Hi list,
> > > > > I didn't see a separated list for archiva, so I post question
> here.
> > > > >
> > > > > I am installing archiva with default derby worked fine. Now I am
> > > trying to
> > > > > configure to use Mysql. When I run my Tomcat server, I get the
> > > following
> > > > > error:
> > > > >
> > > > > 2008-01-07 13:18:12,481 [main] INFO
> > > > > org.apache.catalina.core.ContainerBase
> > > .[Catalina].[localhost].[/archiva]
> > > > > - Loading plexus context properties from:
> > '/WEB-INF/plexus.properties'
> > > > > 2008-01-07 13:18:12,488 [main] INFO
> > > > > org.apache.catalina.core.ContainerBase
> > > .[Catalina].[localhost].[/archiva]
> > > > > - Could not load plexus context properties from:
> > > > > '/WEB-INF/plexus.properties'
> > > > > 2008-01-07 13:18:13,365 [main] INFO
> > > org.codehaus.plexus.PlexusContainer -
> > > > > Loading on start [role,roleHint]: [
> > > > > org.apache.maven.archiva.web.startup.ArchivaStartup,default]
> > > > > 2008-01-07 13:18:15,031 [main] WARN
> > > > > net.sf.ehcache.config.ConfigurationFactory  - No configuration
> > found.
> > > > > Configuring ehcache from ehcache-failsafe.xml  found in the
> > classpath:
> > > > > jar:file:/opt/apache-tomcat-5.5.17
> > > > > /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache-
> > > > > 1.3.0.jar!/ehcache-failsafe.xml
> > > > > 2008-01-07 13:18:16,497 [main] WARN  JPOX.General  - SQL warning:
> > > > > java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use
> > > > > 'ENGINE=storage_engine' instead
> > > > > 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS  - Error thrown
> > > executing
> > > > > CREATE TABLE `SECURITY_OPERATIONS`
> > > > > (
> > > > >`NAME` VARCHAR(256) BINARY NOT NULL,
> > > > >`DESCRIPTION` VARCHAR(256) BINARY NULL,
> > > > >`PERMANENT` BIT NOT NULL,
> > > > >`RESOURCE_REQUIRED` BIT NOT NULL,
> > > > >PRIMARY KEY (`NAME`)
> > > > > ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification
> > > without
> > > > > a
> > > > > key length
> > > > > com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT
> > column
> > > > > 'NAME'
> > > > > used in key specification without a key length
> > > > >at com.mysql.jdbc.SQLError.createSQLException(SQLError.java
> :936)
> > > > >
> > > > > I assume that I have to specific somewhere that I am using Mysql
> > > dialect?
> > > > > Can't find where to configure this. Can someone help me here?
> > Thanks.
> > > > >
> > > > > -Zemian
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks,
> > > > Mick Knutson
> > > >
> > > > http://www.baselogic.com
> > > > http://www.blincmagazine.com
> > > > http://www.djmick.com
> > > > http://www.myspace.com/mickknutson
> > > > http://www.myspace.com/BLiNCMagazine
> > > > http://tahoe.baselogic.com
> > > > ---
> > > >
> > >
> > > --

Re: archiva failed with mysql setup

2008-01-07 Thread Mick Knutson
You did not specify the port :3306 in your jdbc URL And you need 2 DB's. 1
for archiva, and 1 for users.


On Jan 7, 2008 11:34 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:

> @Mick
> I am using Mysql version 4.1.21-standard
>
> Here are archiva.xml
>   docBase="${catalina.base}/wars/apache-archiva-1.0.war">
>username="archiva"
>   password="archiva"
>   driverClassName="com.mysql.jdbc.Driver"
>   url="jdbc:mysql://localhost/archiva" />
>
>username="archiva"
>   password="archiva"
>   driverClassName="com.mysql.jdbc.Driver"
>   url="jdbc:mysql://localhost/archiva" />
> type="javax.mail.Session"
>mail.smtp.host="popmail01.corporate.connextions.net"/>
>  
>
>
>
> @Wayne
> Thanks! I will post there from now on after this question :)
>
> -Zemian
>
> On Jan 7, 2008 2:05 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> > As Wendy says... ;-)
> >
> > Archiva has separate mailing lists... please come join us there if you
> > have questions:  http://maven.apache.org/archiva/mail-lists.html
> >
> > Wayne
> >
> > On 1/7/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > What MySql Version?
> > >
> > > Can you post your archiva.xml?
> > >
> > >
> > > On Jan 7, 2008 10:57 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi list,
> > > > I didn't see a separated list for archiva, so I post question here.
> > > >
> > > > I am installing archiva with default derby worked fine. Now I am
> > trying to
> > > > configure to use Mysql. When I run my Tomcat server, I get the
> > following
> > > > error:
> > > >
> > > > 2008-01-07 13:18:12,481 [main] INFO
> > > > org.apache.catalina.core.ContainerBase
> > .[Catalina].[localhost].[/archiva]
> > > > - Loading plexus context properties from:
> '/WEB-INF/plexus.properties'
> > > > 2008-01-07 13:18:12,488 [main] INFO
> > > > org.apache.catalina.core.ContainerBase
> > .[Catalina].[localhost].[/archiva]
> > > > - Could not load plexus context properties from:
> > > > '/WEB-INF/plexus.properties'
> > > > 2008-01-07 13:18:13,365 [main] INFO
> > org.codehaus.plexus.PlexusContainer -
> > > > Loading on start [role,roleHint]: [
> > > > org.apache.maven.archiva.web.startup.ArchivaStartup,default]
> > > > 2008-01-07 13:18:15,031 [main] WARN
> > > > net.sf.ehcache.config.ConfigurationFactory  - No configuration
> found.
> > > > Configuring ehcache from ehcache-failsafe.xml  found in the
> classpath:
> > > > jar:file:/opt/apache-tomcat-5.5.17
> > > > /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache-
> > > > 1.3.0.jar!/ehcache-failsafe.xml
> > > > 2008-01-07 13:18:16,497 [main] WARN  JPOX.General  - SQL warning:
> > > > java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use
> > > > 'ENGINE=storage_engine' instead
> > > > 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS  - Error thrown
> > executing
> > > > CREATE TABLE `SECURITY_OPERATIONS`
> > > > (
> > > >`NAME` VARCHAR(256) BINARY NOT NULL,
> > > >`DESCRIPTION` VARCHAR(256) BINARY NULL,
> > > >`PERMANENT` BIT NOT NULL,
> > > >`RESOURCE_REQUIRED` BIT NOT NULL,
> > > >PRIMARY KEY (`NAME`)
> > > > ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification
> > without
> > > > a
> > > > key length
> > > > com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT
> column
> > > > 'NAME'
> > > > used in key specification without a key length
> > > >at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
> > > >
> > > > I assume that I have to specific somewhere that I am using Mysql
> > dialect?
> > > > Can't find where to configure this. Can someone help me here?
> Thanks.
> > > >
> > > > -Zemian
> > > >
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/BLiNCMagazine
> > > http://tahoe.baselogic.com
> > > ---
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>



-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: Dashboard summary missing PMD and Cobertura sections

2008-01-07 Thread dvicente

Hi Lee,

For Cobertura, your plugin configuration is commented, why ?

So far, only Cobertura 2.0 version is supported , so I advise you to
configure Cobertura as :

...





org.codehaus.mojo
cobertura-maven-plugin
2.0



clean







...


...

org.codehaus.mojo
cobertura-maven-plugin
2.0





and it must work.

For pmd and cpd, the problem is the true parameter.

As described in the doc :
http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#aggregate

if you set the aggregate parameter to "true", the pmd and cpd xml files are
only at the root project target directory.

But it isn't compatible with dashboard report, because the dashboard scan
each module to retreive xml files.
So delete this "true"  line, without this, each
module will have its own pmd and cpd xml files and the dashboard will be
able to aggregate values.

I hope it will help you

Lee Meador-3 wrote:
> 
> David,
> 
> I have sent the files you suggested by seperate email. If you have a
> whitelist protecting your email from spam it might not get through to you.
> Let me know.
> 
> Sorry to inflict this on the maven users list.
> 
> -- Lee
> 
> On Jan 4, 2008 1:44 PM, dvicente <[EMAIL PROTECTED]> wrote:
> 
>>
>> Could you post your pom.xml to see the reporting configuration ?
>>
>> you can do a "mvn -e -x dashboard-report:dashboard>maven.log" and post
>> the
>> maven.log as attachment ?
>>
>>
>> Lee Meador-3 wrote:
>> >
>> > 1) The issue about the relocated XML files not being found was added
>> here
>> > http://jira.codehaus.org/browse/MOJO-987
>> >
>> > 2) I noticed the issue already reported about the Cobertura columns not
>> > appearing due to mixed Cobertura version. I suppose they are only
>> missing
>> > in
>> > the parent project's dashboard report.
>> >
>> > 3) Any ideas on why my PMD and CPD reports are not included on the
>> > dashboard?
>> >
>> > Thanks.
>> >
>> > On Jan 4, 2008 2:16 AM, dvicente <[EMAIL PROTECTED]> wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> i'm the dashboard's project leader.
>> >>
>> >> It's true that the dashboard used the default location of output
>> >> directory
>> >> for each plugin.
>> >>
>> >> I must resolve this problem.
>> >>
>> >> Create an issue under  http://jira.codehaus.org/browse/MOJO JIRA
>> >>
>> >>
>> >> David
>> >>
>> >>
>> >>
>> >> Lee Meador-3 wrote:
>> >> >
>> >> > How does the dashboard report plugin know whether to include the
>> >> various
>> >> > summarized reports? My PMD and/or CPD report isn't showing up at all
>> in
>> >> > the
>> >> > dashboard and the Cobertura columns show nothing next to the JDepend
>> >> > column
>> >> > in that dashboard section.
>> >> >
>> >> > I'm thinking it must look for certain xml files to be in certain
>> >> places.
>> >> > For
>> >> > example, when I was putting the FindBugs xml in a custom location
>> with:
>> >> >
>> >> > 
>> >> >   ${project.build.directory}/findbugs-reports
>> >> > 
>> >> >
>> >> > the dashboard didn't know about the findbugs report. (That setup
>> fact
>> >> > might
>> >> > be needed in the docs BTW.)
>> >> >
>> >> > I am not specifying a location for the missing reports' xml files.
>> Its
>> >> > just
>> >> > the default.
>> >> >
>> >> > Any ideas?
>> >> >
>> >> > -- Lee Meador
>> >> > Sent from gmail. My real email address is lee AT leemeador.com
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Dashboard-summary-missing-PMD-and-Cobertura-sections-tp14604267s177p14612401.html
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > -- Lee Meador
>> > Sent from gmail. My real email address is lee AT leemeador.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dashboard-summary-missing-PMD-and-Cobertura-sections-tp14604267s177p14623584.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> -- Lee Meador
> Sent from gmail. My real email address is lee AT leemeador.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dashboard-summary-missing-PMD-and-Cobertura-sections-tp14604267s177p14673934.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Re: archiva failed with mysql setup

2008-01-07 Thread Zemian Deng
@Mick
I am using Mysql version 4.1.21-standard

Here are archiva.xml

 

 
 
 



@Wayne
Thanks! I will post there from now on after this question :)

-Zemian

On Jan 7, 2008 2:05 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> As Wendy says... ;-)
>
> Archiva has separate mailing lists... please come join us there if you
> have questions:  http://maven.apache.org/archiva/mail-lists.html
>
> Wayne
>
> On 1/7/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > What MySql Version?
> >
> > Can you post your archiva.xml?
> >
> >
> > On Jan 7, 2008 10:57 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:
> >
> > > Hi list,
> > > I didn't see a separated list for archiva, so I post question here.
> > >
> > > I am installing archiva with default derby worked fine. Now I am
> trying to
> > > configure to use Mysql. When I run my Tomcat server, I get the
> following
> > > error:
> > >
> > > 2008-01-07 13:18:12,481 [main] INFO
> > > org.apache.catalina.core.ContainerBase
> .[Catalina].[localhost].[/archiva]
> > > - Loading plexus context properties from: '/WEB-INF/plexus.properties'
> > > 2008-01-07 13:18:12,488 [main] INFO
> > > org.apache.catalina.core.ContainerBase
> .[Catalina].[localhost].[/archiva]
> > > - Could not load plexus context properties from:
> > > '/WEB-INF/plexus.properties'
> > > 2008-01-07 13:18:13,365 [main] INFO
> org.codehaus.plexus.PlexusContainer -
> > > Loading on start [role,roleHint]: [
> > > org.apache.maven.archiva.web.startup.ArchivaStartup,default]
> > > 2008-01-07 13:18:15,031 [main] WARN
> > > net.sf.ehcache.config.ConfigurationFactory  - No configuration found.
> > > Configuring ehcache from ehcache-failsafe.xml  found in the classpath:
> > > jar:file:/opt/apache-tomcat-5.5.17
> > > /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache-
> > > 1.3.0.jar!/ehcache-failsafe.xml
> > > 2008-01-07 13:18:16,497 [main] WARN  JPOX.General  - SQL warning:
> > > java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use
> > > 'ENGINE=storage_engine' instead
> > > 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS  - Error thrown
> executing
> > > CREATE TABLE `SECURITY_OPERATIONS`
> > > (
> > >`NAME` VARCHAR(256) BINARY NOT NULL,
> > >`DESCRIPTION` VARCHAR(256) BINARY NULL,
> > >`PERMANENT` BIT NOT NULL,
> > >`RESOURCE_REQUIRED` BIT NOT NULL,
> > >PRIMARY KEY (`NAME`)
> > > ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification
> without
> > > a
> > > key length
> > > com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column
> > > 'NAME'
> > > used in key specification without a key length
> > >at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
> > >
> > > I assume that I have to specific somewhere that I am using Mysql
> dialect?
> > > Can't find where to configure this. Can someone help me here? Thanks.
> > >
> > > -Zemian
> > >
> >
> >
> >
> > --
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/BLiNCMagazine
> > http://tahoe.baselogic.com
> > ---
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Archiva logging level

2008-01-07 Thread Bashar Jawad
When we deployed archiva on our CI server we noticed that archiva was 
generating tons of logging statements in the log file. The average size 
of a log file each day was 50+ MB! This of course is not acceptable, is 
there a way to reduce the logging level in archiva? I looked at 
archiva.xml and couldn't find anything related to logging there. Any ideas?


Thanks,
Bashar

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



Re: archiva failed with mysql setup

2008-01-07 Thread Wayne Fay
As Wendy says... ;-)

Archiva has separate mailing lists... please come join us there if you
have questions:  http://maven.apache.org/archiva/mail-lists.html

Wayne

On 1/7/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> What MySql Version?
>
> Can you post your archiva.xml?
>
>
> On Jan 7, 2008 10:57 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:
>
> > Hi list,
> > I didn't see a separated list for archiva, so I post question here.
> >
> > I am installing archiva with default derby worked fine. Now I am trying to
> > configure to use Mysql. When I run my Tomcat server, I get the following
> > error:
> >
> > 2008-01-07 13:18:12,481 [main] INFO
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
> > - Loading plexus context properties from: '/WEB-INF/plexus.properties'
> > 2008-01-07 13:18:12,488 [main] INFO
> > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
> > - Could not load plexus context properties from:
> > '/WEB-INF/plexus.properties'
> > 2008-01-07 13:18:13,365 [main] INFO  org.codehaus.plexus.PlexusContainer -
> > Loading on start [role,roleHint]: [
> > org.apache.maven.archiva.web.startup.ArchivaStartup,default]
> > 2008-01-07 13:18:15,031 [main] WARN
> > net.sf.ehcache.config.ConfigurationFactory  - No configuration found.
> > Configuring ehcache from ehcache-failsafe.xml  found in the classpath:
> > jar:file:/opt/apache-tomcat-5.5.17
> > /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache-
> > 1.3.0.jar!/ehcache-failsafe.xml
> > 2008-01-07 13:18:16,497 [main] WARN  JPOX.General  - SQL warning:
> > java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use
> > 'ENGINE=storage_engine' instead
> > 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS  - Error thrown executing
> > CREATE TABLE `SECURITY_OPERATIONS`
> > (
> >`NAME` VARCHAR(256) BINARY NOT NULL,
> >`DESCRIPTION` VARCHAR(256) BINARY NULL,
> >`PERMANENT` BIT NOT NULL,
> >`RESOURCE_REQUIRED` BIT NOT NULL,
> >PRIMARY KEY (`NAME`)
> > ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without
> > a
> > key length
> > com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column
> > 'NAME'
> > used in key specification without a key length
> >at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
> >
> > I assume that I have to specific somewhere that I am using Mysql dialect?
> > Can't find where to configure this. Can someone help me here? Thanks.
> >
> > -Zemian
> >
>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>

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



Re: archiva failed with mysql setup

2008-01-07 Thread Mick Knutson
What MySql Version?

Can you post your archiva.xml?


On Jan 7, 2008 10:57 AM, Zemian Deng <[EMAIL PROTECTED]> wrote:

> Hi list,
> I didn't see a separated list for archiva, so I post question here.
>
> I am installing archiva with default derby worked fine. Now I am trying to
> configure to use Mysql. When I run my Tomcat server, I get the following
> error:
>
> 2008-01-07 13:18:12,481 [main] INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
> - Loading plexus context properties from: '/WEB-INF/plexus.properties'
> 2008-01-07 13:18:12,488 [main] INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
> - Could not load plexus context properties from:
> '/WEB-INF/plexus.properties'
> 2008-01-07 13:18:13,365 [main] INFO  org.codehaus.plexus.PlexusContainer -
> Loading on start [role,roleHint]: [
> org.apache.maven.archiva.web.startup.ArchivaStartup,default]
> 2008-01-07 13:18:15,031 [main] WARN
> net.sf.ehcache.config.ConfigurationFactory  - No configuration found.
> Configuring ehcache from ehcache-failsafe.xml  found in the classpath:
> jar:file:/opt/apache-tomcat-5.5.17
> /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache-
> 1.3.0.jar!/ehcache-failsafe.xml
> 2008-01-07 13:18:16,497 [main] WARN  JPOX.General  - SQL warning:
> java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use
> 'ENGINE=storage_engine' instead
> 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS  - Error thrown executing
> CREATE TABLE `SECURITY_OPERATIONS`
> (
>`NAME` VARCHAR(256) BINARY NOT NULL,
>`DESCRIPTION` VARCHAR(256) BINARY NULL,
>`PERMANENT` BIT NOT NULL,
>`RESOURCE_REQUIRED` BIT NOT NULL,
>PRIMARY KEY (`NAME`)
> ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without
> a
> key length
> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column
> 'NAME'
> used in key specification without a key length
>at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
>
> I assume that I have to specific somewhere that I am using Mysql dialect?
> Can't find where to configure this. Can someone help me here? Thanks.
>
> -Zemian
>



-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


archiva failed with mysql setup

2008-01-07 Thread Zemian Deng
Hi list,
I didn't see a separated list for archiva, so I post question here.

I am installing archiva with default derby worked fine. Now I am trying to
configure to use Mysql. When I run my Tomcat server, I get the following
error:

2008-01-07 13:18:12,481 [main] INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
- Loading plexus context properties from: '/WEB-INF/plexus.properties'
2008-01-07 13:18:12,488 [main] INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
- Could not load plexus context properties from:
'/WEB-INF/plexus.properties'
2008-01-07 13:18:13,365 [main] INFO  org.codehaus.plexus.PlexusContainer  -
Loading on start [role,roleHint]: [
org.apache.maven.archiva.web.startup.ArchivaStartup,default]
2008-01-07 13:18:15,031 [main] WARN
net.sf.ehcache.config.ConfigurationFactory  - No configuration found.
Configuring ehcache from ehcache-failsafe.xml  found in the classpath:
jar:file:/opt/apache-tomcat-5.5.17
/instances/buildman/webapps/archiva/WEB-INF/lib/ehcache-
1.3.0.jar!/ehcache-failsafe.xml
2008-01-07 13:18:16,497 [main] WARN  JPOX.General  - SQL warning:
java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use
'ENGINE=storage_engine' instead
2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS  - Error thrown executing
CREATE TABLE `SECURITY_OPERATIONS`
(
`NAME` VARCHAR(256) BINARY NOT NULL,
`DESCRIPTION` VARCHAR(256) BINARY NULL,
`PERMANENT` BIT NOT NULL,
`RESOURCE_REQUIRED` BIT NOT NULL,
PRIMARY KEY (`NAME`)
) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without a
key length
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column 'NAME'
used in key specification without a key length
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)

I assume that I have to specific somewhere that I am using Mysql dialect?
Can't find where to configure this. Can someone help me here? Thanks.

-Zemian


Re: Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Damien Lecan
> 2) use version ranges in the parent pom. This way, the new version of
> the library is used by all projects as soon as it is available in our
> central repository. Much easier to manage, but it sound a bit scary to
> have it that much automated ... Other problem, we will loose build
> reproducibility ...
>
> I'll be happy to know how you manage dependency versions in large
> organizations ...

As you describe for my project ((900+ modules).
Parent version is defined for each projets and parent project defines
version range dependencies.

According to this :
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-Reproducibility
version ranges are removed when release is done to preserve reproductibility.

Damien

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



Re: Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Guillaume Lederrey
I'm afraid that solution #1 will be hard to scale ... We have releases
almost every day. Updating every other project every day doesnt seems
to be such a good idea either ...

But thanks for your feedback !

On 07/01/2008, Barrett Nuzum <[EMAIL PROTECTED]> wrote:
> Guillaume:
>
> At one of our clients, we had a very similar situation.
> We opted to go with option #1, below.
>
> It *is* a bit of a maintenance burden, but it's far more reliable and 
> explicit than any alternatives.
>
> Barrett
>
> ::
> Barrett Nuzum
> Sr. Consultant
> Direct: 918.640.4414
> Fax: 972.789.1340
>
> Valtech Technologies, Inc.
> 5080 Spectrum Drive
> Suite 700 West
> Addison, Texas 75001
> www.valtech.us 
> Delivering Business Agility
>
>
> 
>
> From: Guillaume Lederrey [mailto:[EMAIL PROTECTED]
> Sent: Mon 1/7/2008 10:34 AM
> To: Maven Users List
> Subject: Dependency versions in large multi-projects multi-modules environment
>
>
>
> Hello !
>
> I have to investigate the migration to Maven in our organisation. We
> have a pretty large software base : about 100 projects each generating
> 3 to 6 artifacts. A part of these modules are a framework used by most
> other projects.
>
> For the moment, we are managing versioning with ant, and a script that
> download the latest version of each library. This script is updated
> every time a new version of a library is released. The script itself
> is on a server and accessed by all developers / build tools.
>
> I see to major ways to do the same with Maven :
>
> 1) replace our script by a parent pom which will contain all
> dependencies and versions in its  section. This
> means that every time a new library is released, a new version of this
> parent pom has to be released as well. And all other projects have to
> update their reference to the latest parent pom.
>
> 2) use version ranges in the parent pom. This way, the new version of
> the library is used by all projects as soon as it is available in our
> central repository. Much easier to manage, but it sound a bit scary to
> have it that much automated ... Other problem, we will loose build
> reproducibility ...
>
> I'll be happy to know how you manage dependency versions in large
> organizations ...
>
> Thanks a lot !
>
>Guillaume
>
>
> --
> Jabber : [EMAIL PROTECTED]
> Skype : Guillaume.Lederrey
> Projects :
> * http://rwanda.wordpress.com/
> * http://rwandatech.wordpress.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

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



maven-release-manager and maven-release-plugin releases

2008-01-07 Thread brewk9

Does anyone know when there will be production(non-beta, non-alpha) releases
of maven-release-manager and maven-release-plugin?

Thanks,

-Ken
-- 
View this message in context: 
http://www.nabble.com/maven-release-manager-and-maven-release-plugin-releases-tp14670740s177p14670740.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Add source folder

2008-01-07 Thread Dan Tran
if your added source folder is not under project basedir, eclipse will
not see it. even thou
buildhelper does add the source folder.

-D

On Jan 7, 2008 8:55 AM, Jan Torben Heuer <[EMAIL PROTECTED]> wrote:
> Tom Huybrechts wrote:
>
> >> I would say, theoretically, it should. However, to accomplish it
> >> properly, it would have to execute the given pom and analyze the results
> >> to see what source folders are being looked at... Afer all, any plugin
> >> could be jumping in and adding source folders, even without having them
> >> declared anywhere in the pom.
> >>
> >
> > This is indeed a problem. That's why the eclipse:eclipse goal is
> > supposed to run the lifecycle up to generate-resources first (@execute
> > phase="generate-resources"), so plugins have a change to add source
> > folders. Can you verify that this indeed happens - and that the goal
> > to add the source folder is run before generate-resources ?
>
> Yes, the sourcefolder is not added my maven-eclipse-plugin.
>
>
> Jan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Use a custom reporter with testng and surefire?

2008-01-07 Thread Andrew Robinson
I have the following in my pom:

  
maven-surefire-plugin
2.4-SNAPSHOT

  once
  false
  true
  ${project.build.directory}
  
**/*Test.java
  
  

  listener
  testing.TestNGListener


  reporter
  testing.TestNGReporter


I am using TestNG 5.6

The listener is getting used, but the reporter is not. Is there some other
way of setting a custom reporter with surefire & TestNG?

Thanks,
Andrew


mvn tomcat:deploy OutOfMemoryError

2008-01-07 Thread VanIngen, Erik (ESTG)
Hi 

While performing mvn tomcat:deploy, I receive this error: OutOfMemoryError.

These are my settings:
set MAVEN_OPTS=-Xmx2024m -Xms2024m -XX:MaxPermSize=1024m

Any idea?

Kind Regards,
Erik van Ingen



[INFO] Deploying war to http://ldvapp07.fao.org:8030/fenix-birt-0.0.1
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Java heap space
[INFO]

[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)

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



RE: Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Barrett Nuzum
Guillaume:
 
At one of our clients, we had a very similar situation.
We opted to go with option #1, below.
 
It *is* a bit of a maintenance burden, but it's far more reliable and explicit 
than any alternatives.
 
Barrett
 
::   
Barrett Nuzum
Sr. Consultant
Direct: 918.640.4414
Fax: 972.789.1340 

Valtech Technologies, Inc.
5080 Spectrum Drive
Suite 700 West
Addison, Texas 75001
www.valtech.us 
Delivering Business Agility




From: Guillaume Lederrey [mailto:[EMAIL PROTECTED]
Sent: Mon 1/7/2008 10:34 AM
To: Maven Users List
Subject: Dependency versions in large multi-projects multi-modules environment



Hello !

I have to investigate the migration to Maven in our organisation. We
have a pretty large software base : about 100 projects each generating
3 to 6 artifacts. A part of these modules are a framework used by most
other projects.

For the moment, we are managing versioning with ant, and a script that
download the latest version of each library. This script is updated
every time a new version of a library is released. The script itself
is on a server and accessed by all developers / build tools.

I see to major ways to do the same with Maven :

1) replace our script by a parent pom which will contain all
dependencies and versions in its  section. This
means that every time a new library is released, a new version of this
parent pom has to be released as well. And all other projects have to
update their reference to the latest parent pom.

2) use version ranges in the parent pom. This way, the new version of
the library is used by all projects as soon as it is available in our
central repository. Much easier to manage, but it sound a bit scary to
have it that much automated ... Other problem, we will loose build
reproducibility ...

I'll be happy to know how you manage dependency versions in large
organizations ...

Thanks a lot !

   Guillaume


--
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

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




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



Re: Add source folder

2008-01-07 Thread Jan Torben Heuer
Tom Huybrechts wrote:

>> I would say, theoretically, it should. However, to accomplish it
>> properly, it would have to execute the given pom and analyze the results
>> to see what source folders are being looked at... Afer all, any plugin
>> could be jumping in and adding source folders, even without having them
>> declared anywhere in the pom.
>>
> 
> This is indeed a problem. That's why the eclipse:eclipse goal is
> supposed to run the lifecycle up to generate-resources first (@execute
> phase="generate-resources"), so plugins have a change to add source
> folders. Can you verify that this indeed happens - and that the goal
> to add the source folder is run before generate-resources ?

Yes, the sourcefolder is not added my maven-eclipse-plugin.

Jan


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



Dependency versions in large multi-projects multi-modules environment

2008-01-07 Thread Guillaume Lederrey
Hello !

I have to investigate the migration to Maven in our organisation. We
have a pretty large software base : about 100 projects each generating
3 to 6 artifacts. A part of these modules are a framework used by most
other projects.

For the moment, we are managing versioning with ant, and a script that
download the latest version of each library. This script is updated
every time a new version of a library is released. The script itself
is on a server and accessed by all developers / build tools.

I see to major ways to do the same with Maven :

1) replace our script by a parent pom which will contain all
dependencies and versions in its  section. This
means that every time a new library is released, a new version of this
parent pom has to be released as well. And all other projects have to
update their reference to the latest parent pom.

2) use version ranges in the parent pom. This way, the new version of
the library is used by all projects as soon as it is available in our
central repository. Much easier to manage, but it sound a bit scary to
have it that much automated ... Other problem, we will loose build
reproducibility ...

I'll be happy to know how you manage dependency versions in large
organizations ...

Thanks a lot !

   Guillaume


-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

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



Re: Add source folder

2008-01-07 Thread Tom Huybrechts
On Jan 7, 2008 5:19 PM, Kallin Nagelberg <[EMAIL PROTECTED]> wrote:
> I would say, theoretically, it should. However, to accomplish it properly,
> it would have to execute the given pom and analyze the results to see what
> source folders are being looked at... Afer all, any plugin could be jumping
> in and adding source folders, even without having them declared anywhere in
> the pom.
>

This is indeed a problem. That's why the eclipse:eclipse goal is
supposed to run the lifecycle up to generate-resources first (@execute
phase="generate-resources"), so plugins have a change to add source
folders. Can you verify that this indeed happens - and that the goal
to add the source folder is run before generate-resources ?

Tom

>
> There is also the problem where you have non-java sources. I am using groovy
> in my project, and IDEA/eclipse does not recognize that as a source folder
> via the pom.
>
> I would suggest you do what I did, and split your multi-source artifact into
> two seperate ones. If they are heavily dependant on each other, you may wish
> to factor out the dependencies into a third module which could be depended
> on by your two new artifacts.
>
> Alternatively, you could just tell everyone on your team to go add the
> appropriate source folders manually whenever they open a project.
>
> On Jan 7, 2008 9:16 AM, Jan Torben Heuer <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
> > Kallin Nagelberg wrote:
> >
> > > I was using this plugin for a bit to add an additional source directory,
> > > but intellij IDEA does not recognize the additional source. I ended up
> > > having to create a new artifact for the second set of sources.
> >
> > eclipse (or the maven-eclipse-plugin) does not add the sourcefolder as
> > well.
> > Or should it?
> >
> > Jan
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: Add source folder

2008-01-07 Thread Kallin Nagelberg
I would say, theoretically, it should. However, to accomplish it properly,
it would have to execute the given pom and analyze the results to see what
source folders are being looked at... Afer all, any plugin could be jumping
in and adding source folders, even without having them declared anywhere in
the pom.

There is also the problem where you have non-java sources. I am using groovy
in my project, and IDEA/eclipse does not recognize that as a source folder
via the pom.

I would suggest you do what I did, and split your multi-source artifact into
two seperate ones. If they are heavily dependant on each other, you may wish
to factor out the dependencies into a third module which could be depended
on by your two new artifacts.

Alternatively, you could just tell everyone on your team to go add the
appropriate source folders manually whenever they open a project.

On Jan 7, 2008 9:16 AM, Jan Torben Heuer <[EMAIL PROTECTED]>
wrote:

> Kallin Nagelberg wrote:
>
> > I was using this plugin for a bit to add an additional source directory,
> > but intellij IDEA does not recognize the additional source. I ended up
> > having to create a new artifact for the second set of sources.
>
> eclipse (or the maven-eclipse-plugin) does not add the sourcefolder as
> well.
> Or should it?
>
> Jan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: maven-sar-plugin?

2008-01-07 Thread Ian Springer

Hi,

Use the dependency plugin's copy goal: 
http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html


Ian

amit kumar wrote:

Hi,
I am using maven-sar-plugin and after the build its creating a lib folder. I
want to put all the dependencies that I mentioned in the pom.xml to this
folder. How do I do it?

Regards,
Hemant malik

  



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



Re: Shared dependencies deployment to Tomcat 5.5 or 6.0 + other servers

2008-01-07 Thread Serge Huber
Hi Adam,

Sorry I missed your reply, only saw it now.

Basically my requirements is that I'm am developing APIs that will be shared
across different WARs, along with an integration with Pluto & J2 that needs
it's JARs deployed to the shared classloader.

I want to avoid manual copy as I want to automate this for building fully
functional deployments for QA and distribution. We have this process running
fine in Maven 1, but I must admit it is a hard transition for me to Maven 2.

In Maven 1 I simply used dependency properties to mark the libraries as
"shared", and had to be careful to maintain version consistency. In Maven 2
I am cleaning this process by using a top project for these dependencies,
but I'm still running into the problem of packaging these dependencies
properly, and only these.

Ideally I would like to have something like this :

appserver:deploy-shared-libs

And this would automatically deploy shared libraries into Tomcat 5.5, Tomcat
6, Websphere and Weblogic.

Any assistance on this topic would be really welcome. I hope it is clearer.

Regards,
  Serge Huber.

On Dec 22, 2007 8:53 PM, Adam Hardy <[EMAIL PROTECTED]> wrote:

> Hi Serge,
>
> it's a bit unclear what your aim is here, or rather your requirements.
>
> You have one project or more? When running a deploy to the server, m2
> would
> generally speaking just deploy a WAR file to the server's deploy
> directory, e.g.
> webapps in tomcat 5 & 6.
>
> If you are building several projects which would need to share jars that
> you
> want to put in a webserver's common directory, then do it manually. What
> reason
> do you have to redeploy such common jars? If they are dependencies of
> several
> projects, then it seems you require maven to maintain version consistency
> across
> several projects and to determine what versions of projects were already
> deployed, which seems unreasonably complicated. I doubt there is a plugin
> which
> does such a thing.
>
> Regards
> Adam
>
> Serge Huber on 20/12/07 14:54, wrote:
> > Hi all,
> >
> > I am in the process of converting a rather complex project from Maven 1
> to
> > Maven 2, and despite my best attempts at googling for these answers, I
> have
> > only been able to go so far. I've also been looking at some projects,
> like
> > Jetspeed 2, that seems to be doing some rather advanced stuff with Maven
> 2.
> >
> > Anyway, in our existing Maven 1 project, we use Jelly scripts to perform
> > deployment of "common" resources to our Tomcat server. The problem is
> that
> > Tomcat has been moving around things in the latest versions, and
> deployment
> > of common resources is different between Tomcat 5.5 and 6. In Tomcat 5.5we
> > would copy the required dependencies manually to tomcat/shared/lib, but
> I
> > didn't really think this was the cleanest way of doing this.
> >
> > As I am re-organizing our project structure for Maven 2, I was building
> a
> > "common" sub-project with all the dependencies, which is cleaner than
> what
> > we use to do, but I know have no idea how best to deploy these,
> especially
> > based on the different locations for different Tomcat versions. Should I
> use
> > the tomcat-maven-plugin ? Should I use Cargo ? Which one of the two has
> the
> > biggest community ? If I should build my own Mojo, is there a
> recommended
> > way to build deployment plugins, using maybe profiles to make it as
> server
> > independent as possible ? Lots of questions as you can see :)
> >
> > I really hope someone out there can help, because I can't believe I'm
> the
> > only one having this issue :)
> >
> > cheers,
> >   Serge...
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


plexus components configuration

2008-01-07 Thread Zsolt KOZAK
Hi,

I have the following problem.

We use a custom packaging called "warstub". We uses modules and if a
module depends on other modules, its war will contain ALL the
dependecies (jars, html, images, etc). A warstub would contain only the
current module web-stuff (jar, html, etc.), so it's a kind of war but
contains less stuff. We created our own plugin which creates "warstub".

It's a simple plugin, it contains only a plexus components.xml. Here is
a snipplet from the componets.xml:

..

  org.apache.maven.lifecycle.mapping.LifecycleMapping
  warstub
 
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
  

  
default

 
org.apache.maven.plugins:maven-resources-plugin:resources
 
org.apache.maven.plugins:maven-compiler-plugin:compile
 
org.apache.maven.plugins:maven-resources-plugin:testResources
 
org.apache.maven.plugins:maven-compiler-plugin:testCompile
 
org.apache.maven.plugins:maven-surefire-plugin:test
 
org.apache.maven.plugins:maven-war-plugin:war
 
org.apache.maven.plugins:maven-install-plugin:install
 
org.apache.maven.plugins:maven-deploy-plugin:deploy

  

  

.


This maps the lifecycle phases to the proper maven-plugins.

And here is the ArtifactHandler config part:



  org.apache.maven.artifact.handler.ArtifactHandler
  warstub
 
org.apache.maven.artifact.handler.DefaultArtifactHandler
  
warstub
java
false
false
war
  




What is my problem? Because we use the maven-war-plugin for packaging,
it includes all the dependecy JARs... So if a module depends on 5 other
modules, the target warstub will contain the 5 JARs (of the modules) as
well... If I could use "warSourceExcludes" parameter, I could exclude
all the dependent JARs. My problem is how to configure the
maven-war-plugin in a plexus components.xml.

Could you help me, please?

thank you,
Zsolt

-- 
Zsolt KOZAK  [EMAIL PROTECTED]
personal web:http://zso.lt
Road To Avonlea: http://avonlea.hu


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



Re: A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
Thanks!
   
  
  > Hi all,
>
>   Formerly I used maven1 and I can use the  in the
 project.xml as follow:
>   ...
>   
>   commons-logging
>   commons-logging
>   1.0.4
>   jar
>   
>   true
>   
>   
>   ...
>
>   Now I use maven2. And I try to do the same in the POM.xml. But as I
 run mvn-command I get error as follow. If I take out the
 , it will be OK. But I do need the . Somebody can 
tell me
 what's wrong?

It works differently in maven2.
If you project has packaging == war, then, dependencies will be
included in war file.
You may define that you do not want them to be in bundled, then you
 have to add
provided which means that servlet container (J2EE
 server)
will provide those libraries for your application.
Typical usage: dependency on servlet-api.
More about this here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

HTH,
Tomek



   
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
dem  neuen Yahoo! Mail. 

Re: A question about setting in the POM.xml

2008-01-07 Thread Jeff MAURY
Simply remove it.

Jeff


On Jan 7, 2008 3:45 PM, Thomas Chang <[EMAIL PROTECTED]> wrote:

> What should I do now? Is there any replacement for  ?
>
>
>  
>
> properties aren't allowed in the  section:
>
>   http://maven.apache.org/pom.html
>
>   http://maven.apache.org/maven-v4_0_0.xsd   (schema)
>
> HTH
>
>
>  > Hi all,
> >
> >   Formerly I used maven1 and I can use the  in the
> > project.xml as follow:
> >   ...
> >   
> >   commons-logging
> >   commons-logging
> >   1.0.4
> >   jar
> >   
> >   true
> >   
> >   
> >   ...
>
>  Now I use maven2. And I try to do the same in the POM.xml. But as I
>  run
> > mvn-command I get error as follow. If I take out the ,
>  it
> > will be OK. But I do need the . Somebody can tell me
>  what's
> > wrong?
> >
> >   Regards
> >
> >   Thomas
> >
> >
> >   
> >   E:\Projekte\TestSpringJpa>mvn -s "..\TestMavenConfig\settings.xml"
>  clean
> > [INFO] Scanning for projects...
> > [INFO]
> >
>  
> > [ERROR] FATAL ERROR
> > [INFO]
> >
>  
> > [INFO] Error building POM (may not be this project's POM).
> >
> > Project ID: unknown
> > POM Location: E:\Projekte\TestSpringJpa\pom.xml
> >   Reason: Parse error reading POM. Reason: Unrecognised tag:
>  'properties'
> > (positio
> > n: START_TAG seen ...\r\n\t\t\t... @17:16)  for
>  project
> > unkno
> > wn at E:\Projekte\TestSpringJpa\pom.xml
> >
> > [INFO]
> >
>  
> > [INFO] Trace
> > org.apache.maven.reactor.MavenExecutionException: Parse error reading
>  POM.
> > Reaso
> > n: Unrecognised tag: 'properties' (position: START_TAG seen
> > ...\r\n\t\t\t
> > ... @17:16)  for project unknown at
> > E:\Projekte\TestSpringJpa\pom.xm
> > l
> > at
>  org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
> > :378)
> > at
>  org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> > at
>  org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>  Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.
> > java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAcces
> > sorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at
>  org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> > :315)
> > at
>  org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > Launcher.java:430)
> >   at
>  org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.project.InvalidProjectModelException:
>  Parse
> > error re
> > ading POM. Reason: Unrecognised tag: 'properties' (position:
>  START_TAG
> > seen ...<
> > /type>\r\n\t\t\t... @17:16)  for project unknown at
> > E:\Projekte\Test
> > SpringJpa\pom.xml
> > at
>  org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> > (Default
> > MavenProjectBuilder.java:1422)
> > at
>  org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> > (Default
> > MavenProjectBuilder.java:1379)
> > at
> > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> > leInternal(DefaultMavenProjectBuilder.java:477)
> > at org.apache.maven.project.DefaultMavenProjectBuilder.build
> > (DefaultMave
> > nProjectBuilder.java:200)
> > at
>  org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> > at
>  org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
> > :467)
> > at
>  org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
> > :364)
> > ... 11 more
> > Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
> > Unrecognise
> > d tag: 'properties' (position: START_TAG seen
> > ...\r\n\t\t\t..
> > . @17:16)
> > at
>  org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency
> > (MavenX
> > pp3Reader.java:1261)
> > at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel
> > (MavenXpp3Re
> > ader.java:2323)
> > at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(
> > MavenXpp3Reader.j
> > ava:4422)
> > at
>  org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> > (Default
> > MavenProjectBuilder.java:1418)
> > ... 17 more
> > [INFO]
> >
>  
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Mon Jan 07 15:21:01 CET 2008
> > [INFO] Final Memory: 1M/2M
> > [INFO]
> >
>  
> >   E:\Projekte\TestSpringJpa>
>

Re: A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
What should I do now? Is there any replacement for  ?
   
   
  

properties aren't allowed in the  section:

   http://maven.apache.org/pom.html

   http://maven.apache.org/maven-v4_0_0.xsd   (schema)

HTH

   
  > Hi all,
>
>   Formerly I used maven1 and I can use the  in the
> project.xml as follow:
>   ...
>   
>   commons-logging
>   commons-logging
>   1.0.4
>   jar
>   
>   true
>   
>   
>   ...

  Now I use maven2. And I try to do the same in the POM.xml. But as I
 run
> mvn-command I get error as follow. If I take out the ,
 it
> will be OK. But I do need the . Somebody can tell me
 what's
> wrong?
>
>   Regards
>
>   Thomas
>
>
>   
>   E:\Projekte\TestSpringJpa>mvn -s "..\TestMavenConfig\settings.xml"
 clean
> [INFO] Scanning for projects...
> [INFO]
>
 
> [ERROR] FATAL ERROR
> [INFO]
>
 
> [INFO] Error building POM (may not be this project's POM).
>
> Project ID: unknown
> POM Location: E:\Projekte\TestSpringJpa\pom.xml
>   Reason: Parse error reading POM. Reason: Unrecognised tag:
 'properties'
> (positio
> n: START_TAG seen ...\r\n\t\t\t... @17:16)  for
 project
> unkno
> wn at E:\Projekte\TestSpringJpa\pom.xml
>
> [INFO]
>
 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Parse error reading
 POM.
> Reaso
> n: Unrecognised tag: 'properties' (position: START_TAG seen
> ...\r\n\t\t\t
> ... @17:16)  for project unknown at
> E:\Projekte\TestSpringJpa\pom.xm
> l
> at
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
> :378)
> at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> at
 org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
>   at
 org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.InvalidProjectModelException:
 Parse
> error re
> ading POM. Reason: Unrecognised tag: 'properties' (position:
 START_TAG
> seen ...<
> /type>\r\n\t\t\t... @17:16)  for project unknown at
> E:\Projekte\Test
> SpringJpa\pom.xml
> at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> (Default
> MavenProjectBuilder.java:1422)
> at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> (Default
> MavenProjectBuilder.java:1379)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(DefaultMavenProjectBuilder.java:477)
> at org.apache.maven.project.DefaultMavenProjectBuilder.build
> (DefaultMave
> nProjectBuilder.java:200)
> at
 org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
> :467)
> at
 org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
> :364)
> ... 11 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
> Unrecognise
> d tag: 'properties' (position: START_TAG seen
> ...\r\n\t\t\t..
> . @17:16)
> at
 org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency
> (MavenX
> pp3Reader.java:1261)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel
> (MavenXpp3Re
> ader.java:2323)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(
> MavenXpp3Reader.j
> ava:4422)
> at
 org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> (Default
> MavenProjectBuilder.java:1418)
> ... 17 more
> [INFO]
>
 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Jan 07 15:21:01 CET 2008
> [INFO] Final Memory: 1M/2M
> [INFO]
>
 
>   E:\Projekte\TestSpringJpa>


   
-
Ihr erstes Fernweh? Wo gibt es den schönsten Strand. 

Re: A question about setting in the POM.xml

2008-01-07 Thread Tomasz Pik
On Jan 7, 2008 3:23 PM, Thomas Chang <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>   Formerly I used maven1 and I can use the  in the project.xml 
> as follow:
>   ...
>   
>   commons-logging
>   commons-logging
>   1.0.4
>   jar
>   
>   true
>   
>   
>   ...
>
>   Now I use maven2. And I try to do the same in the POM.xml. But as I run 
> mvn-command I get error as follow. If I take out the , it will 
> be OK. But I do need the . Somebody can tell me what's wrong?

It works differently in maven2.
If you project has packaging == war, then, dependencies will be
included in war file.
You may define that you do not want them to be in bundled, then you have to add
provided which means that servlet container (J2EE server)
will provide those libraries for your application.
Typical usage: dependency on servlet-api.
More about this here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

HTH,
Tomek

>
>   Regards
>
>   Thomas
>
>
>   
>   E:\Projekte\TestSpringJpa>mvn -s "..\TestMavenConfig\settings.xml" clean
> [INFO] Scanning for projects...
> [INFO] 
> 
> [ERROR] FATAL ERROR
> [INFO] 
> 
> [INFO] Error building POM (may not be this project's POM).
>
> Project ID: unknown
> POM Location: E:\Projekte\TestSpringJpa\pom.xml
>   Reason: Parse error reading POM. Reason: Unrecognised tag: 'properties' 
> (positio
> n: START_TAG seen ...\r\n\t\t\t... @17:16)  for project 
> unkno
> wn at E:\Projekte\TestSpringJpa\pom.xml
>
> [INFO] 
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. 
> Reaso
> n: Unrecognised tag: 'properties' (position: START_TAG seen 
> ...\r\n\t\t\t
> ... @17:16)  for project unknown at 
> E:\Projekte\TestSpringJpa\pom.xm
> l
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error 
> re
> ading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG seen 
> ...<
> /type>\r\n\t\t\t... @17:16)  for project unknown at 
> E:\Projekte\Test
> SpringJpa\pom.xml
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1422)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1379)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(DefaultMavenProjectBuilder.java:477)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:200)
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> at 
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
> ... 11 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: 
> Unrecognise
> d tag: 'properties' (position: START_TAG seen 
> ...\r\n\t\t\t..
> . @17:16)
> at 
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency(MavenX
> pp3Reader.java:1261)
> at 
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
> ader.java:2323)
> at 
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
> ava:4422)
> at 
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1418)
> ... 17 more
> [INFO] 
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Jan 07 15:21:01 CET 2008
> [INFO] Final Memory: 1M/2M
> [INFO] 
> 
>   E:\Projekte\TestSpringJpa>
>
>
> -
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
> dem

Re: A question about setting in the POM.xml

2008-01-07 Thread Stuart McCulloch
On 07/01/2008, Thomas Chang <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
>   Formerly I used maven1 and I can use the  in the
> project.xml as follow:
>   ...
>   
>   commons-logging
>   commons-logging
>   1.0.4
>   jar
>   
>   true
>   
>   
>   ...


properties aren't allowed in the  section:

   http://maven.apache.org/pom.html

   http://maven.apache.org/maven-v4_0_0.xsd   (schema)

HTH

  Now I use maven2. And I try to do the same in the POM.xml. But as I run
> mvn-command I get error as follow. If I take out the , it
> will be OK. But I do need the . Somebody can tell me what's
> wrong?
>
>   Regards
>
>   Thomas
>
>
>   
>   E:\Projekte\TestSpringJpa>mvn -s "..\TestMavenConfig\settings.xml" clean
> [INFO] Scanning for projects...
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
> Project ID: unknown
> POM Location: E:\Projekte\TestSpringJpa\pom.xml
>   Reason: Parse error reading POM. Reason: Unrecognised tag: 'properties'
> (positio
> n: START_TAG seen ...\r\n\t\t\t... @17:16)  for project
> unkno
> wn at E:\Projekte\TestSpringJpa\pom.xml
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Parse error reading POM.
> Reaso
> n: Unrecognised tag: 'properties' (position: START_TAG seen
> ...\r\n\t\t\t
> ... @17:16)  for project unknown at
> E:\Projekte\TestSpringJpa\pom.xm
> l
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
> :378)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
>   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.InvalidProjectModelException: Parse
> error re
> ading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG
> seen ...<
> /type>\r\n\t\t\t... @17:16)  for project unknown at
> E:\Projekte\Test
> SpringJpa\pom.xml
> at org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> (Default
> MavenProjectBuilder.java:1422)
> at org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> (Default
> MavenProjectBuilder.java:1379)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(DefaultMavenProjectBuilder.java:477)
> at org.apache.maven.project.DefaultMavenProjectBuilder.build
> (DefaultMave
> nProjectBuilder.java:200)
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java
> :467)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
> :364)
> ... 11 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
> Unrecognise
> d tag: 'properties' (position: START_TAG seen
> ...\r\n\t\t\t..
> . @17:16)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency
> (MavenX
> pp3Reader.java:1261)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel
> (MavenXpp3Re
> ader.java:2323)
> at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(
> MavenXpp3Reader.j
> ava:4422)
> at org.apache.maven.project.DefaultMavenProjectBuilder.readModel
> (Default
> MavenProjectBuilder.java:1418)
> ... 17 more
> [INFO]
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Jan 07 15:21:01 CET 2008
> [INFO] Final Memory: 1M/2M
> [INFO]
> 
>   E:\Projekte\TestSpringJpa>
>
>
> -
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem  neuen Yahoo! Mail.




-- 
Cheers, Stuart


A question about setting in the POM.xml

2008-01-07 Thread Thomas Chang
Hi all,
   
  Formerly I used maven1 and I can use the  in the project.xml as 
follow:
  ...
  
  commons-logging
  commons-logging
  1.0.4
  jar
  
  true
  
  
  ...
   
  Now I use maven2. And I try to do the same in the POM.xml. But as I run 
mvn-command I get error as follow. If I take out the , it will be 
OK. But I do need the . Somebody can tell me what's wrong?
   
  Regards
   
  Thomas
   
   
  
  E:\Projekte\TestSpringJpa>mvn -s "..\TestMavenConfig\settings.xml" clean
[INFO] Scanning for projects...
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).
  
Project ID: unknown
POM Location: E:\Projekte\TestSpringJpa\pom.xml
  Reason: Parse error reading POM. Reason: Unrecognised tag: 'properties' 
(positio
n: START_TAG seen ...\r\n\t\t\t... @17:16)  for project unkno
wn at E:\Projekte\TestSpringJpa\pom.xml
  
[INFO] 
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reaso
n: Unrecognised tag: 'properties' (position: START_TAG seen ...\r\n\t\t\t
... @17:16)  for project unknown at E:\Projekte\TestSpringJpa\pom.xm
l
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException: Parse error re
ading POM. Reason: Unrecognised tag: 'properties' (position: START_TAG seen ...<
/type>\r\n\t\t\t... @17:16)  for project unknown at E:\Projekte\Test
SpringJpa\pom.xml
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:1422)
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:1379)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:477)
at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
... 11 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognise
d tag: 'properties' (position: START_TAG seen ...\r\n\t\t\t..
. @17:16)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseDependency(MavenX
pp3Reader.java:1261)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Re
ader.java:2323)
at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.j
ava:4422)
at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:1418)
... 17 more
[INFO] 
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Jan 07 15:21:01 CET 2008
[INFO] Final Memory: 1M/2M
[INFO] 
  E:\Projekte\TestSpringJpa>

   
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit 
dem  neuen Yahoo! Mail. 

Re: Add source folder

2008-01-07 Thread Jan Torben Heuer
Kallin Nagelberg wrote:

> I was using this plugin for a bit to add an additional source directory,
> but intellij IDEA does not recognize the additional source. I ended up
> having to create a new artifact for the second set of sources.

eclipse (or the maven-eclipse-plugin) does not add the sourcefolder as well.
Or should it?

Jan


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



Re: reactor build order and mojos

2008-01-07 Thread Francois Fernandes
this seems to be a bug to me. The reactor build order should not only
respect inter-module dependencies, but also dependencies to plugins.
What about raising an issue?

http://jira.codehaus.org/browse/MNG


Francois

> I've found a workaround : declare the plugins modules FIRST in the parent
> POM .

> Nico.

> 2008/1/7, nicolas de loof <[EMAIL PROTECTED]>:
>>
>> Hello,
>>
>> My project is splitted into modules and one of them is a Mojo (for a code
>> generator)
>>
>> When I build my project, the reactor build order places the plugin as
>> LAST, but it is used from other modules. :
>>
>> [INFO] Reactor build order:
>> [INFO]   gcaf :: parent POM
>> [INFO]   gcaf :: DAOs sql2java   <-- sql2java Mojo is used here
>> [INFO]   gcaf :: plugin sql2java   <-- sql2java Mojo is built here
>> [INFO]
>> 
>>
>> Is this a bug in reactor ? (I'm using maven 2.0.8)
>> Is there a workaround ?
>>
>> Nico
>>




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



Re: Add source folder

2008-01-07 Thread Kallin Nagelberg
I was using this plugin for a bit to add an additional source directory, but
intellij IDEA does not recognize the additional source. I ended up having to
create a new artifact for the second set of sources.

On Jan 7, 2008 7:50 AM, Tom Huybrechts <[EMAIL PROTECTED]> wrote:

> http://mojo.codehaus.org/build-helper-maven-plugin/usage.html
>
>
> On Jan 7, 2008 1:48 PM, Jan Torben Heuer <[EMAIL PROTECTED]>
> wrote:
>
> > How can I add another sourcefolder? (/src/extended/java/)
> >
> > The setting should be recognized by maven-eclipse-plugin and the built
> > process.
> >
> > Jan
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Add source folder

2008-01-07 Thread Tom Huybrechts
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html


On Jan 7, 2008 1:48 PM, Jan Torben Heuer <[EMAIL PROTECTED]>
wrote:

> How can I add another sourcefolder? (/src/extended/java/)
>
> The setting should be recognized by maven-eclipse-plugin and the built
> process.
>
> Jan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Add source folder

2008-01-07 Thread Jan Torben Heuer
How can I add another sourcefolder? (/src/extended/java/)

The setting should be recognized by maven-eclipse-plugin and the built
process.

Jan


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



Re: Packaging SAR with in an EAR

2008-01-07 Thread amit kumar
Thanks a ton stuart. Its working now.

On Jan 7, 2008 5:20 PM, Stuart McCulloch <[EMAIL PROTECTED]>
wrote:

> On 07/01/2008, amit kumar <[EMAIL PROTECTED]> wrote:
> >
> > I had resolved this problem, by putting the snapshots repository into
> > pluginRepository tag rather than normal repository tag. Though can not
> > explain why it worked but it just did.
>
>
> plugins are only downloaded from plugin repositories listed under
> 
> so adding the snapshot repository to  would not enable
> downloading of
> the plugin snapshot (only any non-plugin snapshot artifacts that it
> depended
> on)
>
> also, installing the plugin manually (using install:install-file?) might
> not
> have updated
> the plugin metadata in your local repository, which would explain why it
> only worked
> once you added the snapshot plugin repository and Maven updated the
> metadata...
>
> HTH
>
> Regards,
> > Amit Kumar
> >
> > On Jan 7, 2008 3:29 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > I want to package a myproj.sar within a myproj.ear.
> > > The structure I want is
> > >
> > > MyProject.ear
> > > - MyProject.sar
> > >  -lib
> > >   -jars..
> > >
> > > I am trying to use jboss-packaging-maven-plugin from
> > > http://mojo.codehaus.org/jboss-packaging-maven-plugin/, but it did not
> > > work for me.
> > > below are the things that I tried already
> > > a) I had followed this link
> >
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+(Service+ARchive)+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
> > >
> > > <
> >
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+%28Service+ARchive%29+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
> > >
> > > but the maven threw an error where it wasn't able to download it from
> > > repo1.maven.org, i manually downloaded the
> jboss-packaging-maven-plugin
> > > from codehaus's snapshot repository and installed in my local
> repository
> > > after that I am seeing the below exception
> > >
> > > [ERROR] FATAL ERROR
> > > [INFO]
> > >
> 
> > > [INFO] The PluginDescriptor for the plugin Plugin [
> > > org.codehaus.mojo:jboss-packaging-maven-plugin] was not found.
> > > [INFO]
> > >
> 
> > > [INFO] Trace
> > > java.lang.IllegalStateException: The PluginDescriptor for the plugin
> > > Plugin [org.codehaus.mojo:jboss-packaging-maven-plugin ] was not
> found.
> > > at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
> > > DefaultPluginManager.java:317)
> > > at
> > > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
> > > DefaultPluginManager.java :207)
> > > at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> > > DefaultPluginManager.java:171)
> > > at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> > > DefaultLifecycleExecutor.java:1257)
> > > at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(
> > > DefaultLifecycleExecutor.java:1221)
> > > at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
> > > (DefaultLifecycleExecutor.java :987)
> > > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > > (DefaultLifecycleExecutor.java:458)
> > > at
> > >
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > > (DefaultLifecycleExecutor.java :311)
> > > at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > > DefaultLifecycleExecutor.java:278)
> > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (
> > > DefaultLifecycleExecutor.java :143)
> > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > :334)
> > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
> :125)
> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > at org.codehaus.classworlds.Launcher.launchEnhanced(
> > Launcher.java
> > > :315)
> > > at org.codehaus.classworlds.Launcher.launch (Launcher.java
> :255)
> > >  

RE: Retrieving and unpacking assemblies

2008-01-07 Thread Matthew Tordoff
Hi all,

I found the answer to this here...

http://maven.apache.org/plugins/maven-assembly-plugin/faq.html#classifie
r

You can refer to the assembly using the id of the assembly as the
dependency classifier.

Matt

-Original Message-
From: Matthew Tordoff [mailto:[EMAIL PROTECTED] 
Sent: 07 January 2008 11:22
To: Maven Users List
Subject: Retrieving and unpacking assemblies

Hi all,

I recently created a POM module which as part of it contains a ZIP file
created via the assembly plugin (since the current released version of
Maven does not allow packaging of type ZIP). I have another project
which needs to make use of this ZIP file, so I need that module to
import the original zip file and unpack it. To achieve this I have tried
to use the maven-dependency-plugin, however, I have only been successful
in being able to retrieve the POM file and not the ZIP file.

Does anyone have a proven method for importing and unpacking assemblies
attached to modules?

Any help would be greatly appreciated.

Regards,

Matt

P.S. I have no problems retrieving modules and unpacking them, only
assemblies created as a result of the modules packaging phase.



The content of this e-mail is confidential and may be privileged. It may
be read, copied and used only by the intended recipient and may not be
disclosed, copied or distributed. If you received this email in error,
please contact the sender immediately by return e-mail or by telephoning
+44 20 7260 2000, delete it and do not disclose its contents to any
person. You should take full responsibility for checking this email for
viruses. Markit reserves the right to monitor all e-mail communications
through its network.
Markit and its affiliated companies make no warranty as to the accuracy
or completeness of any information contained in this message and hereby
exclude any liability of any kind for the information contained herein.
Any opinions expressed in this message are those of the author and do
not necessarily reflect the opinions of Markit.
For full details about Markit, its offerings and legal terms and
conditions, please see Markit's website at http://www.markit.com
 .

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




The content of this e-mail is confidential and may be privileged. It may be 
read, copied and used only by the intended recipient and may not be disclosed, 
copied or distributed. If you received this email in error, please contact the 
sender immediately by return e-mail or by telephoning +44 20 7260 2000, delete 
it and do not disclose its contents to any person. You should take full 
responsibility for checking this email for viruses. Markit reserves the right 
to monitor all e-mail communications through its network.
Markit and its affiliated companies make no warranty as to the accuracy or 
completeness of any information contained in this message and hereby exclude 
any liability of any kind for the information contained herein. Any opinions 
expressed in this message are those of the author and do not necessarily 
reflect the opinions of Markit.
For full details about Markit, its offerings and legal terms and conditions, 
please see Markit's website at http://www.markit.com  .

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



Re: Packaging SAR with in an EAR

2008-01-07 Thread Stuart McCulloch
On 07/01/2008, amit kumar <[EMAIL PROTECTED]> wrote:
>
> I had resolved this problem, by putting the snapshots repository into
> pluginRepository tag rather than normal repository tag. Though can not
> explain why it worked but it just did.


plugins are only downloaded from plugin repositories listed under

so adding the snapshot repository to  would not enable
downloading of
the plugin snapshot (only any non-plugin snapshot artifacts that it depended
on)

also, installing the plugin manually (using install:install-file?) might not
have updated
the plugin metadata in your local repository, which would explain why it
only worked
once you added the snapshot plugin repository and Maven updated the
metadata...

HTH

Regards,
> Amit Kumar
>
> On Jan 7, 2008 3:29 PM, amit kumar <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I want to package a myproj.sar within a myproj.ear.
> > The structure I want is
> >
> > MyProject.ear
> > - MyProject.sar
> >  -lib
> >   -jars..
> >
> > I am trying to use jboss-packaging-maven-plugin from
> > http://mojo.codehaus.org/jboss-packaging-maven-plugin/, but it did not
> > work for me.
> > below are the things that I tried already
> > a) I had followed this link
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+(Service+ARchive)+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
> >
> > <
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+%28Service+ARchive%29+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
> >
> > but the maven threw an error where it wasn't able to download it from
> > repo1.maven.org, i manually downloaded the jboss-packaging-maven-plugin
> > from codehaus's snapshot repository and installed in my local repository
> > after that I am seeing the below exception
> >
> > [ERROR] FATAL ERROR
> > [INFO]
> > 
> > [INFO] The PluginDescriptor for the plugin Plugin [
> > org.codehaus.mojo:jboss-packaging-maven-plugin] was not found.
> > [INFO]
> > 
> > [INFO] Trace
> > java.lang.IllegalStateException: The PluginDescriptor for the plugin
> > Plugin [org.codehaus.mojo:jboss-packaging-maven-plugin ] was not found.
> > at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
> > DefaultPluginManager.java:317)
> > at
> > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
> > DefaultPluginManager.java :207)
> > at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> > DefaultPluginManager.java:171)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> > DefaultLifecycleExecutor.java:1257)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(
> > DefaultLifecycleExecutor.java:1221)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
> > (DefaultLifecycleExecutor.java :987)
> > at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> > (DefaultLifecycleExecutor.java:458)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > (DefaultLifecycleExecutor.java :311)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > DefaultLifecycleExecutor.java:278)
> > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > DefaultLifecycleExecutor.java :143)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :334)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> > DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java
> > :315)
> > at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
> > at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > Launcher.java:430)
> > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > [INFO]
> > 
> >
> > Could someone please help?
> >
> > Regards,
> > Amit
> >
> >
>



-- 
Cheers, Stuart


Re: Packaging SAR with in an EAR

2008-01-07 Thread amit kumar
I had resolved this problem, by putting the snapshots repository into
pluginRepository tag rather than normal repository tag. Though can not
explain why it worked but it just did.

Regards,
Amit Kumar

On Jan 7, 2008 3:29 PM, amit kumar <[EMAIL PROTECTED]> wrote:

> Hi,
> I want to package a myproj.sar within a myproj.ear.
> The structure I want is
>
> MyProject.ear
> - MyProject.sar
>  -lib
>   -jars..
>
> I am trying to use jboss-packaging-maven-plugin from
> http://mojo.codehaus.org/jboss-packaging-maven-plugin/, but it did not
> work for me.
> below are the things that I tried already
> a) I had followed this link 
> http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+(Service+ARchive)+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
>
> 
> but the maven threw an error where it wasn't able to download it from
> repo1.maven.org, i manually downloaded the jboss-packaging-maven-plugin
> from codehaus's snapshot repository and installed in my local repository
> after that I am seeing the below exception
>
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] The PluginDescriptor for the plugin Plugin [
> org.codehaus.mojo:jboss-packaging-maven-plugin] was not found.
> [INFO]
> 
> [INFO] Trace
> java.lang.IllegalStateException: The PluginDescriptor for the plugin
> Plugin [org.codehaus.mojo:jboss-packaging-maven-plugin ] was not found.
> at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
> DefaultPluginManager.java:317)
> at
> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
> DefaultPluginManager.java :207)
> at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
> DefaultPluginManager.java:171)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
> DefaultLifecycleExecutor.java:1257)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(
> DefaultLifecycleExecutor.java:1221)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
> (DefaultLifecycleExecutor.java :987)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:458)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java :311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java :143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> 
>
> Could someone please help?
>
> Regards,
> Amit
>
>


maven-sar-plugin?

2008-01-07 Thread amit kumar
Hi,
I am using maven-sar-plugin and after the build its creating a lib folder. I
want to put all the dependencies that I mentioned in the pom.xml to this
folder. How do I do it?

Regards,
Hemant malik


Retrieving and unpacking assemblies

2008-01-07 Thread Matthew Tordoff
Hi all,

I recently created a POM module which as part of it contains a ZIP file
created via the assembly plugin (since the current released version of
Maven does not allow packaging of type ZIP). I have another project
which needs to make use of this ZIP file, so I need that module to
import the original zip file and unpack it. To achieve this I have tried
to use the maven-dependency-plugin, however, I have only been successful
in being able to retrieve the POM file and not the ZIP file.

Does anyone have a proven method for importing and unpacking assemblies
attached to modules?

Any help would be greatly appreciated.

Regards,

Matt

P.S. I have no problems retrieving modules and unpacking them, only
assemblies created as a result of the modules packaging phase.



The content of this e-mail is confidential and may be privileged. It may be 
read, copied and used only by the intended recipient and may not be disclosed, 
copied or distributed. If you received this email in error, please contact the 
sender immediately by return e-mail or by telephoning +44 20 7260 2000, delete 
it and do not disclose its contents to any person. You should take full 
responsibility for checking this email for viruses. Markit reserves the right 
to monitor all e-mail communications through its network.
Markit and its affiliated companies make no warranty as to the accuracy or 
completeness of any information contained in this message and hereby exclude 
any liability of any kind for the information contained herein. Any opinions 
expressed in this message are those of the author and do not necessarily 
reflect the opinions of Markit.
For full details about Markit, its offerings and legal terms and conditions, 
please see Markit's website at http://www.markit.com  .

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



答复: how to use maven project properties in other configuration files?

2008-01-07 Thread Fred Zhang
Kalle, Thanks a lot!


-邮件原件-
发件人: Kalle Korhonen [mailto:[EMAIL PROTECTED]
发送时间: 2008年1月7日 11:47
收件人: Maven Users List
主题: Re: how to use maven project properties in other configuration files?

On 1/6/08, Fred Zhang <[EMAIL PROTECTED]> wrote:
>
> My project is a multi-module project which contains an ear module and a
> war module. I need to access the property of the ear module (for the ear
> name and version) from the war module or from the project root pom.
> Is that possible to access properties of a module from another module or
> from the project root pom in maven?
>

No, but the properties declared in the parent pom (
http://maven.apache.org/pom.html#Properties) are available in the child
modules, so you'd need to organize your project so that the parent is
driving setting the properties and both ear and war are using them.

Kalle


-Original message---
> From: Kalle Korhonen [mailto:[EMAIL PROTECTED]
> Sent: Jan.04.2008 16:31
> To: Maven Users List
> Subject: Re: how to use maven project properties in other configuration
> files?
>
> Make your configuration file a filtered resource:
>
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
>
> Kalle
>
> On 1/3/08, Fred Zhang <[EMAIL PROTECTED]> wrote:
> >
> > Hi there,
> > Sometimes I need to use maven project properties, e.g. ${project.version
> }
> > etc in some configuration files (not pom.xml or settings.xml). For
> > example, when I build an ear file with the name "EAR-${project.version
> }.ear",
> > I need to use this ear name in some configuration file for JNDI-lookup.
> >
> > But how can I use the maven property ${project.version} in configuration
> > files? Is there any plug-in that can make the job done?
> >
> > Thanks in advance!
> >
> > Fred Zhang
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Packaging SAR with in an EAR

2008-01-07 Thread amit kumar
Hi,
I want to package a myproj.sar within a myproj.ear.
The structure I want is

MyProject.ear
- MyProject.sar
 -lib
  -jars..

I am trying to use jboss-packaging-maven-plugin from
http://mojo.codehaus.org/jboss-packaging-maven-plugin/, but it did not work
for me.
below are the things that I tried already
a) I had followed this link
http://docs.codehaus.org/display/MAVENUSER/Creating+JBoss+SAR+(Service+ARchive)+Artifacts#CreatingJBossSAR%28ServiceARchive%29Artifacts-SARinaMultiprojectBuild%2CIncludedinanEAR
but the maven threw an error where it wasn't able to download it from
repo1.maven.org, i manually downloaded the jboss-packaging-maven-plugin from
codehaus's snapshot repository and installed in my local repository after
that I am seeing the below exception

[ERROR] FATAL ERROR
[INFO]

[INFO] The PluginDescriptor for the plugin Plugin [
org.codehaus.mojo:jboss-packaging-maven-plugin] was not found.
[INFO]

[INFO] Trace
java.lang.IllegalStateException: The PluginDescriptor for the plugin Plugin
[org.codehaus.mojo:jboss-packaging-maven-plugin] was not found.
at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
DefaultPluginManager.java:317)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(
DefaultPluginManager.java:207)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(
DefaultPluginManager.java:171)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1257)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(
DefaultLifecycleExecutor.java:1221)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
(DefaultLifecycleExecutor.java:987)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]


Could someone please help?

Regards,
Amit


Central Repository used in Maven Ant Task

2008-01-07 Thread Thomas Tardy
Hello,

I'm trying to write an ant script which copies some libraries into a
specific location. The libraries are being resolved by loading a maven pom
file.














This task is working well if all the dependency jars are in my local maven
repository. If they are not, the script tries to download them from the
central repository. I have configured a custom miror in my settings.xml but
it looks like that it's not being used. But the custom mirror is being used
when I use the pom file with standard maven.

I have already tried to define the repository in the ant task, but again the
central repository is being used.

















Any idea what i'm doing wrong? Thanks for your help!

Kind Regards,
Thomas Tardy


Re: reactor build order and mojos

2008-01-07 Thread nicolas de loof
I've found a workaround : declare the plugins modules FIRST in the parent
POM .

Nico.

2008/1/7, nicolas de loof <[EMAIL PROTECTED]>:
>
> Hello,
>
> My project is splitted into modules and one of them is a Mojo (for a code
> generator)
>
> When I build my project, the reactor build order places the plugin as
> LAST, but it is used from other modules. :
>
> [INFO] Reactor build order:
> [INFO]   gcaf :: parent POM
> [INFO]   gcaf :: DAOs sql2java   <-- sql2java Mojo is used here
> [INFO]   gcaf :: plugin sql2java   <-- sql2java Mojo is built here
> [INFO]
> 
>
> Is this a bug in reactor ? (I'm using maven 2.0.8)
> Is there a workaround ?
>
> Nico
>


reactor build order and mojos

2008-01-07 Thread nicolas de loof
Hello,

My project is splitted into modules and one of them is a Mojo (for a code
generator)

When I build my project, the reactor build order places the plugin as LAST,
but it is used from other modules. :

[INFO] Reactor build order:
[INFO]   gcaf :: parent POM
[INFO]   gcaf :: DAOs sql2java   <-- sql2java Mojo is used here
[INFO]   gcaf :: plugin sql2java   <-- sql2java Mojo is built here
[INFO]


Is this a bug in reactor ? (I'm using maven 2.0.8)
Is there a workaround ?

Nico