Re: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan Arend Jansen

Attached a more datailed log

Jan Arend Jansen wrote:
> 
> Still no effect ;-(
> 
> mvn -U -Dsurefire.useSystemClassLoader=false install
> 
> gave:
> 
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from central
> 
> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
> updates from central
> 
> [INFO] [resources:resources]
> 
> [INFO] Using default encoding to copy filtered resources.
> 
> [INFO] [compiler:compile]
> 
> [INFO] Nothing to compile - all classes are up to date
> 
> [INFO] [resources:testResources]
> 
> [INFO] Using default encoding to copy filtered resources.
> 
> [INFO] [compiler:testCompile]
> 
> [INFO] Nothing to compile - all classes are up to date
> 
> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
> checking for updates from central.SNAPSHOT
> 
> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
> checking for updates from apache.snapshots
> 
> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
> checking for updates from inhouse_snaphot
> 
> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
> checking for updates from central.SNAPSHOT
> 
> [WARNING] POM for
> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
> invalid. It will be ignored for artifact resolution. Reason: Failed to
> validate POM
> 
> -
> 
> this realm =
> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
> 
> urls[0] =
> file:/D:/Users/jansen/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-surefire-plugin-2.4-SNAPSHOT.jar
> 
> urls[1] =
> file:/D:/Users/jansen/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-booter-2.4-SNAPSHOT.jar
> 
> Number of imports: 0
> 
> 
> 
> 
> this realm = plexus.core.maven
> 
> urls[0] = file:/D:/Java/maven-2.0.5/bin/../lib/commons-cli-1.0.jar
> 
> urls[1] =
> file:/D:/Java/maven-2.0.5/bin/../lib/doxia-sink-api-1.0-alpha-7.jar
> 
> urls[2] = file:/D:/Java/maven-2.0.5/bin/../lib/jsch-0.1.27.jar
> 
> urls[3] = file:/D:/Java/maven-2.0.5/bin/../lib/jtidy-4aug2000r7-dev.jar
> 
> urls[4] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-artifact-2.0.5.jar
> 
> urls[5] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-artifact-manager-2.0.5.jar
> 
> urls[6] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-core-2.0.5-javadoc.jar
> 
> urls[7] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-core-2.0.5.jar
> 
> urls[8] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-error-diagnostics-2.0.5.jar
> 
> urls[9] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-model-2.0.5.jar
> 
> urls[10] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-monitor-2.0.5.jar
> 
> urls[11] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-api-2.0.5.jar
> 
> urls[12] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-descriptor-2.0.5.jar
> 
> urls[13] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-parameter-documenter-2.0.5.jar
> 
> urls[14] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-registry-2.0.5.jar
> 
> urls[15] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-profile-2.0.5.jar
> 
> urls[16] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-project-2.0.5.jar
> 
> urls[17] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-reporting-api-2.0.5.jar
> 
> urls[18] =
> file:/D:/Java/maven-2.0.5/bin/../lib/maven-repository-metadata-2.0.5.jar
> 
> urls[19] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-settings-2.0.5.jar
> 
> urls[20] =
> file:/D:/Java/maven-2.0.5/bin/../lib/plexus-interactivity-api-1.0-alpha-4.jar
> 
> urls[21] = file:/D:/Java/maven-2.0.5/bin/../lib/wagon-file-1.0-beta-2.jar
> 
> urls[22] =
> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-http-lightweight-1.0-beta-2.jar
> 
> urls[23] =
> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-http-shared-1.0-beta-2.jar
> 
> urls[24] =
> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-provider-api-1.0-beta-2.jar
> 
> urls[25] = file:/D:/Java/maven-2.0.5/bin/../lib/wagon-ssh-1.0-beta-2.jar
> 
> urls[26] =
> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-ssh-common-1.0-beta-2.jar
> 
> urls[27] =
> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-ssh-external-1.0-beta-2.jar
> 
> urls[28] = file:/D:/Java/maven-2.0.5/bin/../lib/xml-apis-1.0.b2.jar
> 
> Number of imports: 0
> 
> 
> 
> 
> this realm = plexus.core
> 
> urls[0] =
> file:/D:/Java/maven-2.0.5/bin/../core/plexus-container-default-1.0-alpha-9.jar
> 
> urls[1] = file:/D:/Java/maven-2.0.5/bin/../core/plexu

Re: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan Arend Jansen
ion, run Maven with the -e switch

[INFO]


[INFO] Total time: 8 seconds

[INFO] Finished at: Fri Jun 01 11:49:27 CEST 2007

[INFO] Final Memory: 8M/15M

[INFO]



Brett Porter wrote:
> 
> My apolgies, can you try -Dsurefire.useSystemClassLoader=false.
> 
> Thanks,
> Brett
> 
> On 01/06/07, Jan Arend Jansen <[EMAIL PROTECTED]> wrote:
>>
>> Brett, the server seems to be up again
>>
>> I did a mvn -U install. The build 7 version was downloaded, but I got the
>> same exception.
>> Then I did mvn -DuseSystemClassLoader=false, but the result was the same
>> (see below)
>> I run JDK 1.6.0_1 and maven 2.0.5
>>
>> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
>> checking for updates from central.SNAPSHOT
>>
>> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
>> checking for updates from apache.snapshots
>>
>> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
>> checking for updates from inhouse_snaphot
>>
>> [INFO] snapshot org.apache.maven.surefire:surefire-booter:2.4-SNAPSHOT:
>> checking for updates from central.SNAPSHOT
>>
>> [WARNING] POM for
>> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
>> invalid. It will be ignored for artifact resolution. Reason: Failed to
>> validate POM
>>
>> -
>>
>> this realm =
>> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
>>
>> urls[0] =
>> file:/D:/Users/jansen/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-surefire-plugin-2.4-SNAPSHOT.jar
>>
>> urls[1] =
>> file:/D:/Users/jansen/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-booter-2.4-SNAPSHOT.jar
>>
>> Number of imports: 0
>>
>>
>>
>>
>> this realm = plexus.core.maven
>>
>> urls[0] = file:/D:/Java/maven-2.0.5/bin/../lib/commons-cli-1.0.jar
>>
>> urls[1] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/doxia-sink-api-1.0-alpha-7.jar
>>
>> urls[2] = file:/D:/Java/maven-2.0.5/bin/../lib/jsch-0.1.27.jar
>>
>> urls[3] = file:/D:/Java/maven-2.0.5/bin/../lib/jtidy-4aug2000r7-dev.jar
>>
>> urls[4] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-artifact-2.0.5.jar
>>
>> urls[5] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-artifact-manager-2.0.5.jar
>>
>> urls[6] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-core-2.0.5-javadoc.jar
>>
>> urls[7] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-core-2.0.5.jar
>>
>> urls[8] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-error-diagnostics-2.0.5.jar
>>
>> urls[9] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-model-2.0.5.jar
>>
>> urls[10] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-monitor-2.0.5.jar
>>
>> urls[11] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-api-2.0.5.jar
>>
>> urls[12] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-descriptor-2.0.5.jar
>>
>> urls[13] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-parameter-documenter-2.0.5.jar
>>
>> urls[14] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-plugin-registry-2.0.5.jar
>>
>> urls[15] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-profile-2.0.5.jar
>>
>> urls[16] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-project-2.0.5.jar
>>
>> urls[17] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-reporting-api-2.0.5.jar
>>
>> urls[18] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/maven-repository-metadata-2.0.5.jar
>>
>> urls[19] = file:/D:/Java/maven-2.0.5/bin/../lib/maven-settings-2.0.5.jar
>>
>> urls[20] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/plexus-interactivity-api-1.0-alpha-4.jar
>>
>> urls[21] = file:/D:/Java/maven-2.0.5/bin/../lib/wagon-file-1.0-beta-2.jar
>>
>> urls[22] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-http-lightweight-1.0-beta-2.jar
>>
>> urls[23] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-http-shared-1.0-beta-2.jar
>>
>> urls[24] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-provider-api-1.0-beta-2.jar
>>
>> urls[25] = file:/D:/Java/maven-2.0.5/bin/../lib/wagon-ssh-1.0-beta-2.jar
>>
>> urls[26] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-ssh-common-1.0-beta-2.jar
>>
>> urls[27] =
>> file:/D:/Java/maven-2.0.5/bin/../lib/wagon-ssh-external-1.0-

Re: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan Arend Jansen
build 7).
> 
> Can you try with the -U flag to get the update and see if that helps?
> 
> If not, can you try with -DuseSystemClassLoader=false?
> 
> Thanks,
> Brett
> 
> On 01/06/07, Jan Arend Jansen <[EMAIL PROTECTED]> wrote:
>>
>> Same here! Please fix this. It is blocking for me. Help is very much
>> appreciated! I need TestNG 5.5 so I need 2.4-SNAPSHOT...
>>
>> Jan-Christopher Bals-2 wrote:
>> >
>> > Hi!
>> >
>> > I have got the same problem.
>> >
>> > Can anyone fix the pom?
>> >
>> > [WARNING] POM for
>> > 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
>> > invalid. It will be ignored for artifact resolution. Reason: Failed to
>> > validate POM
>> >
>> > Jan
>> >
>> >
>> > 2007/5/31, mhargus <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> I'm getting an error during during the test compile phase after
>> running
>> >> 'mvn
>> >> install'.  I'm using the 2.4-SNAPSHOT version of Surefire, and it just
>> >> started blowing up on me today.
>> >>
>> >>
>> >> Here a snippet of the error:
>> >>
>> >>
>> >> [WARNING] POM for
>> >> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime'
>> is
>> >> invalid. It will be ignored for artifact resolution. Reason: Failed to
>> >> validate POM
>> >> -
>> >> this realm =
>> >> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
>> >> urls[0] =
>> >>
>> >>
>> file:/Users/matt/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-
>> >> surefire-plugin-2.4-SNAPSHOT.jar
>> >> urls[1] =
>> >>
>> >>
>> file:/Users/matt/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-
>> >> booter-2.4-SNAPSHOT.jar
>> >> urls[2] =
>> >>
>> >>
>> file:/Users/matt/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
>> >> utils-1.1.jar
>> >> Number of imports: 4
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >>
>> >>
>> >> this realm = plexus.core
>> >> urls[0] = file:/usr/local/maven/lib/maven-core-2.0.6-uber.jar
>> >> Number of imports: 4
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> -
>> >> [INFO]
>> >>
>> 
>> >> [ERROR] BUILD ERROR
>> >> [INFO]
>> >>
>> 
>> >> [INFO] Internal error in the plugin manager executing goal
>> >> 'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test':
>> >> Unable
>> >> to find the mojo
>> >> 'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test' in
>> the
>> >> plugin 'org.apache.maven.plugins:maven-surefire-plugin'
>> >> org/apache/maven/surefire/util/NestedCheckedException
>> >>
>> >> Anyone else seeing this?
>> >>
>> >> Matt
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10898921
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> :(:,(:,(:,(:,(:,(:,(:,(:,(
>> --
>> View this message in context:
>> http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10908687
>> Sent from the Maven - Users mailing list archive at Nabble.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10909412
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: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan Arend Jansen

Is http://people.apache.org/repo down? 

I was trying to get your update Brett, but I cannot connect anymore. My
Internet connectivity seems fine for other sites



Brett Porter wrote:
> 
> I've just deployed a new snapshot of the surefire-booter (you should
> get build 7).
> 
> Can you try with the -U flag to get the update and see if that helps?
> 
> If not, can you try with -DuseSystemClassLoader=false?
> 
> Thanks,
> Brett
> 
> On 01/06/07, Jan Arend Jansen <[EMAIL PROTECTED]> wrote:
>>
>> Same here! Please fix this. It is blocking for me. Help is very much
>> appreciated! I need TestNG 5.5 so I need 2.4-SNAPSHOT...
>>
>> Jan-Christopher Bals-2 wrote:
>> >
>> > Hi!
>> >
>> > I have got the same problem.
>> >
>> > Can anyone fix the pom?
>> >
>> > [WARNING] POM for
>> > 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
>> > invalid. It will be ignored for artifact resolution. Reason: Failed to
>> > validate POM
>> >
>> > Jan
>> >
>> >
>> > 2007/5/31, mhargus <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> I'm getting an error during during the test compile phase after
>> running
>> >> 'mvn
>> >> install'.  I'm using the 2.4-SNAPSHOT version of Surefire, and it just
>> >> started blowing up on me today.
>> >>
>> >>
>> >> Here a snippet of the error:
>> >>
>> >>
>> >> [WARNING] POM for
>> >> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime'
>> is
>> >> invalid. It will be ignored for artifact resolution. Reason: Failed to
>> >> validate POM
>> >> -
>> >> this realm =
>> >> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
>> >> urls[0] =
>> >>
>> >>
>> file:/Users/matt/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-
>> >> surefire-plugin-2.4-SNAPSHOT.jar
>> >> urls[1] =
>> >>
>> >>
>> file:/Users/matt/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-
>> >> booter-2.4-SNAPSHOT.jar
>> >> urls[2] =
>> >>
>> >>
>> file:/Users/matt/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
>> >> utils-1.1.jar
>> >> Number of imports: 4
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >>
>> >>
>> >> this realm = plexus.core
>> >> urls[0] = file:/usr/local/maven/lib/maven-core-2.0.6-uber.jar
>> >> Number of imports: 4
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> import: [EMAIL PROTECTED]
>> >> -
>> >> [INFO]
>> >>
>> 
>> >> [ERROR] BUILD ERROR
>> >> [INFO]
>> >>
>> 
>> >> [INFO] Internal error in the plugin manager executing goal
>> >> 'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test':
>> >> Unable
>> >> to find the mojo
>> >> 'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test' in
>> the
>> >> plugin 'org.apache.maven.plugins:maven-surefire-plugin'
>> >> org/apache/maven/surefire/util/NestedCheckedException
>> >>
>> >> Anyone else seeing this?
>> >>
>> >> Matt
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10898921
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> :(:,(:,(:,(:,(:,(:,(:,(:,(
>> --
>> View this message in context:
>> http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10908687
>> Sent from the Maven - Users mailing list archive at Nabble.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10909085
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: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan Arend Jansen

Same here! Please fix this. It is blocking for me. Help is very much
appreciated! I need TestNG 5.5 so I need 2.4-SNAPSHOT...

Jan-Christopher Bals-2 wrote:
> 
> Hi!
> 
> I have got the same problem.
> 
> Can anyone fix the pom?
> 
> [WARNING] POM for
> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
> invalid. It will be ignored for artifact resolution. Reason: Failed to
> validate POM
> 
> Jan
> 
> 
> 2007/5/31, mhargus <[EMAIL PROTECTED]>:
>>
>>
>> I'm getting an error during during the test compile phase after running
>> 'mvn
>> install'.  I'm using the 2.4-SNAPSHOT version of Surefire, and it just
>> started blowing up on me today.
>>
>>
>> Here a snippet of the error:
>>
>>
>> [WARNING] POM for
>> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
>> invalid. It will be ignored for artifact resolution. Reason: Failed to
>> validate POM
>> -
>> this realm =
>> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
>> urls[0] =
>>
>> file:/Users/matt/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-
>> surefire-plugin-2.4-SNAPSHOT.jar
>> urls[1] =
>>
>> file:/Users/matt/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-
>> booter-2.4-SNAPSHOT.jar
>> urls[2] =
>>
>> file:/Users/matt/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
>> utils-1.1.jar
>> Number of imports: 4
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>>
>>
>> this realm = plexus.core
>> urls[0] = file:/usr/local/maven/lib/maven-core-2.0.6-uber.jar
>> Number of imports: 4
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> -
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test':
>> Unable
>> to find the mojo
>> 'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test' in the
>> plugin 'org.apache.maven.plugins:maven-surefire-plugin'
>> org/apache/maven/surefire/util/NestedCheckedException
>>
>> Anyone else seeing this?
>>
>> Matt
>> --
>> View this message in context:
>> http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10898921
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
:(:,(:,(:,(:,(:,(:,(:,(:,(
-- 
View this message in context: 
http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10908687
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: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan-Christopher Bals

-- Forwarded message --
From: Jan-Christopher Bals <[EMAIL PROTECTED]>
Date: 01.06.2007 10:03
Subject: Re: Surefire 2.4-SNAPSHOT errors
To: Maven Users List 

Hi!

I have got the same problem.

Can anyone fix the pom?

[WARNING] POM for
'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM

Jan


2007/5/31, mhargus <[EMAIL PROTECTED]>:



I'm getting an error during during the test compile phase after running
'mvn
install'.  I'm using the 2.4-SNAPSHOT version of Surefire, and it just
started blowing up on me today.


Here a snippet of the error:


[WARNING] POM for
'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM
-
this realm =
app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
urls[0] =

file:/Users/matt/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-
surefire-plugin-2.4-SNAPSHOT.jar
urls[1] =

file:/Users/matt/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-
booter-2.4-SNAPSHOT.jar
urls[2] =
file:/Users/matt/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
utils-1.1.jar
Number of imports: 4
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]


this realm = plexus.core
urls[0] = file:/usr/local/maven/lib/maven-core-2.0.6-uber.jar
Number of imports: 4
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test ':
Unable
to find the mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test' in the
plugin 'org.apache.maven.plugins:maven-surefire-plugin'
org/apache/maven/surefire/util/NestedCheckedException

Anyone else seeing this?

Matt
--
View this message in context: 
http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10898921

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: Surefire 2.4-SNAPSHOT errors

2007-06-01 Thread Jan-Christopher Bals

Hi!

I have got the same problem.

Can anyone fix the pom?

[WARNING] POM for
'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM

Jan


2007/5/31, mhargus <[EMAIL PROTECTED]>:



I'm getting an error during during the test compile phase after running
'mvn
install'.  I'm using the 2.4-SNAPSHOT version of Surefire, and it just
started blowing up on me today.


Here a snippet of the error:


[WARNING] POM for
'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Failed to
validate POM
-
this realm =
app0.child-container[org.apache.maven.plugins:maven-surefire-plugin]
urls[0] =

file:/Users/matt/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.4-SNAPSHOT/maven-
surefire-plugin-2.4-SNAPSHOT.jar
urls[1] =

file:/Users/matt/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4-SNAPSHOT/surefire-
booter-2.4-SNAPSHOT.jar
urls[2] =

file:/Users/matt/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-
utils-1.1.jar
Number of imports: 4
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]


this realm = plexus.core
urls[0] = file:/usr/local/maven/lib/maven-core-2.0.6-uber.jar
Number of imports: 4
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test': Unable
to find the mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.4-SNAPSHOT:test' in the
plugin 'org.apache.maven.plugins:maven-surefire-plugin'
org/apache/maven/surefire/util/NestedCheckedException

Anyone else seeing this?

Matt
--
View this message in context:
http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10898921
Sent from the Maven - Users mailing list archive at Nabble.com.


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




save mvn parameters in pom

2007-05-31 Thread Jan Torben Heuer
Hi,

I have a project with submodules. One of this modules is a tomcat servlet
and I'd like to save the -Dwtpversion=1.5 parameter in the pom, if
possible, so I can run "mvn eclipse:eclipse" in the root module and have
only in my -http module the wtp extension enabled.

Is that possible?

Jan


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



Re: an oveview of all the installed plugins and goals

2007-05-16 Thread Gert-Jan Braas

It looks like I not fully aware of all the ins and outs.

I will remove all references from my repository, and try again.

thanx,

Gert-Jan


=
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379


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



Re: an oveview of all the installed plugins and goals

2007-05-16 Thread Gert-Jan Braas
OK.
So that is a way of obtaining plugin info.

Now I'm using the axis2-aar maven plugin.
As far as I can tell, it is installed.
==
[EMAIL PROTECTED]:~/.m2/repository$ find . | grep aar
./org/apache/maven/plugins/maven-aar-plugin
./org/apache/maven/plugins/maven-aar-plugin/maven-metadata-central.xml
./org/apache/maven/plugins/maven-axis2-aar-plugin
./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1
./org/apache/maven/plugins/maven-axis2-aar-plugin/1.1.1/axis2-aar-maven-plugin-1.1.1.jar
./org/apache/maven/plugins/maven-axis2-aar-plugin/maven-metadata-central.xml

==

But a list of goals can not be obtained:
==
[EMAIL PROTECTED]:~$ mvn help:describe -Dplugin=aar -Dfull=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [help:describe] (aggregator-style)
[INFO]

[INFO] [help:describe]
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-axis2-aar-plugin' does
not exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed May 16 14:23:10 CEST 2007
[INFO] Final Memory: 3M/5M
[INFO]

[EMAIL PROTECTED]:~$ mvn help:describe -Dplugin=axis2-aar -Dfull=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [help:describe] (aggregator-style)
[INFO]

[INFO] [help:describe]
[INFO] Searching repository for plugin with prefix: 'axis2-aar'.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Plugin could not be found. If you believe it is correct, check your
pluginGroups setting, and run with -U to update the remote configuration
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Wed May 16 14:23:22 CEST 2007
[INFO] Final Memory: 2M/5M
[INFO]

==
The plgin is installed by hand (copied to the plugin directory)
and I have altered maven-metadata-central.xml with

 
  Maven axis2-aar Plugin
  aar
  maven-axis2-aar-plugin


What am I missing?

Regards,



> On 5/15/07, Gert-Jan Braas <[EMAIL PROTECTED]> wrote:
>
>> is there a maven command which lists all the installed plugins and/or
gorals?
>
> The closest thing I know of is the help plugin.  For example, 'mvn
help:describe -Dplugin=site' will give information about the site
plugin.  Right now it doesn't list the goals, but that would be a good
enhancement request.
>
> "Installed" is somewhat irrelevant since if you invoke a plugin that's
not in your local repository, Maven will retrieve it.
>
> The best documentation for the plugins is online, starting here:
>
>http://maven.apache.org/plugins/
>
> --
> Wendy
>
> - To
unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


=
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379





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



Re: Problem with running mvn site command

2007-05-15 Thread Gert-Jan Braas
try setting the maximu heap size.

-Xmxset maximum Java heap size


I think you can do that in the mvn file (linux: which mvn)


> I got the following error while executing the mvn site command
>
> ...
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
>
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError
>
>
>
> Failure executing javac, but could not parse the error:
>
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError
>
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 1 minute 9 seconds
> [INFO] Finished at: Tue May 15 16:11:56 IST 2007
> [INFO] Final Memory: 31M/63M
> [INFO]
> 
>
> Can anyone help me in resolving it?
>
> Thanks,
> Suchitra
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


=
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379


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



an oveview of all the installed plugins and goals

2007-05-15 Thread Gert-Jan Braas

Hi,

is there a maven command which lists all the installed plugins and/or gorals?

Regards,
Gert-Jan Braas


=
Het kan zijn dat ik "Office" documenten verstuur.
Als dit in Open-Document-Formaat is, haal dan
hier: http://nl.openoffice.org/ een kopie op
van OpenOffice
-
Steckelfisch
Hoornsedijk 1010
9728NG Groningen
0031(0)651521379


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



packaging jar|pom question

2007-05-08 Thread Jan Torben Heuer
I have a product structure like:

myapp (pom)
myapp-core (jar)
myapp-dao (???)
myapp-dao-file (jar)
myapp-dao-sql (jar)

I wanted to pack some Interface in myapp-dao, but I guess I has to be a 'pom' 
rather than a 'jar' to allow subpackages. So, what is the way to go? Do I 
have to create a ...-common package, or pack the Interface in the core?

Jan


pgp55dXrvqx8N.pgp
Description: PGP signature


Eclipse maven project with WTP enabled

2007-05-07 Thread Jan Torben Heuer
Hi, I followed: http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html 
to mark my project as a WTP project:

mvn -Dwtpversion=1.5 eclipse:eclipse

but nothing changed (I cannot deploy my project, nor select a "server"). I did 
it after creating submodules etc. should I have done it before? Or doesn't it 
matter? 

I'm a complete maven newbie, so every held is appreciated.

Jan

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



insufficient and/or wrong information when browsing archiva repository

2007-04-19 Thread Jan Delannoy

Hi all,

I have a Maven project that I'm trying to deploy into Archiva, and all
seems to work fine, except that when I browse to the artifact in my
Archiva repository I only get the most basic of information: groupId,
artifactId, version and packaging.  There's no other information (POM
dependency snippet, other details, SCM, dependency tab, ...).  Also,
the value for packaging is wrong, it says 'pom' instead of the 'jar'
that is in my pom file.  When I checked the archiva log file, I found
this error:

98083709 [pool-1-thread-1] ERROR
org.apache.maven.archiva.indexer.record.RepositoryIndexRecordFactory:standard
- Error reading POM file
[/var/local/repository/snapshot/com/mediamine/common/common/3.2-SNAPSHOT/common-3.2-20070419.140014-8.pom]
for com.mediamine.common:common:jar:3.2-SNAPSHOT:runtime, not
populating in index: Cannot find parent: com.mediamine:mediamine for
project: com.mediamine.common:common:jar:3.2-SNAPSHOT

Strangely enough this parent pom is nicely deployed in my repository,
and both Maven and Continuum don't seem to have any problems
retrieving it.  Is it possible that Archiva has problems indexing
artifacts that use POM inheritance?  Or does Archiva somehow need more
information about this parent pom?  Or is this error message unrelated
to my problem?  Any ideas/suggestions?

Many thanks!
Jan


Maven 2.0.6 & test-jar

2007-04-11 Thread Jan Hoskens
Hello All,

I just tried to build our apps with maven 2.0.6 and stumbled on a
problem described here:

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

In short:
pom2 -depends on-> pom1
pom3 -depends on-> pom2
pom4 -depends on-> pom3 and in test scope -depends on-> pom2-test-jar

results in pom1 gets stuck in test scope instead of compile scope, app
with pom4 won't build anymore.

I now fixed this by adding the pom2 dependency in pom4.

This issue should be fixed since 2.0.3, is it possible this bug has
sneaked back in?

Kind Regards,
Jan


  DISCLAIMER 
 http://www.schaubroeck.be/maildisclaimer.htm

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



using properties in settings.xml

2007-04-03 Thread Jan Delannoy

Hi all,

I'm having some problems using properties in the settings.xml.  I'm
trying to use properties in the username and password elements of a
server declaration, and then getting the values for these properties
from a profile in my local settings.xml.  So this would be (part of)
my Maven settings.xml:


 someserver
 ${someserver.username}
 ${someserver.password}

...

 property-overrides


and in my local settings.xml I have:


 
   
 property-overrides
 
   myuser
   mypassword
 
   
 


But when I run mvn help:effective-settings I get:


 C:\Documents and
Settings\jan\.m2\repository
 
   
 ${someserver.username}
 ${someserver.password}
 someserver
   
 
 
   
 
   myuser
   mypassword
 
 property-overrides
   
 
 
   property-overrides
 


Why is Maven not picking up my local settings?  By the way, I took
this kind of setup from Mergere's 'Better Builds with Maven' book...

Any help would be greatly appreciated!

Many thanks,
Jan

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



WebDAV uploading in Tomcat

2007-04-02 Thread Jan Delannoy
alDoFilter(ApplicationFilterChain.java:215)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)

Does anyone know what might be the problem here?  I wonder if this is
an Archiva problem or a Tomcat problem...  Has anyone been able to
upload artifacts over WebDAV to an Archiva deployed in Tomcat?

Any help would be greatly appreciated...
Many thanks,
Jan


ear-plugin : modifying manifest.mf in ejb projects

2007-03-15 Thread Jan Kroken


Hi,

We are using the maven ear plugin to build ear files containing several ejb 
projects.
Each of these projects have a complex set of dependencies, not neccessarily 
with
the same version. We specify the libraries to include in the ear in the 
pom.xml of the

ear project, thus overriding any versions required by the ejb modules.

Unfortunately, the ear plugin doesn't update the META-INF/MANIFEST.MF of the
included ejb projects. The EJB project will only have access to libraries 
properly
refered to from the manifest file, leaving the EJB projects with missing 
dependencies

runtime.

Is there an easy way to get this to work, or will I have to write a plugin 
to do this?


_
MSN Messenger overalt med WebMessenger 
http://webmessenger.msn.com/?mkt=nb-no - Den korteste veien mellom deg og 
dine venner



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



RE: M2 settings.xml

2007-03-02 Thread Janecek Jan
Hi,

Look into the 'conf' directory in maven distribution. 

Jan

-Original Message-
From: sarancse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 10:25 AM
To: users@maven.apache.org
Subject: M2 settings.xml


Hi
I am looking for a sample settings.xml file. Could anyone upload it to
me? 
It will be very useful for Maven2 beginners.
--
View this message in context:
http://www.nabble.com/M2-settings.xml-tf3325842s177.html#a9246292
Sent from the Maven - Users mailing list archive at Nabble.com.


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



 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



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



RE: Making resources defined in a superpom available to underlying poms.

2007-02-28 Thread Jan-Olav Eide
I was hoping I could define the resource only once. If I understand you 
correctly, the plugin configuration below needs to be present in all poms? 

-Original Message-
From: Rémy Sanlaville [mailto:[EMAIL PROTECTED] 
Sent: 28. februar 2007 15:04
To: Maven Users List
Subject: Re: Making resources defined in a superpom available to underlying 
poms.

Hi,

For checkstyle, you can follow this [1]

[1] http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html
(cf. Use a custom developd Checkstyle Check modules)

or

  
org.apache.maven.plugins
maven-checkstyle-plugin
2.1

  ${project.parent.basedir
}/src/main/config/checkstyle.xml

  


The second solution is more generic and not specific for checkstyle.

HTH,

Rémy

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



Making resources defined in a superpom available to underlying poms.

2007-02-28 Thread Jan-Olav Eide
I have a pom with packaging jar that contains a number of modules
(possibly nested). I have some resources that I want to be available to
all underlying poms . In my case it is a reference to a checkstyle
configuration file, but it could be anything (such as the stylesheet
used for javadoc generation). I have defined a property with the
_absolute_ path to this file in the top level pom, but is that the best
way to do it? I'd rather use a relative path (relative to the top
level), is that possible? 

--
jo

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



RE: maven-ear-plugin 2.3 version unwanted behavior with ejb-client dependencies

2007-02-15 Thread Janecek Jan
Hi,

Let ejb plugin generate client ejb jar. Then use dependency on this
client jar (with type jar and classifier client) instead of the
dependency on the server ejb jar (which has type ejb). This works fine.

Regards,
Jan

-Original Message-
From: Markku Saarela [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 15, 2007 1:51 PM
To: Maven Users List
Subject: maven-ear-plugin 2.3 version unwanted behavior with ejb-client
dependencies

Hi,

With new maven-ear-plugin 2.3 version i get unwanted java modules is
application.xml.

We have module structure where ejb module has another ejb module as
ejb-client dependent. Now with this 2.3 version this dependents
ejb-client dependent shows up is application.xml. If i exclude this
ejbclientmodule in configuration then the ejb-client jar file does not
showup is ear file.

Any ideas?

rgds,

Markku

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



 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



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



RE: Can I get MavenProject instance of plugin itself within a Mojo?

2007-02-13 Thread Janecek Jan
Hi,

Add this to your mojo:
/**
 * @parameter expression="${project}"
 * @readonly
 */
private MavenProject project;

See guides about plugin development in
http://maven.apache.org/guides/index.html

Regards,
Jan

-Original Message-
From: Jiaqi Guo [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 11:22 PM
To: users@maven.apache.org
Subject: Can I get MavenProject instance of plugin itself within a Mojo?

I need some of the maven2 plugin's dependencies during execute() method
of a Mojo. In maven1 there's ${plugin.get...} that I can use in jelly
script, how can I do similar thing in maven2 Mojo class?  Thanks in
advance.

I've tryed printing out getPluginContext() but it seems to return empty
Map.


Regards

-- 



Jiaqi Guo

http://www.cyclopsgroup.org
[EMAIL PROTECTED]


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



 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



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



Re: Re: Eclipse

2007-02-09 Thread Jan-Oliver Wuelfing

No, this error message turnes up if I start Eclipse

[EMAIL PROTECTED] wrote:
>> >>
>> >> Subject:
>> >> Re: Eclipse
>> >> From:
>> >> "Matt Bone" <[EMAIL PROTECTED]>
>> >> Date:
>> >> Thu, 8 Feb 2007 18:00:23 -0600
>> >> To:
>> >> "Maven Users List" 
>> >>
>> >> To:
>> >> "Maven Users List" 
>> >>
>> >>
>> >> Does it give you this error message when you invoke maven from the
>> >> command line?
>> >>
>> >> On 2/8/07, Jan-Oliver Wuelfing
>> >> <[EMAIL PROTECTED]> wrote:
>>> >>> Hello to everyone,
>>> >>>
>>> >>> I use the Maven 2.0.4 Eclipse Plug-in 0.0.5 and Subclipse 1.0.5 and
>>> >>> encountered the following error message at start-up of Eclipse 
3.2.1:

>>> >>>
>>> >>> 08.02.07 11:26:51 CET: [DEBUG] Found 0 components to load on start
>>> >>> 08.02.07 11:26:51 CET: [DEBUG] Building Maven user-level plugin 
registry

>>> >>> from: '/home/jwuelfin/.m2/plugin-registry.xml'
>>> >>> 08.02.07 11:26:51 CET: Reading /wsag4j/pom.xml
>>> >>> 08.02.07 11:26:51 CET: [DEBUG] Retrieving parent-POM from the 
repository

>>> >>> for project: wsag4j:wsag4j:pom:0.0.1
>>> >>> 08.02.07 11:26:51 CET: [DEBUG] Trying repository central
>>> >>> 08.02.07 11:26:51 CET: [WARN] Unable to get resource from 
repository

>>> >>> central (http://repo1.maven.org/maven2)
>>> >>> 08.02.07 11:26:51 CET: Unable to read project /wsag4j/pom.xml;
>>> >>> org.apache.maven.project.ProjectBuildingException: POM 
'mss:mss' not
>>> >>> found in repository: Unable to download the artifact from any 
repository

>>> >>>
>>> >>>mss:mss:pom:0.0.1
>>> >>>
>>> >>> from the specified remote repositories:
>>> >>>central (http://repo1.maven.org/maven2)
>>> >>>
>>> >>> 08.02.07 11:26:54 CET: Updated source folders for project wsag4j
>>> >>>
>>> >>> Has anyone an idea?
>>> >>>
>>> >>> Cheers
>>> >>>   Jan
>>> >>>
>>> >>>
>>> >>> 
-

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


>> >>

begin:vcard
fn:Jan Wuelfing
n;quoted-printable:W=C3=BClfing;Jan
org:Fraunhofer Institute for Algorithms and Scientific Computing (SCAI)
adr:;;Schloss Birlinghoven;Sankt Augustin;;53754;GERMANY
email;internet:[EMAIL PROTECTED]
tel;work:+49 (0) 2241 / 14-2138
url:http://www.scai.fraunhofer.de
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


Maven Eclipse Repository

2007-02-09 Thread Jan-Oliver Wuelfing

Good Morning, (well, here at least)

I got this error message:

09.02.07 09:07:53 CET: Unable to read project /wsag4j/pom.xml; 
org.apache.maven.project.ProjectBuildingException: POM 'mss:mss' not 
found in repository: Unable to download the artifact from any repository


  mss:mss:pom:0.0.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

But my SVN-repo is on packcs-e0.scai.faunhofer.de/repos/mss/trunk and 
the local repo is in /home/jwuelfin/programs/maven-2.0.4/repo


Why does it not look in any of these locations?

Thank you
 Jan
begin:vcard
fn:Jan Wuelfing
n;quoted-printable:W=C3=BClfing;Jan
org:Fraunhofer Institute for Algorithms and Scientific Computing (SCAI)
adr:;;Schloss Birlinghoven;Sankt Augustin;;53754;GERMANY
email;internet:[EMAIL PROTECTED]
tel;work:+49 (0) 2241 / 14-2138
url:http://www.scai.fraunhofer.de
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


Repository

2007-02-08 Thread Jan-Oliver Wuelfing

Hi,

I forgot to mention that I want to use a local repository and a remote 
SVN. I editet the settings.xml in .m2/ as following:


...
  


  default

  

  packcs
  Repository for MSS builds
  http://packcs-e0.scai.fraunhofer.de/repos/maven
  default
  always

  


  

  
default
  

I already set the CLASSPATH M2_REPO in Eclipse to 
$home/programs/maven-2.0.4/repo/ and under Window/Preferences/Mavin the 
local repository to the same folder,


but still get the follioing error message at start-up of Eclipse:

08.02.07 11:26:51 CET: [DEBUG] Found 0 components to load on start
08.02.07 11:26:51 CET: [DEBUG] Building Maven user-level plugin registry 
from: '/home/jwuelfin/.m2/plugin-registry.xml'

08.02.07 11:26:51 CET: Reading /wsag4j/pom.xml
08.02.07 11:26:51 CET: [DEBUG] Retrieving parent-POM from the repository 
for project: wsag4j:wsag4j:pom:0.0.1

08.02.07 11:26:51 CET: [DEBUG] Trying repository central
08.02.07 11:26:51 CET: [WARN] Unable to get resource from repository 
central (http://repo1.maven.org/maven2)
08.02.07 11:26:51 CET: Unable to read project /wsag4j/pom.xml; 
org.apache.maven.project.ProjectBuildingException: POM 'mss:mss' not 
found in repository: Unable to download the artifact from any repository


  mss:mss:pom:0.0.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

08.02.07 11:26:54 CET: Updated source folders for project wsag4j

I checked out from packcs-e0.scai.fraunhofer.de/repos/mss/trunk

I use the Maven 2.0.4 Eclipse Plug-in 0.0.5, Subclipse 1.0.5 and Eclipse 
3.2.1.



Has anyone an idea?

Thanks
Cheers
 Jan

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

Eclipse

2007-02-08 Thread Jan-Oliver Wuelfing

Hello to everyone,

I use the Maven 2.0.4 Eclipse Plug-in 0.0.5 and Subclipse 1.0.5 and 
encountered the following error message at start-up of Eclipse 3.2.1:


08.02.07 11:26:51 CET: [DEBUG] Found 0 components to load on start
08.02.07 11:26:51 CET: [DEBUG] Building Maven user-level plugin registry 
from: '/home/jwuelfin/.m2/plugin-registry.xml'

08.02.07 11:26:51 CET: Reading /wsag4j/pom.xml
08.02.07 11:26:51 CET: [DEBUG] Retrieving parent-POM from the repository 
for project: wsag4j:wsag4j:pom:0.0.1

08.02.07 11:26:51 CET: [DEBUG] Trying repository central
08.02.07 11:26:51 CET: [WARN] Unable to get resource from repository 
central (http://repo1.maven.org/maven2)
08.02.07 11:26:51 CET: Unable to read project /wsag4j/pom.xml; 
org.apache.maven.project.ProjectBuildingException: POM 'mss:mss' not 
found in repository: Unable to download the artifact from any repository


  mss:mss:pom:0.0.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

08.02.07 11:26:54 CET: Updated source folders for project wsag4j

Has anyone an idea?

Cheers
 Jan

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

tag main module only, not recursive into submodules

2007-02-01 Thread Edelbroek, J.H. \(Jan\)
I want to use the scm:tag to tag my nightly builds in Continuum with a 
timestamp. Therefore i want to do something like:
mvn clean install scm:tag -DaddTimestamp=true etcetera

However, i noticed that scm:tag starts tagging the main module (which contains 
the main pom). After that it tries to tag the submodules with the same tag.
This goes wrong because the submodules are already tagged with the same tag in 
the first place.

Is there a possibility to prevent the scm:tag to tag the submodules?
I cannot use the --non-recursive argument because the submodules need to build.
I cannot use a separate build definition for tagging, because i only want to 
tag my sources when the build is succesful.
Does anybody have a solution for this?

With kind regards,
Jan




-Disclaimer---
De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend 
bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming 
kregen dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is 
verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk 
van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht en 
een verschoningsrecht.
---



RE: How to run maven with java class

2007-02-01 Thread Janecek Jan
Unfortunately I have never used it. I only know that it exists and that
it probably is what you need. But I can't give you any further
information. Probably someone else will.

Jan 

-Original Message-
From: Apu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 4:24 PM
To: users@maven.apache.org
Subject: RE: How to run maven with java class


Hi Jan,

Have you used the Embedder anytime? 
Seems like there are lots of issues related to it.
Basically, I am trying to make a web-interface executing basic maven
tasks like i have mentioned.

Would the MavenEmbedder be appropriate for this purpose.

Apu




Janecek Jan wrote:
> 
> Hi,
> 
> See http://maven.apache.org/guides/mini/guide-embedding-m2.html. It 
> should help.
> 
> Jan
> 
> -Original Message-
> From: Apu [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 31, 2007 2:17 PM
> To: users@maven.apache.org
> Subject: How to run maven with java class
> 
> 
> Hi,
> 
> I was curious if you could run maven tasks by executing a java class 
> along with the arguments like install, compile from the command line?
> 
> Please Help!
> --
> View this message in context:
> http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.h
> tm
> l#a8728776
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>  
>  
> Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze 
> obsahovat duverne informace, jejichz ochrana muze byt vyzadovana
pravnimi predpisy.
> Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
> odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned
vymazte.
> Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a

> sireni teto zpravy je v takovem pripade zakazana.
> Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym 
> prenosem, moznou modifikaci ci zpozdenim teto zpravy behem prenosu od 
> odesilatele k adresatovi.
> 
> 
> This e-mail transmission is intended solely for the ordinary user of 
> the e-mail address to which it was addressed. It may contain legally 
> privileged and/or confidential information.
> If you have received this e-mail in error or are not an intended 
> recipient please inform the sender with-out delay and delete this 
> e-mail, attachments and possible copies immediately. The unauthorised 
> use, disclosure, distribution and/or copying of this e-mail or any 
> information it contains is prohibited.
> Komercni banka, a. s., does not accept liability for any damage caused

> by incomplete transmission, possible modification or delay of this 
> e-mail during the transmission from the sender to the recipient.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

--
View this message in context:
http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.htm
l#a873
Sent from the Maven - Users mailing list archive at Nabble.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: How to run maven with java class

2007-01-31 Thread Janecek Jan
Hi,

See http://maven.apache.org/guides/mini/guide-embedding-m2.html. It
should help.

Jan 

-Original Message-
From: Apu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 31, 2007 2:17 PM
To: users@maven.apache.org
Subject: How to run maven with java class


Hi,

I was curious if you could run maven tasks by executing a java class
along with the arguments like install, compile from the command line?

Please Help!
--
View this message in context:
http://www.nabble.com/How-to-run-maven-with-java-class-tf3148677s177.htm
l#a8728776
Sent from the Maven - Users mailing list archive at Nabble.com.


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



 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



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



RE: transitivity path to resolved dependency

2007-01-25 Thread Janecek Jan
Hi,

You can can run maven with -X option. It prints lot of debuging info and
among others all dependencies (in tree structure). This works well with
maven 2.0.4 but does not with 2.1-SNAPSHOT. Other way is to build site
and look at the page with dependencies.

Jan 

-Original Message-
From: Gabriele Contini [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 25, 2007 11:48 AM
To: Maven Users List
Subject: Re: transitivity path to resolved dependency

Petar Tahchiev wrote:
> On 24/01/07, Gabriele Contini <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> we have a project structure with many modules and inherited 
>> dependencies.
>> How can we find out the transitivity path  for any given dependency? 
>> For example :
>>
>>   Path to dependency:
>> 1) fop:fop:jar:0.20.5
>> 2) xalan.xalan:jar:2.4.1
>>
>> This information is usually displayed only for unresolved 
>> dependencies, is it possible to have it  for resolved dependencies
too ?
>> We looked into the dependency:resolve goal but we could not find any 
>> option to  display this information.
>>
>> Gabriele and Luca
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> This is my method of keeping the track of transitive dependencies.
>
> Delete the artifact (in your case xalan) from yuor local repository 
> and run mvn install -o This tells maven to run the build offline, and 
> since you don't have the dependency in your repo when another 
> dependency tries to add it to your local repo. it would fail on that 
> place.
>
> Maybe there is a better way, but I have always used this.
>
Ugly, but it works! thank you a lot!! :-)


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



 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



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



clean site + pom.xml

2007-01-24 Thread Jan-Oliver Wuelfing

Hello to everybody,

I´ve encountered a prob with Eclipse´s Maven plug-in:

If I try to build the site via pom.xml > clean site, Eclipse´a console 
shows up the message below.


Can anyone give an advice, please?

Cheers
 Jan

[INFO] 


[INFO] Building WS-Agreement Framework
[INFO]task-segment: [clean, site]
[INFO] 


[INFO] clean:clean
[INFO] Deleting directory /home/jwuelfin/eclipse/workspace/wsag4j/target
[INFO] Deleting directory 
/home/jwuelfin/eclipse/workspace/wsag4j/target/classes
[INFO] Deleting directory 
/home/jwuelfin/eclipse/workspace/wsag4j/target/test-classes
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] site:site
[WARN] Unable to load parent project from repository: Could not find the 
model file '/home/jwuelfin/eclipse/workspace/wsag4j/../pom.xml'.

[ERROR] mojo-execute : site:site
Diagnosis: Unable to read local module-POM
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : wsag4j:wsag4j:pom:0.0.1 (  task-segment: 
[clean, site] )

Diagnosis: Unable to read local module-POM
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to read 
local module-POM
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to 
read local module-POM
	at 
org.apache.maven.plugins.site.AbstractSiteMojo.populateModules(AbstractSiteMojo.java:295)
	at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:510)
	at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:429)

at 
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:108)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
	at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

... 8 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed 
to validate POM
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:926)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:737)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)
	at 
org.apache.maven.plugins.site.AbstractSiteMojo.populateModules(AbstractSiteMojo.java:291)

... 14 more

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

pom.xml

2007-01-24 Thread Jan-Oliver Wuelfing

Hello to everybody,

I´ve encountered a prob with Eclipse´s Maven plug-in:

It prompts that a project build error exist: failed to validate pom.

Can anyone give an advice, please?

Cheers
 Jan

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

Activation a profile from another profile

2007-01-23 Thread Janecek Jan
Hi,
 
is it possible to trigger profile activation by activating another
profile? 
 
I have several profiles defined that can be divided to few sets that
have some parts in common. I would like to place these common parts in
different profiles. For example I would have profiles profile1,
profile2, profile3, profile4. profile1 and profile2 would have some
parts in common and the same is true for profile3 and profile4. I
thought I could define profileA (with common parts of profile1 and
profile2) and profileB (with common parts of profile3 and profile4).
Then when I activate profile1 (by setting a property) I need to have
profileA activated as well. Is this possible?
 
In my case I have builds for different application servers (JBoss and
WebSphere) and each of them has several installations. I try to
parametrize builds for a specific server installation. So in my case
profileA and profileB contain configuration for the server and
profile1,... adds further configuration for the specific installation.
Currently I use 2 properties, one for activation of profileA/profileB
and for profile1/profile2/... . But then it is necessary to specify both
variables when running Maven (and thats annoying) and obviously it is
possible to specify invalid combinations.
 
Regards,
Jan

 
 
Tento e-mail je urcen pouze pro jeho adresata/adresaty a muze obsahovat duverne 
informace, jejichz ochrana muze byt vyzadovana pravnimi predpisy.
Jestlize jste zpravu obdrzel(a) omylem, neprodlene informujte jejiho 
odesilatele a tuto zpravu, jeji prilohy a pripadne kopie ihned vymazte. 
Jakakoli forma uziti, zverejneni, reprodukce, kopirovani, distribuce a sireni 
teto zpravy je v takovem pripade zakazana.
Komercni banka, a.s., neodpovida za mozne skody zpusobene neuplnym prenosem, 
moznou modifikaci ci zpozdenim teto zpravy behem prenosu od odesilatele k 
adresatovi.


This e-mail transmission is intended solely for the ordinary user of the e-mail 
address to which it was addressed. It may contain legally privileged and/or 
confidential information. 
If you have received this e-mail in error or are not an intended recipient 
please inform the sender with-out delay and delete this e-mail, attachments and 
possible copies immediately. The unauthorised use, disclosure, distribution 
and/or copying of this e-mail or any information it contains is prohibited. 
Komercni banka, a. s., does not accept liability for any damage caused by 
incomplete transmission, possible modification or delay of this e-mail during 
the transmission from the sender to the recipient.



Re: Setting up a Internal Maven Repo

2007-01-15 Thread ir. ing. Jan Dockx

See <http://cvs.peopleware.be/training/maven/maven2/repositories.html>


On 16 Jan 2007, at 8:22, Barrie Treloar wrote:


On 1/16/07, CHHAJED, Amit, GBM <[EMAIL PROTECTED]> wrote:

Hi,

I was looking for a links which will help me in setting up a  
Internal Maven
repository and things that I need to take care while setting the  
same. Any

help / links / suggestions would be appreciated.


For Maven 2 see
http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a 
+corporate+environment


-
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]



APT: code-snippet

2007-01-15 Thread Jan-Oliver Wuelfing

Dear all,

I use the code snippet-macro (shown at 
http://maven.apache.org/guides/mini/guide-snippet-macro.html) to include 
Java source code in my HTML-sites, but it doesn´t work, why?
I build my site via the Eclipse-plug-in, so I´ve checked out the 
repository with the source code and the src- and target-structure in the 
Eclipse workspace environment.

The path to my codes is:
eclipse/workspace/wsag4j/wsag4j-distributions/wsag4j-agreement-factory/src/test/java/org/ogf/graap/wsag/distributions/test/AgreementFactoryTest.java

Can anyone give me an advice?

Thanks
Regards
 Jan

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

APT + site.xml + parent directory

2007-01-15 Thread Jan-Oliver Wuelfing

Hi all,

is it possible to include a parent-link the to next upper index.html in 
the 'menu'- or 'module'-section in the site.xml?

Or is there any other possibility to include automaticly?

Cheers
 Jan

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

APT

2007-01-09 Thread Jan-Oliver Wuelfing

Hi all,

Iam a first time-user and use Maven´s site function to get a html-doku

Is there any apt-command to include source-code into the site, like scr?

Do I´ve to copy the code fragments and format them on my own?

Thanx
 Jan

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

Re: Multi-module and resource files

2006-12-26 Thread Jan Kauffman

Yes, I tryed it, but I keep receiving the same warning...

log4j:WARN No appenders could be found for logger.

log4j:WARN Please initialize the log4j system properly.



J. Kauffman

On 12/22/06, Rémy Sanlaville <[EMAIL PROTECTED]> wrote:


Did you try to copy your log4j properties file in src/test/resources ?

Rémy




Re: Multi-module and resource files

2006-12-22 Thread Jan Kauffman

That's not really what I meant.
I'm able to add it to the jar, but I coudn't find a way of including
it to the classpath when I'm testing the project before creating the
jar file.
I mean. When I run 'mvn test', maven gives me a warn saying that there
are no appenders for log4j, but after I create the jar and run it
directly from the jar, it works well, with no warnings.
Any help is appreciated

J. Kauffman

On 12/21/06, Antonio Parolini <[EMAIL PROTECTED]> wrote:


Just put all *.properties files into src/main/resources, as they'll be added
into your jar automatically

HTH.

Tony.

see:
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

Jan Kauffman wrote:
>
> I'm having the same problem trying to include my log4j.properties file on
> my
> project.
> I made it work when I create the jar file, including it into the manifest,
> but when I try to 'run mvn test' command, it still answers me that log4j
> has
> no appenders.
> Does anybody know how to help solve this problem?
>
> thanks
> J. Kauffman
>
> On 12/19/06, Paolo Bacci <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>> I have a maven multi-module project and I got a simple question about
>> classpath. I want to know where Maven will lookup resource files (such
>> as log4j.properties files) by default to include in the classpath in
>> the case of a multi-module setup.
>>
>> Or, if no such directory exists by default, should I add a classpath
>> entry to the main project's POM?
>>
>> Thanks in advance,
>>
>> Paolo
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/Multi-module-and-resource-files-tf2847239s177.html#a8013721
Sent from the Maven - Users mailing list archive at Nabble.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: Multi-module and resource files

2006-12-21 Thread Jan Kauffman

I'm having the same problem trying to include my log4j.properties file on my
project.
I made it work when I create the jar file, including it into the manifest,
but when I try to 'run mvn test' command, it still answers me that log4j has
no appenders.
Does anybody know how to help solve this problem?

thanks
J. Kauffman

On 12/19/06, Paolo Bacci <[EMAIL PROTECTED]> wrote:


Hi all,

I have a maven multi-module project and I got a simple question about
classpath. I want to know where Maven will lookup resource files (such
as log4j.properties files) by default to include in the classpath in
the case of a multi-module setup.

Or, if no such directory exists by default, should I add a classpath
entry to the main project's POM?

Thanks in advance,

Paolo

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




ClassCastException in webresources filtering

2006-12-20 Thread Jan Zelenka

Hi,
I get ClassCastException during webresources filtering.
maven-war-plugin version 2.0.0 doesn't throw exception but also doesn't do
any filtering which is in line with other people posts.
Version 2.0.1 in my case throws exception. I also find another post with
same problem but no answer.
Thanks for any help.

pom.xml:

  
org.apache.maven.plugins
maven-war-plugin

  

  true
  ${basedir}/src/main/webapp
  
Main.html
  

  

  

Exception:

[INFO] Trace
java.lang.ClassCastException: org.apache.maven.project.MavenProject
at
org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:269)
at
org.codehaus.plexus.util.InterpolationFilterReader.read(InterpolationFilterReader.java:162)
at java.io.Reader.read(Reader.java:122)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212)
at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200)
at
org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile(AbstractWarMojo.java:907)
at
org.apache.maven.plugin.war.AbstractWarMojo.copyResources(AbstractWarMojo.java:442)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:355)
at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:161)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:127)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
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]



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



Re: [M2] list of available goals (for all plugins)?

2006-12-04 Thread ir. ing. Jan Dockx
Define "ALL Maven2 plugins". Since Maven is an open system of  
plugins, the best answer is probably "Google" ;-). If you mean all  
build lifecycle phases, they are static, and can be found at cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html>  
and at other places.



On 4 Dec 2006, at 15:15, CodingPlayer wrote:



Hi,

i'm searching for a plugin that lists all available goals of ALL  
Maven2

plugins?
If this feature is not implemented yet, will it be taken into  
consideration?


i know about the 'maven-projecthelp-plugin' and the 'maven-help- 
plugin', but

they don't show available goals...

thx 4 help
R.C.
--
View this message in context: http://www.nabble.com/-M2--list-of- 
available-goals-%28for-all-plugins%29--tf2753173s177.html#a7678351

Sent from the Maven - Users mailing list archive at Nabble.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: Hibernate 3.2

2006-11-15 Thread ir. ing. Jan Dockx
WARN: Don't go to www.mvnregistry.com! It redirects to a place that  
tries to install an exe for porn. (don't worry if you're on Mac OS X  
or other un*x ;-)).


Damien Lecan: I'm not amused.

On 15 Nov 2006, at 17:27, LECAN Damien wrote:


To search artifacts :
www.mvnrepository.com
www.mvnregistry.com

Very helpful

Damien


-Message d'origine-
De : Mark Grand [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 15 novembre 2006 17:13
À : users@maven.apache.org
Objet : Hibernate 3.2


I want to use Hibernate 3.2 in a project that I am building with
maven.  There is no artifact for Hibernate 3.2 in ibiblio.  How can I
manually set it up in my local repository?

Mark Grand   (404)925-8265



-
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]







"[…]  my biggest problem is finding out how to do things."
(in a mail on the Maven Users List)






Re: Surefire report issues

2006-11-15 Thread ir. ing. Jan Dockx

If all tests pass, there is no problem … ;-)


On 15 Nov 2006, at 12:21, Dave Syer wrote:



Thanks for the reference.  Can anyone tell me how come there are so  
many good
projects out there using maven 2, when the support for unit test  
reporting
is so poor?  I can't be the only one that is frustrated.  What are  
other

people doing as a workaround?  I guess no-one uses the default site
generator and reports.


Damien Lecan wrote:


http://jira.codehaus.org/browse/MSUREFIRE-114



--
View this message in context: http://www.nabble.com/Surefire-report- 
issues-tf2634455s177.html#a7356019

Sent from the Maven - Users mailing list archive at Nabble.com.


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







"[…]  my biggest problem is finding out how to do things."
(in a mail on the Maven Users List)






Maven does not get latest snapshot for building

2006-11-14 Thread Jan Thomä
Hi,

we are using a library called ICC for our projects. The library is built from 
SVN on our server once per night and stored as icc-1.0-SNAPSHOT on the 
server. We have added the server to our remote repositories via settings.xml. 

Also, since ICC is still in heavy development, every developer has a local 
copy of ICC as well on his machine.

When a developer changes ICC if he needs the change for some other project 
depending on ICC, he finally calls mvn install, to install his local changes 
to ICC into his local repository (which creates an icc-1.0-SNAPSHOT.jar in 
the local repo).

When building the other project, maven fetches the latest copy of ICC from our 
server and puts it into the local repository. Now here is where the problem 
starts. Maven always uses the copy from the server, not the locally installed 
one (using mvn install in ICC), even if the locally created version is 
newer . Is there something we are doing wrong?

Best regards,
-- 

Jan Thomä
insOMnia - We never sleep...   http://www.insomnia-hq.de


pgpn8p1mNOpyb.pgp
Description: PGP signature


Where is the Plugin documentation gone?

2006-11-03 Thread Jan Thomä
Hi,

is it just me, or is the plugin documentation on the maven site gone? There 
used to be a "Plugins" page, where i could at least see which plugins are 
available and get some basic help about them. Now this is gone. Any hints 
where i might look for it? 

Best regards,
Jan
-- 
________
Jan Thomä
insOMnia - We never sleep...   http://www.insomnia-hq.de


pgpReJeIn8B86.pgp
Description: PGP signature


[m2] execute different testng suites in different phases

2006-11-03 Thread Jan-Christopher Bals

Hi folks!

I'm trying to execute TestNG Suites in different maven2 phases.

For that i defined two different testng.xml files

a) unit-tests.xml
b) integration-tests.xml

Now i want surefire to execute the unit-tests in the test phase and the 
integration-tests in the integration-test phase.


So i added the following lines to my pom:


...
 

  

   maven-surefire-plugin

   



 src/test/resources/unit-tests.xml



   

  

  

   maven-surefire-plugin

   



 integration-test

 integration-test

 

  test

 

 

  

   integration-tests.xml 



  

 



   

  

 
   ...


When i run 'mvn test' surefire executes the unit tests as desired.
But when i run 'mvn integration-test' surefire does not execute the 
integration-tests in the integration-phase. Instead of that it runs the 
unit-tests a second time!



Does anybody know how to execute testng suites in different maven phases?

best regards
Jan

P.S.


...
 
  
   maven-surefire-plugin
   

 test
 test
 
  test
 
 
  
   unit-tests.xml
  
 


 integration-test
 integration-test
 
  test
 
 
  
   integration-tests.xml 


  
 


   
  
 
   ...


This does not work, too. In this case surefire runs the unit and the 
integration tests in the test phase, which is even worse for me.





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



HOWTO: Have assembly plugin call package automatically before doing assembly?

2006-10-30 Thread Jan Thomä
Hi,

currently i am using the assembly - plugin, to assemble a multi-module project 
into a single directory containing the binary output of all modules. However, 
i always have to call package before assembly, otherwise the assembly-plugin 
states that i should call package before assembly and fails. Is there some 
way to have package automatically called by assembly, as this is very 
repetitive and actually i don't see a reason why assembly does not call 
package by default... Any insights are appreciated.

Thank you and best regards,
Jan
-- 
____
Jan Thomä
insOMnia - We never sleep...   http://www.insomnia-hq.de


pgph4jPyuTG0r.pgp
Description: PGP signature


excluding/including tests in surefire-plugin in different phases

2006-10-29 Thread Jan-Olav Eide
Still struggling with this The configuration below runs all my tests
in both phases. Nothing is exluded or included :-( As far as I can see,
this config  is the same as the one recommended on
http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion
-exclusion.html, where inclusion and exclusion patterns are reversed in
the two phases. Any insight greatly appreciated.  



  maven-surefire-plugin
  

   integration-test
   integration-test
   

   **/Test*.java

  
   
 **/TestIntegration.java
   
   
   
  
  
 test
 test
 
 
 **/Test*.java
  
 
  
 **/TestIntegration.java
  
 
 
   
 


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



Re: Maven Snapshot Repository Down?

2006-10-25 Thread Jan Thomä
Aye, indeed, however currently we dont have them on all pcs, so getting this 
up again would be really helpful - but well they are working on it :)

Best regards,
Jan

On Wednesday, 25. October 2006 16:43, pjungwir wrote:
> Someone yesterday mentioned running "mvn -o" to prevent updating snapshots.
> Of course you must already have them, but this will apparently prevent
> maven from failing trying to get newer ones.
>
> Paul

-- 
____
Jan Thomä
insOMnia - We never sleep...   http://www.insomnia-hq.de


pgpMTiyP5nKDP.pgp
Description: PGP signature


Maven Snapshot Repository Down?

2006-10-25 Thread Jan Thomä
Hi,

i am unable to access people.apache.org for 3 days now. I tried from
several machines in several networks to rule out any firewall/proxy
issues, but it seems that the host is unreachable (except for a 1 hour
period on monday evening CEST). Is there some maintenance going on? Has
the URL changed? Any insights would be helpful, as currently our build
cannot run because it needs some plugins from the snapshot repository.

On second thought - is there a mirror of the snapshot repository which i
could access meanwhile?

Best regards,
Jan Thomä


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



custom archetype : filtering directory names

2006-10-18 Thread Jan-Christopher Bals

Hi!

I am currently building a custom archetype.

In addition to the replacement of ${keys} in files i need a way to 
rename files and directories.


Example:

archetype
|-- pom.xml
`-- src
`-- main
`-- resources
|-- META-INF
|   `-- archetype.xml
`-- archetype-resources
|-- pom.xml
`-- src
`-- main
`-- java
`-- ${packagename}
`--${classname}.java



Is there a way to achieve replacements like that?

best regards

Jan

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



Re: docbook plugin

2006-10-15 Thread ir. ing. Jan Dockx


On 13 Oct 2006, at 16:39, pjungwir wrote:




ir. ing. Jan Dockx wrote:


<http://cvs.peopleware.be/training/maven/maven2/ 
buildLifecyclePhases.html>


hope this helps.



Thanks. That is the best table I've seen so far. I eventually  
figured this

out by looking here:

https://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4/ 
maven-core/src/main/resources/META-INF/plexus/components.xml


One thing I still don't understand: most of the lists out there don't
mention the initialize phase. The list you posted has it, but in  
brackets

with no description. Why is that?



Because, as far as I understand, it is there only for internal  
reasons, and not for plugins to be used.

Maven developers might confirm or deny this …



Paul

--
View this message in context: http://www.nabble.com/docbook-plugin- 
tf2408569.html#a6796874

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: docbook plugin

2006-10-13 Thread ir. ing. Jan Dockx



hope this helps.



On 9 Oct 2006, at 23:50, pjungwir wrote:




Jacek Laskowski-4 wrote:


On 10/9/06, Andr?s <[EMAIL PROTECTED]> wrote:
I don't know about such a "pre-site" phase. Indeed, I think  
there's no

"site" phase either. Is it a "typo", or I'm missing something?.

It's executed right before the 'site' phase. Run 'mvn site' and see
what happens.



I went to that link, but I don't see any reference to phases. I  
also checked

the lifecycle doc here:

http://maven.apache.org/guides/introduction/introduction-to-the- 
lifecycle.html


That doesn't mention the site or pre-site phases. I suppose  
generating a
site must be a different lifecycle from a regular build. Can you  
point me to
a description of how this works? What are all the phases when you  
say "mvn

site"?

Thanks,
Paul

--
View this message in context: http://www.nabble.com/docbook-plugin- 
tf2408569.html#a6726350

Sent from the Maven - Users mailing list archive at Nabble.com.


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






"[…]  my biggest problem is finding out how to do things."
(in a mail on the Maven Users List)







exclude integration tests from test phase in surefire-plugin ?

2006-10-12 Thread Jan-Olav Eide
I have a set of tests that I only want to run in the integration-test
phase. These are all in in the .../integration/.. package

I have the following in my pom, but the plugin still insists on running
the integration tests in the test phase.

 

What is wrong with this configuration  ?

 



   maven-surefire-plugin

   

  

 surefire-test

 test

 

test

 

 



   **/integration/**

 

  

   

   

  surefire-integrationtest

   integration-test

   

  test

   

   

  

  **/integration/**

   

   



 

  

Jan-Olav Eide

Senior Software Engineer

FAST

Christian Frederiks plass 6

N-0120 Oslo, Norway

Mobile: + 47 4801 1184

Fax: + 47 2301 1201

www.fastsearch.com

 



[Maven 2] Differences between running a plugin project and running the resulting plugin

2006-09-25 Thread Jan Larsen (Informatik)
I have made a plugin that generates some source code using Velocity.
This plugin (generator-plugin) compiles, tests and deploys without
problems. In this process Velocity loads some templates and generates
the correct files. So far so good.
 
When I attempt to use the generator-plugin in another project however, I
get a strange error from Velocity:
 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource '/src/main/data/templates/parser/trafik_element.vm'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Re
sourceManagerImpl.java:458)
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Res
ourceManagerImpl.java:341)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.
java:831)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.
java:813)
at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleto
n.java:285)
at
org.apache.velocity.app.Velocity.getTemplate(Velocity.java:469)
 
I have (of course) verified the paths and tried combinations of slash
and backslash as well as absolute paths and relative paths.
 
Another part of generator-plugin uses simple file loading (without
involving Velocity) and has no problems finding files.
 
It looks as if Velocitys ResourceManager (which is pretty abstract and
complicated) is somehow initialized differently when called from a
project using a plugin than when the plugin is tested in its own project
thus resulting in a missing ResourceLoader or some such.
 
Has anyone had similar problems?
Can anyone point me to a discription of the differences between how
plugins are loaded and how projects are loaded in maven?
Any other ideas?
 
Jan


Release plugin & dependencies

2006-09-21 Thread Jan Hoskens
Hi all,

I'm using the release plugin for a particular project. The global
structure of this project consists of a parent pom with several modules.
When the release plugin runs, everything is fine until the tests are
run. Some modules have tests that depend on other modules test-jars. But
at the moment the tests are run, they aren't installed so tests that
follow and need that particular version of a test-jar, I get a build
failed.

This is what happens:

- I run mvn release:prepare on project version X-SNAPSHOT
- I use defaults on release version (version X), svn tagging (tag X) and
next working version (Y-SNAPSHOT)
- release starts to run tests
- a test cannot find test jar version X of another module
- build fails

I then simply run mvn install and do another release:prepare. This does
result in a successful build.

Am I using the plugin wrong? Or should the test run from release:prepare
install the jars locally to avoid this?

Kind Regards,
Jan


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



Maven2 :: custom archetype :: filtering of resources

2006-09-20 Thread Jan-Christopher Bals

Hi!

I just created my own maven2 archetype for building webapps with a set 
of default files (binary files like jpg, text files like xml).


I added these files in the archetype.xml description file.


  obs-web-app
  
...
  
  
src/main/resources/config.xml
...
  



When i try to create an new project via my own obs-web-app archetype, 
maven tries to replace expression like ${property} in the resource files.


[WARNING] org.apache.velocity.runtime.exception.ReferenceException: 
reference : template = archetype-resources/src/main/resources/config.xml 
[line 16,column 32] : ${property} is not a valid reference.




So here is my question:

Is there any way to exclude these files from filtering?

Jan

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

Re: [POLL] Why switch to Maven?

2006-08-30 Thread Jan Vissers
>>Maven's key strength is to say "don't worry about trying to build a jar /
>>war / ear / sync with eclipse / autorun tests / publish javadocs / etc /
>>etc, because I already know how to do that, you go and do what you do
>>best, work on the primary code".

I would like this approach very much, but...
have you tried to publish javadocs/jxr/surefire/pmd... etc
for a multimodule project in an aggregated fashion?

> On Wed, August 30, 2006 7:37 am, Jan Vissers wrote:
>
>> I'm reading a lot of "we need about x weeks to convert to maven", "the
>> learning curve is steep", "it is messy but it works", "if it cannot be
>> done we can use ant"...
>>
>> More and more I'm getting the feeling that ANT still isn't such a bad
>> idea for building software. You can do a lot of the convention over
>> configuration stuff for your own projects with ant and things like
>> macrodef, subant and antlib. For dependency management we're currently
>> using Ivy - which is pretty descent. What's more the reporting just
>> works, even aggregated
>> (pmd,jdepend,junit,checkstyle,cobertura,javadoc,changelog,javacnss).
>>
>> Can somebody tell me what the main reason would be for changing from ANT
>> to Maven?
>> I'm starting to get serious doubts.
>
> I recently got involved in a project whose build system uses ant + ivy,
> and to sum it up: what an inefficient mess.
>
> Within themselves, ant and ivy are worthy tools, that perform their tasks
> well. The real problem is that once developers get hold of them, things
> quickly go pear shaped.
>
> The key biggest problem with the ant + ivy combo is the fact that
> developing the build system is a secondary concern, the primary concern
> being developing the software itself. This causes numerous problems,
> including:
>
> - ant scripts are often half finished.
>
> In this project, nobody bothered to take advantage of incremental builds.
> Any attempt to build, will build clean - a huge time waster.
>
> - ant scripts are almost always riddled with hard coded paths, and
> developer specific customisations.
>
> In this project, that means that every developer has to set up their
> development environment the same way as the other developers, which may
> seem perfectly acceptable to some, until you realise that developers don't
> just work on one project.
>
> This makes it difficult / impossible to introduce continuous integration
> techniques, despite this particular project desperately needing it.
>
> - ant scripts are often riddled with relative paths to other projects,
> where it is assumed a sister project is checked out.
>
> Again, this prevents continuous integration from being possible.
>
> - ivy dependencies are often set up by developers who fiddle until they
> work.
>
> In this project, the eclipse jars were removed from their plugins, had
> their version numbers removed, and dumped into one big ivy dependency
> called "eclipse". There is no way of knowing what jar offers what
> functionality, because the jars are called sac.jar, core.jar, etc.
>
> Upgrading the jars (to take advantage of a bugfix, for example) in this
> project is very impractical.
>
> To sum up the above:
>
> Giving developers the power to "do what they want", simply means that
> developers are given the power to do something badly, or not at all.
>
> Build systems are always secondary to the primary code, and do not receive
> proper attention from developers, and this wastes copious amounts of time,
> and therefore money.
>
> Maven's key strength is to say "don't worry about trying to build a jar /
> war / ear / sync with eclipse / autorun tests / publish javadocs / etc /
> etc, because I already know how to do that, you go and do what you do
> best, work on the primary code".
>
> Regards,
> Graham
> --
>
>
>



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



Re: [POLL] Why switch to Maven?

2006-08-29 Thread Jan Vissers
I'm reading a lot of "we need about x weeks to convert to maven", "the 
learning curve is steep", "it is messy but it works", "if it cannot be 
done we can use ant"...


More and more I'm getting the feeling that ANT still isn't such a bad 
idea for building software. You can do a lot of the convention over 
configuration stuff for your own projects with ant and things like 
macrodef, subant and antlib. For dependency management we're currently 
using Ivy - which is pretty descent. What's more the reporting just 
works, even aggregated 
(pmd,jdepend,junit,checkstyle,cobertura,javadoc,changelog,javacnss).


Can somebody tell me what the main reason would be for changing from ANT 
to Maven?

I'm starting to get serious doubts.

Eric Redmond wrote:

Hi all Maven users!

I'm beginning a study to outline the real reasons that people have for
avoiding Maven. My questions to you all are:
What were your anxieties about using Maven? If you use Maven: what helped
you make the decision? If you don't: why did you avoid it?

Here are some that I have heard in the past:

* Lack of good documentation.
* Community unwilling to help me with my problems.
* Not "industry supported" or "mainstream" enough.
* I don't like conforming to the Maven project layout.
* My project is too complex to switch.
* There are not enough plugins available.
* We already have a large investement in tool X.
* I have to build native/non-Java code.

Any more reasons? Care to expand these ideas?
Thanks for your help!

Eric Redmond
http://codehaus.org/~eredmond




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



Re: [POLL] Why switch to Maven?

2006-08-29 Thread Jan Vissers
"Maven to me (still) looks like a great tool for single module 
applications/libraries - but not so much for big(ger) multi module apps. "

--> When reporting is concerned.

Jan Vissers wrote:

The really bad documentation is already mentioned, and rightly so!
Also, I feel for multi module projects (every meaningful JEE project) 
the reporting part is really awful.

There is no consistency in the reporting plugins.

Maven to me (still) looks like a great tool for single module 
applications/libraries - but not so much for big(ger) multi module apps.


Eric Redmond wrote:

Hi all Maven users!

I'm beginning a study to outline the real reasons that people have for
avoiding Maven. My questions to you all are:
What were your anxieties about using Maven? If you use Maven: what 
helped

you make the decision? If you don't: why did you avoid it?

Here are some that I have heard in the past:

* Lack of good documentation.
* Community unwilling to help me with my problems.
* Not "industry supported" or "mainstream" enough.
* I don't like conforming to the Maven project layout.
* My project is too complex to switch.
* There are not enough plugins available.
* We already have a large investement in tool X.
* I have to build native/non-Java code.

Any more reasons? Care to expand these ideas?
Thanks for your help!

Eric Redmond
http://codehaus.org/~eredmond




-
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: [POLL] Why switch to Maven?

2006-08-29 Thread Jan Vissers

The really bad documentation is already mentioned, and rightly so!
Also, I feel for multi module projects (every meaningful JEE project) 
the reporting part is really awful.

There is no consistency in the reporting plugins.

Maven to me (still) looks like a great tool for single module 
applications/libraries - but not so much for big(ger) multi module apps.


Eric Redmond wrote:

Hi all Maven users!

I'm beginning a study to outline the real reasons that people have for
avoiding Maven. My questions to you all are:
What were your anxieties about using Maven? If you use Maven: what helped
you make the decision? If you don't: why did you avoid it?

Here are some that I have heard in the past:

* Lack of good documentation.
* Community unwilling to help me with my problems.
* Not "industry supported" or "mainstream" enough.
* I don't like conforming to the Maven project layout.
* My project is too complex to switch.
* There are not enough plugins available.
* We already have a large investement in tool X.
* I have to build native/non-Java code.

Any more reasons? Care to expand these ideas?
Thanks for your help!

Eric Redmond
http://codehaus.org/~eredmond




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



Eclipse LibCopy plugin for Maven/WTP1.5 usage

2006-08-21 Thread Jan Vissers

Hi,

I'm looking for the LibCopy plugin that gets mentioned on: 
http://www.stephan-schwab.com/2006/07/30/1154300365880.html
The link: 
http://blogs.unixage.com/blojsom/blog/adam.kruszewski/eclipse/2006/05/02/Maven2-Eclipse-plugin-with-latest-WTP-from-callisto-update-site.html 


appears to be dead.


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



Re: M2 site:stage does not copy apidocs and xref?

2006-08-17 Thread Jan Vissers
Hi, this is an issue that has been brought earlier...
as things stand with maven (or at least 2.0.4 which I'm checking) the
multi module / aggregated reporting sucks!

Don't know whether this is going to change any time soon.
This might well mean, that we're not leaving ANT - as one of the key
'selling' points of maven (reporting) isn't ready for (J2EE) use.


Benoit Xhenseval wrote:
> Hi *,
>
> I believe that I've followed Anne's suggestions on:
> http://www.nabble.com/multi-module-project-site%3A-link-to-module-sites-tf1980169.html#a5433379
>
> I call maven:
> mvn site:stage -DstagingDirectory=C:\fullsite
>
> However, it seems that the apidocs and xref files for the modules are not 
> copied in the fullsite directory (or module sub-directory)
> \fullsite\moduleA\apidocs\index.html (ONLY file in apidocs and it is 0KB)
> same for xref and xref-test
>
> Should I call those differently?
>
> 
> 
> 
> org.apache.maven.plugins
> maven-javadoc-plugin
> 
> 
> org.apache.maven.plugins
> maven-surefire-report-plugin
> 
> 
> org.codehaus.mojo
> taglist-maven-plugin
> 
> 
> org.apache.maven.plugins
> maven-pmd-plugin
> 
> 1.5
> 
> 
> 
>   org.apache.maven.plugins
>   maven-checkstyle-plugin
> 
> 
>   org.apache.maven.plugins
>   maven-jxr-plugin
> 
> 
> 
>
> Many thanks
>
> Benoit
>
>
>
>
>   
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 16-8-2006
>   


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



Re: Yet another question about multi module reporting...

2006-08-13 Thread Jan Vissers

| Care to elaborate? Why unreadable?

Yes, I'm also interested in the arguments for that.

At the moment I'm responsible for a relatively big build environment 
that is using ANT and also has
its fair amount of reporting done. Using ANT's functionality for 
macro's, subant and what have
you the final reporting result consists of "two" pages. One for my 
aggregated reports, and
one for each module's "own" reports. My experience is that nobody is 
actually reading/interested

in the module's own reporting and only browsing the aggregated reports.

I'm currently revisiting Maven to see whether version 2.0.4 is something 
I could
use in my next engagement, but am a bit disappointed by the whole multi 
module
reporting part of it. It seems to me that "convention over 
configuration" hasn't

gotten through to that section yet - as there is no real convention about
multi module reporting. What I would like to see is a standardized way 
for this.
So for instance, each report should support a "aggregate" configuration 
setting.






Torsten Curdt wrote:

Not all plugins support aggregation, though, and I'm not sure if that's
desirable (i.e. the surefire report, if it's aggregated it might become
unreadable).


Care to elaborate? Why unreadable?

cheers
--
Torsten

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





--
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)30 - 6940499
http://www.cumquat.nl

[EMAIL PROTECTED]
M +31 6 51 169 556



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



Yet another question about multi module reporting...

2006-08-13 Thread Jan Vissers

Is it possible to have *only* aggregated reports and
remove the submodule 'links' at the upper left hand
corner of the main index.html page?



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



multi module site generation - module links not showing in index.html

2006-08-11 Thread Jan Vissers

Wondering whether this is default behavior.
When I generate the site for a multi module project
the contained modules are displayed at the upper-left
of the index.html page - but it is 'plain' text and no hyperlink.

How come?

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



Re: link to module sites - and aggregated javadoc

2006-08-11 Thread Jan Vissers
Hi - without the site:stage, but with the aggregate configuration 
element in javadoc set to true, "site" will generate the javadoc at the 
top level for me.


Sam Merrell wrote:

I get the same issue without aggregating my javadocs.

On 8/11/06, Jan Vissers <[EMAIL PROTECTED]> wrote:


Maven 2.0.4.

Trying to create a site for multi module project where the module links
are actually shown. Using the following command:

   site:stage -DstagingDirectory=

the module links are shown, but the aggregated javadoc page on the
toplevel is empty.
Here is the reports section of my toplevel pom:

   


org.apache.maven.plugins
maven-javadoc-plugin

true






The actual javadoc is generated within the original toplevel
/target/site/apidocs
Looks like the javadoc is not copied to the site staging area.

Is this a known issue?

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






--
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)30 - 6940499
http://www.cumquat.nl

[EMAIL PROTECTED]
M +31 6 51 169 556



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



Re: Maven 2.0.4 - multi module reporting

2006-08-11 Thread Jan Vissers

Well... this has been a journey, which appears to have become a deception.
My conclusions after a day trying to figure the reporting (surefire, 
checkstyle, jdepend, javancss,

cobertua, pmd, jxr, changes, changelog) are:

  * multi-module reporting 'out-of-the-box' isn't behaving properly,
the module links don't show up, so there is no easy way to
navigate to these locations - where in fact several reports have
been generated.

  * trying to overcome this issue by setting a staging area for the site,
only results in several aggregation reports (javadoc/jxr) not being
populated correctly.

  * report aggregation for multi-module projects is a pain in the ...
various reports use different ways, to (try) to set aggregation
only a few actually manage to succeed. In my opinion report
aggregation for multi-module projects should work straight away.
Looks like PMD reporting has got the basic idea, in that it 
searches

for modules for aggregation are automatically performed - but
maven's behavior gets in the way.

I'll be continuing my tests for maven 2.0.4, next time for basic building
specifics like; install, package, deploy, release.

If anybody has some more information about the multi module reporting status
and how (soon) things will get better - I would definitely like to know!

Thanks,
Jan.

Jan Vissers wrote:
I'm evaluating maven 2.0.4 and am wondering what the current 'state' 
is for multi module reporting. I've read that there are various issues 
with it. What I like to know is:


* does multi module reporting (aggregation) work for:
- surefire
- checkstyle
- jdepend
- javancss
- cobertura
- pmd
- jxr
  
* what are potential issues that I might have when performing reports 
on multi module projects?


Thanks.

-
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]



Changes report - maven 2.0.4

2006-08-11 Thread Jan Vissers

Cannot use this report, cause it cannot be located.
Tried several things here:

according to documentation:

 
   org.apache.maven.plugins
   maven-changelog-plugin
 

And according to some 'rumours' about relocation of the plugin:

 org.codehaus.mojo
changes-maven-plugin
2.0-beta-1-SNAPSHOT

  

jira-report

 


Come on guys ... this is getting pretty awkward!




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



Surefire reports and multiple module projects - multi module (aggregated) reporting not 'ready for prime time'?

2006-08-11 Thread Jan Vissers

Maven 2.0.4

(Surefire) Aggregation doesn't seem to be working. I don't get a 
toplevel surefire report.

I do get surefire reports for each contained module.

Is this a known issue?

Note also that I need to use a 'site:stage -DstagingDirectory=' when 
creating the site, because otherwise the module links don't show up, and 
I have no visual way of navigating
to the actual module to view the surefire report. However doing that 
will disrupt the javadoc reporting - which is empty in that
case (See also my previous post: "link to module sites - and aggregated 
javadoc")


I'm beginning to think that multi module reporting is not 'ready for 
primetime' yet.
Multi module (aggregated) reporting is one of my main reasons to revisit 
maven.


Thanks for feedback,
Jan.

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



link to module sites - and aggregated javadoc

2006-08-11 Thread Jan Vissers

Maven 2.0.4.

Trying to create a site for multi module project where the module links 
are actually shown. Using the following command:


  site:stage -DstagingDirectory=

the module links are shown, but the aggregated javadoc page on the 
toplevel is empty.

Here is the reports section of my toplevel pom:

  
   
   
   org.apache.maven.plugins
   maven-javadoc-plugin
   
   true
   
   
   
   


The actual javadoc is generated within the original toplevel 
/target/site/apidocs

Looks like the javadoc is not copied to the site staging area.

Is this a known issue?

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



Re: Maven, Eclipse, SVN, J2EE and directory layout

2006-08-10 Thread Jan Vissers
I'm currently investigating the same thing, with 
http://maven.apache.org/guides/mini/guide-ide-eclipse.html as my point 
of reference. I just today created the desired structure - which indeed 
requires one 'complete' checkout in a client tool like TortoiseSVN, as 
suggested in the guide. From eclipse I use the flat layout.


I've just started with the journey and am especially interested in how 
the reporting (aggregation) is going to behave.


Jan.


jan_bar wrote:

Hi,

I have spent quite a time looking for good J2EE directory layout that will
work with maven, Eclipse and SVN (CVS). It's not clear to me how you solve
this problem. So far here are two options and their troubles:

1. Flat layout (parent POM folder is located next to EJB, WAR, ... folders).
This plays nice with Eclipse/SVN, but has troubles: maven1 cannot handle
this structure, maven2 plugins has issues with this structure (release
plugin), this is not standard layout

2. Almost flat layout (parent POM is one folder up from the EJB, WAR, ...
folders). This is maven2 recommended layout, but it doesn't fit into
Eclipse/SVN. Developers are required to use SVN/CVS clients to check out the
whole layout to some folder and then each EJB, WAR are linked into
workspace. You cannot use Eclipse CVS/SVN plugin to checkout the parent POM
without fiddling with files - moving checkouted files out of workspace
(possible space for errors).

3. ?

I don't like any of the two solutions, solution 2 will require to use
another CVS/SVN client (all developers must learn it) or to follow some
guidelines.

Thanks for any idea, 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]



Maven 2.0.4 - multi module reporting

2006-08-09 Thread Jan Vissers
I'm evaluating maven 2.0.4 and am wondering what the current 'state' is 
for multi module reporting. I've read that there are various issues with 
it. What I like to know is:


* does multi module reporting (aggregation) work for:
- surefire
- checkstyle
- jdepend
- javancss
- cobertura
- pmd
- jxr
   

* what are potential issues that I might have when performing reports on 
multi module projects?


Thanks.

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



Re: Offline documentation

2006-08-07 Thread Jan Vissers
Probably not the best way to do it, but I used 'Scrapbook' plugin for 
Firefox to get all the things I needed.


Paul Michael Reilly wrote:

As near as I can tell, all Maven2 reference documentation is on-line
accessible.  I find myself on vacation now with rare and low quality
on-line access.  Is there some way I can easily download documentation
for the Maven2 core and plugins?  I am about to go get the Mergere
book (pdf) but I was wondering if there is some other options?

Thanks,

-pmr

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



  


--
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)30 - 6940499
http://www.cumquat.nl

[EMAIL PROTECTED]
M +31 6 51 169 556



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



Re: "Multiple Module Project" + Eclipse + subversion

2006-08-04 Thread Jan Vissers
I stand corrected.

The thing I missed was to 're-establish' the connection with subversion.



> I'm ready to give up on this ... after numerous tries.
> It seems to me the documentation as stated in the guide is wrong. The
> -import existing projects- 'breaks' the connection the sources initially
> have with subversion.
>
> So as it says in the guide:
>
> "The result is equals to checking out the whole project from the command
> line, running mvn eclipse:eclipse and finally importing the projects into
> your eclipse workspace. In both cases you will be able to synchronize your
> changes using eclipse."
>
> Simply is not true!
> Can somebody confirm this,
> Thanks,
> Jan.
>
>
>> Hi,
>>
>> (Using Maven 2.0.4)
>>
>> I'm trying to figure out how to use a (Maven) multi module project in
>> Eclipse where Subversion is the SCM. Following the "Guide to using
>> Eclipse
>> with Maven 2.x" somehow doesn't do it for me.
>>
>> Things I don't understand:
>>
>> + why should I remove .project, .classpath ?
>>
>> + given the fact that I have indeed thrown about .project, .classpath
>> from the modules and have checked this in into subversion, how comes
>> that when I start a completely new workspace and import the modules
>> I end up with resources not being 'connected' anymore to subversion?
>>
>> + I've read somewhere that flattening the project layout, doesn't work
>> due
>> to issues with the Maven release plugin. From JIRA it seems this is
>> still
>> the case. Anyone now whether there are any workarounds for this and
>> if
>> their are other issues in flattening the layout?
>>
>> Thanks.
>> 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]
>
>



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



"Multiple Module Project" + Eclipse + subversion

2006-08-04 Thread Jan Vissers
I'm ready to give up on this ... after numerous tries.
It seems to me the documentation as stated in the guide is wrong. The
-import existing projects- 'breaks' the connection the sources initially
have with subversion.

So as it says in the guide:

"The result is equals to checking out the whole project from the command
line, running mvn eclipse:eclipse and finally importing the projects into
your eclipse workspace. In both cases you will be able to synchronize your
changes using eclipse."

Simply is not true!
Can somebody confirm this,
Thanks,
Jan.


> Hi,
>
> (Using Maven 2.0.4)
>
> I'm trying to figure out how to use a (Maven) multi module project in
> Eclipse where Subversion is the SCM. Following the "Guide to using Eclipse
> with Maven 2.x" somehow doesn't do it for me.
>
> Things I don't understand:
>
> + why should I remove .project, .classpath ?
>
> + given the fact that I have indeed thrown about .project, .classpath
> from the modules and have checked this in into subversion, how comes
> that when I start a completely new workspace and import the modules
> I end up with resources not being 'connected' anymore to subversion?
>
> + I've read somewhere that flattening the project layout, doesn't work due
> to issues with the Maven release plugin. From JIRA it seems this is
> still
> the case. Anyone now whether there are any workarounds for this and if
> their are other issues in flattening the layout?
>
> Thanks.
> 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]



"Multiple Module Project" + Eclipse + subversion

2006-08-04 Thread Jan Vissers
Hi,

(Using Maven 2.0.4)

I'm trying to figure out how to use a (Maven) multi module project in
Eclipse where Subversion is the SCM. Following the "Guide to using Eclipse
with Maven 2.x" somehow doesn't do it for me.

Things I don't understand:

+ why should I remove .project, .classpath ?

+ given the fact that I have indeed thrown about .project, .classpath
from the modules and have checked this in into subversion, how comes
that when I start a completely new workspace and import the modules
I end up with resources not being 'connected' anymore to subversion?

+ I've read somewhere that flattening the project layout, doesn't work due
to issues with the Maven release plugin. From JIRA it seems this is still
the case. Anyone now whether there are any workarounds for this and if
their are other issues in flattening the layout?

Thanks.
Jan


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



Using mvn to download jars to local repository (without pom/project)

2006-07-31 Thread Jan Galinski

Hi,

on a server, I want to use mvn (2.0.4) to manage a central jar repository.
Even non maven applications should benifit from this, beacause there
will be be on common repository from where to link commons, db-drivers
etc. Its not going to be a real mirror, merely an "on demand" storage
folder.

So my question is:  How can I (using the mvn cli) just download and
store a jar from the central repo to my local repo without creating a
fake project and a pom?



mvn download  -package=mysql -file=driver -version=3.10


Seems to be rather simple, but its hard to search for (maven,
download, jar, repository ... gives me anything but an answer to my
problem).

Any hint, sytnax, cli-line appreciated

thanks
Jan

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



Re: Doxia/site problems - FIXED

2006-05-22 Thread Jan Bartel

I fixed it locally, but as Codehaus is/was down it hasn't been
committed yet. We are working on getting the repository back
uptodate and it should be ok by tomorrow.

regards
Jan

Brett Porter wrote:

I didn't know there was another version out, but Jan had said it was
fixed in SVN the other day.

Jan - is this something that was fixed post-beta16, or are changes still 
needed?


Thanks,
Brett

On 20/05/06, Mark Hobson <[EMAIL PROTECTED]> wrote:

I had the problem with beta16 - that pom still has the codehaus repo 
definition:


http://www.ibiblio.org/maven2/org/mortbay/jetty/project/6.0.0beta16/project-6.0.0beta16.pom 



This then fails when trying to downloading jetty's servlet-api and
util modules.  Not sure whether this is a maven repo problem, jetty
problem or codehaus-being-down problem?  (Although it appears the
codehaus maven repo is back up now).

Mark

On 19/05/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> I believe it is fixed in beta15+
>
> On 5/19/06, Mark Hobson <[EMAIL PROTECTED]> wrote:
> > Regarding the jetty pom changes - was removing the codehaus repo
> > definition from the jetty-project pom a one-off fix for the repo 
being
> > down?  Since it's still an issue for projects depending on jetty6 
beta

> > != 12.
> >
> > Cheers,
> >
> > Mark
> >
> > On 16/05/06, Joerg Hohwiller <[EMAIL PROTECTED]> wrote:
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA1
> > >
> > > Brett Porter wrote:
> > > > Hi,
> > > Hello there,
> > > >
> > > > This should now be fixed. Please remove the following files 
from your

> > > > local repository to correct the issue:
> > > > 
org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-8/doxia-site-renderer-1.0-alpha-8.pom 


> > > >
> > > > org/mortbay/jetty/project/6.0.0beta15/project-6.0.0beta15.pom
> > > > 
org/apache/maven/plugins/maven-site-plugin/2.0-beta-5/maven-site-plugin-2.0-beta-5.pom 


> > > >
> > > Thanks for fixing the problem. Besides a missing pom and trouble 
with codehause,
> > > I got a little scared from the dependency chaos (see below) 
because if even the
> > > makers (masters?) of dependency management struggle with it what 
will even
> > > happen with the rest of the world (and the JSR about the Java 
Module System).

> > >
> > > But to be honest - maven2 is on its way and is doing great 
progress.
> > > So we cross fingers that things like this will not happen too 
often.
> > > But keep in mind that once you depend on a tool you expect to 
work it

> > > all time ;)
> > >
> > > Keep on going...
> > > Thanks
> > >   Jörg
> > >
> > > 
> > >
> > > Error transferring file
> > >   org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12
> > >
> > > from the specified remote repositories:
> > >   central (http://repo1.maven.org/maven2),
> > >   codehaus (http://dist.codehaus.org),
> > >   apache.snapshots 
(http://svn.apache.org/maven-snapshot-repository),

> > >   snapshots (http://snapshots.maven.codehaus.org/maven2)
> > > Path to dependency:
> > > 1) 
org.apache.maven.plugins:maven-site-plugin:maven-plugin:2.0-beta-5

> > > 2) org.mortbay.jetty:jetty:jar:6.0.0beta12
> > > 3) org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta12
> > >
> > > >
> > > > Cheers,
> > > > Brett
> > > >
> > > > 
-

> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -BEGIN PGP SIGNATURE-
> > > Version: GnuPG v1.4.2.2 (GNU/Linux)
> > > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> > >
> > > iD8DBQFEaktZmPuec2Dcv/8RApyOAJ9IusvT/BxiC8YgulD3KOcuswNi5wCcCQSZ
> > > YTTaHr0abagEGAhkHFOw14k=
> > > =L0xs
> > > -END PGP SIGNATURE-
> > >
> > > 
-

> > > 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]
> >
> >
>
> -
> 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]








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



Re: jetty6:run running slow?

2006-05-12 Thread Jan Bartel

Hi Dan,

Jetty6 is actually faster than jetty5. Are you saying it is slower
to start or slow in serving your app? It may be slower to start because
it first needs to build a virtual webapp out of your project.

regards
Jan

Dan Adams wrote:

I used to run my add in jetty 5 using the jettylauncher plugin. Now that
the project is in maven I'm using jetty6:run to run the app and it's
noticably slower. I think that the plugin is running in debug mode or
something. Anyone know a way to speed this up?




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



maven1, hbm2ddl: Why does this fail with a NullPointerException?

2006-05-12 Thread ir. ing. Jan Dockx

If this ant script works (it does):



==
  
  

  
  
  
  
  
  



  
  


  
  









  



  









  
==





Why then does this maven script fail with a NullPointerException? Any  
ideas?






==

  description="Create the directory structure needed for SQL  
database schema (DDL) generation from Hibernate .hbm files">


  

  

  


  
  

  
  

  

  

  
  description="Generate SQL database schema (DDL) from  
Hibernate .hbm files"
prereqs="java:compile,hbm2ddl:copy-hibernate- 
files,hbm2ddl:prepare-filesystem">
Generate SQL database schema (DDL) from Hibernate .hbm  
files

Hibernate config file: ${maven.hbm2ddl.config.path}
Destination file: ${maven.hbm2ddl.dbschema.path}

  

  
  

  
  Task defined
  
  

  

==


[EMAIL PROTECTED]:csmFrontEnd>maven hbm2ddl:generate
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

java:prepare-filesystem:

java:compile:
[echo] Compiling to /Volumes/Users/jand/Documents/eclipse/ 
workspace/csmFrontEnd/target/classes


hbm2ddl:copy-hibernate-files:
[echo] Copying Hibernate files to /Volumes/Users/jand/Documents/ 
eclipse/workspace/csmFrontEnd/target/classes


hbm2ddl:prepare-filesystem:

hbm2ddl:generate:
[echo] Generate SQL database schema (DDL) from Hibernate .hbm files
[echo] Hibernate config file: /Volumes/Users/jand/Documents/ 
eclipse/workspace/csmFrontEnd/src/java/hibernate.cfg.xml
[echo] Destination file: /Volumes/Users/jand/Documents/eclipse/ 
workspace/csmFrontEnd/target/schema/csmFrontEnd.schema.sql

[echo] Task defined

BUILD FAILED
File.. /Volumes/Users/jand/Documents/eclipse/workspace/ppw- 
project-settings/maven.xml

Element... ant:schemaexport
Line.. 308
Column 65
java.lang.NullPointerException
Total time: 7 seconds
Finished at: Fri May 12 17:06:02 CEST 2006


==


Position 308/65 is the closing '>' of the schemaexport tag.

The root cause exception:


==


java.lang.NullPointerException
at net.sf.hibernate.cfg.Configuration.addResource 
(Configuration.java:333)
at net.sf.hibernate.cfg.Configuration.doConfigure 
(Configuration.java:1027)
at net.sf.hibernate.cfg.Configuration.doConfigure 
(Configuration.java:983)
at net.sf.hibernate.cfg.Configuration.configure 
(Configuration.java:945)
at  
net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration 
(SchemaExportTask.java:186)
at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute 
(SchemaExportTask.java:135)

at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.commons.jelly.tags.ant.AntTag.doTag 
(AntTag.java:185)
at org.apache.commons.jelly.impl.TagScript.run 
(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run 
(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody 
(TagSupport.java:233)
at org.apache.commons.jelly.tags.util.AvailableTag.doTag 
(AvailableTag.java:110)
at org.apache.commons.jelly.impl.TagScript.run 
(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run 
(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag 
(MavenGoalTag.java:79)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag 
$MavenGoalAction.performAction(MavenGoalTag.java:110)

at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals 
(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals 
(MavenSession.java:263)

at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
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 com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)


==



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



Re: [m2] dependency scope and jetty

2006-05-09 Thread Jan Bartel

Hi Dan,

Try using a  for the plugin instead:


   org.mortbay.jetty
   maven-jetty6-plugin
   
   ...
   
   
 
 
 
 
 
   


On the scopes, the only source of info I know about is:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html


cheers
Jan

Dan Adams wrote:

I have a web app that I run in jetty using jetty6:run. The problem is
that I need hsqldb for the database. How do I specify the dependency so
that it won't get packaged? If i use 'provided' then it isn't in the
classpath when jetty launches. On an unrelated note, where can you find
a list of all the scopes?




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



[m2] [2.0.4] Property Management

2006-04-30 Thread Jan Willems

Hello there,

I am working on Maven 2 for quite a while now.  I like the tool a lot, it
helps the developers -and- the project leads.  It is a real gift.

I feel however that there is a (major?) issue with the propery management in
Maven.  In both the concept and the implementation.

{settings.xml}
The settings.xml seems to be the perfect place to put certain values
specificly for one (single) user for several projects.  Examples of such a
settings would be a SUbversion username or a database password.  Also the
settings.xml could contain specific proxy host and port values (and
authentication data for that single user).

{profiles.xml}
It is obvious that the settings.xml can not contain data for one single
project.  I feel that there must be specific file containing the different
values per project.  Indeed, the profiles.xml can be used to specify project
specific properties.  Sadly one can not use: 
myproperty = abc=def 
The the model parser will throw exceptions.  One has to use the
 in stead.  
This is not a good way to specify properties, I believe.

Also, property handling is not very powerful.  When specifying 4 properties:
mysql
localhost
3306
foobar
And trying to use these properties in the same profile:

jdbc:${database-type}://${database-host}:${database-port}/${database-name}

The ${database-url} would return jdbc:null://null:null/null

{model needs improvement}
Also the profile.xml model is tiny.  A profile only contains properties and
activation elements (and reposiotories - but they do not take part in this
property handling topic).  This is far too little: it would be good to be
able to specify much more in a profile (almost as much as in a regular om
model, I would assume).  Also conditional execution would be handy in the
profile.xml.

Say we are building a war that should run on several application servers. 
One could specify several plugins to start|stop|deploy|undeploy the web
server or activate or deactivate the built application in the pom.xml.  This
would result in a pom.xml that is too big and incomplete.  It would be much
nicer to be able to add plugins when certain properties are set.  For
example, one could specify webserver.name = jetty6x in a
${project.name}.properties file (or in the upgraded profile.xml).   When
such a file read by Maven (before processing the pom.xml) the pom could be
filled with extra (conditional) plugins following the guidelines in the
${project.name}.properties (or profiles.xml) file.  

The same example can be given regarding database access.

[I know some issues could arrise as specified in
http://maven.apache.org/guides/introduction/introduction-to-profiles.html,
at the 'profile pitfalls' section.  Solution can be found for this.]

Many property handling issues (related to this rant) can be found:
http://www.nabble.com/-m2-property-filtering-at-runtime-question-t1296364.html#a3451790
http://www.nabble.com/conditionally-loading-property-files-t1412492.html#a3806540
http://www.nabble.com/Maven-2.0.4-problem-with-properties-t1445796.html#a3905175
http://www.nabble.com/maven-2-specify-properties-file-t461893.html#a1260787
http://www.nabble.com/Maven-properties-inside-java-code-t209452.html#a584456

Maven 2 is indeed much cleaner, more elegant and more powerful, but Ant's
property management is plainly better designed and implemented, I believe.  

Any remarks on this?  
I might be totally of mark.  Am I?
Jan

--
View this message in context: 
http://www.nabble.com/-m2-2.0.4-Property-Management-t1533316.html#a4165556
Sent from the Maven - Users forum at Nabble.com.


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



Re: Jetty and Commons logging dependency

2006-04-26 Thread Jan Bartel

If it works under eclipse, it should work under Maven. It sounds
like maybe you didn't do a clean rebuild under Maven and the
join() is still in there.

FYI, please find attached a sample test case that works just
find under Maven.

cheers
Jan


Julien Henry wrote:


Sorry if I wasn't clear, but I tried without 
server.getThreadPool().join(), and even if it works with junit eclipse 
module, it doesn't work with Maven.


Thanks for the site, but I already read it, and it wasn't as clear as 
your short exemple.


Jan Bartel a écrit :


Julien,

Sorry, my mistake. You don't need the server.getThreadPool().join().
Just get rid of it and things should work fine.

BTW: If you want JSP support you'll also need to add a 
test dependency for the version of jsp you want to 
support: 2.0 or 2.1. So you'll need a dependency for either 
groupId=org.mortbay.jetty artifactId=jsp-2.0 or 
groupId=org.mortbay.jetty artifactId=jsp-2.1


Oh, and by the way, there is this kind of info on the jetty site:
http://docs.codehaus.org/display/JETTY/Embedding+Jetty

regards
Jan

Julien Henry wrote:



Thanks for this example. It's exactly what I hoped to find on Jetty 
website.


But I first tried to run the tests with Eclipse, and the process 
hangs indefinitly on "server.getThreadPool().join(); "
I tried to remove this line, and tests are now running fine under 
eclipse.


But with Maven, I doesn't work. I can see :
---
T E S T S
---
[surefire] Running net.sourceforge.jwebunit.AllTestsHtmlUnit
:INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
:INFO:  NO JSP Support for /jwebunit, did not find 
org.apache.jasper.servlet.JspServlet

:INFO:  Started SelectChannelConnector @ 0.0.0.0:8082

and the only way to stop this is to press [Ctrl]+[C]
:INFO:  Shutdown hook executing
:INFO:  Shutdown hook complete
Terminer le programme de commandes (O/N) ? o

How can I make the tests running with Maven ?

Thanks

Julien

Jan Bartel a écrit :


Julien,

You're not starting jetty6 correctly in the JettySetup setup() method.
You need to do:

Server server = new Server();
XmlConfiguration xmlConfiguration = new XmlConfiguration(jettyConfig);
xmlConfiguration.configure(server);
server.start();
server.getThreadPool().join();


Instead of running jetty once for all the test cases, you could do a 
startup and shutdown of Jetty in the individual TestCase setUp()

and tearDown() methods, and have the surefire plugin run **/*Test.java

cheers
Jan


Julien Henry wrote:



Hi Jan,

Here is currently how it works. I have many JUnit tests. These 
tests are grouped in a test suite called AllTests.java this way :

public class AllTests extends TestSuite {
   public static Test suite() {
   TestSuite suite = new TestSuite();
 suite.addTestSuite(NavigationTest.class);
   suite.addTestSuite(WebAssertionsTest.class);
   

   return new JettySetup(suite);
   }

   public static void main(String[] args) {
   junit.textui.TestRunner.run(suite());
   }
}

JettySetup is used to launch Jetty only one time before all tests, 
and to close it after :

public class JettySetup extends TestSetup {
   private Server jettyServer = null;

   public void setUp() {
   try {
   URL jettyConfig = JettySetup.class
   .getResource("/jetty-test-config.xml");
   if(jettyConfig==null) {
   fail("Unable to locate jetty-test-config.xml on the 
classpath");

   }
   jettyServer = new Server(jettyConfig);
   jettyServer.start();
   } catch (Exception e) {
   e.printStackTrace();
   fail("Could not start the Jetty server: " + e);
   }
   }

   public void tearDown() {
   try {
   jettyServer.stop();
   } catch (InterruptedException e) {
   e.printStackTrace();
   fail("Jetty server was interrupted: " + e);
   }
   }
}

With Maven 2, I only select AllTests as test to be launched :

   maven-surefire-plugin
   
   
   **/AllTests.java
   
   


But I see a few drawbacks to this configuration :
 - I don't have the detail of each test in Maven report (due to 
Surefire bug I think) :

 >> [INFO] Generate "Maven Surefire Report" report.
 >> java.lang.NumberFormatException: For input string: "25,814"
 >>at 
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)

 >> ...
 >> java.lang.NullPointerException
 >>at 
org.codehaus.mojo.surefire.SurefireReportGenerator.constructTestCasesSection(SurefireReportGenerator.java:344) 



 - I would like to run all tests 2 times, with a different 
parameter, but without restarting Jetty. And if I can have a clear 
report t

Re: Jetty and Commons logging dependency

2006-04-26 Thread Jan Bartel

Julien,

Sorry, my mistake. You don't need the server.getThreadPool().join().
Just get rid of it and things should work fine.

BTW: If you want JSP support you'll also need to add a 
test dependency for the version of jsp you 
want to support: 2.0 or 2.1. So you'll need a dependency for 
either groupId=org.mortbay.jetty artifactId=jsp-2.0 
or groupId=org.mortbay.jetty artifactId=jsp-2.1


Oh, and by the way, there is this kind of info on the jetty site:
http://docs.codehaus.org/display/JETTY/Embedding+Jetty

regards
Jan

Julien Henry wrote:


Thanks for this example. It's exactly what I hoped to find on Jetty 
website.


But I first tried to run the tests with Eclipse, and the process hangs 
indefinitly on "server.getThreadPool().join(); "

I tried to remove this line, and tests are now running fine under eclipse.

But with Maven, I doesn't work. I can see :
---
T E S T S
---
[surefire] Running net.sourceforge.jwebunit.AllTestsHtmlUnit
:INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
:INFO:  NO JSP Support for /jwebunit, did not find 
org.apache.jasper.servlet.JspServlet

:INFO:  Started SelectChannelConnector @ 0.0.0.0:8082

and the only way to stop this is to press [Ctrl]+[C]
:INFO:  Shutdown hook executing
:INFO:  Shutdown hook complete
Terminer le programme de commandes (O/N) ? o

How can I make the tests running with Maven ?

Thanks

Julien

Jan Bartel a écrit :


Julien,

You're not starting jetty6 correctly in the JettySetup setup() method.
You need to do:

Server server = new Server();
XmlConfiguration xmlConfiguration = new XmlConfiguration(jettyConfig);
xmlConfiguration.configure(server);
server.start();
server.getThreadPool().join();


Instead of running jetty once for all the test cases, you could do a 
startup and shutdown of Jetty in the individual TestCase setUp()

and tearDown() methods, and have the surefire plugin run **/*Test.java

cheers
Jan


Julien Henry wrote:



Hi Jan,

Here is currently how it works. I have many JUnit tests. These tests 
are grouped in a test suite called AllTests.java this way :

public class AllTests extends TestSuite {
   public static Test suite() {
   TestSuite suite = new TestSuite();
 suite.addTestSuite(NavigationTest.class);
   suite.addTestSuite(WebAssertionsTest.class);
   

   return new JettySetup(suite);
   }

   public static void main(String[] args) {
   junit.textui.TestRunner.run(suite());
   }
}

JettySetup is used to launch Jetty only one time before all tests, 
and to close it after :

public class JettySetup extends TestSetup {
   private Server jettyServer = null;

   public void setUp() {
   try {
   URL jettyConfig = JettySetup.class
   .getResource("/jetty-test-config.xml");
   if(jettyConfig==null) {
   fail("Unable to locate jetty-test-config.xml on the 
classpath");

   }
   jettyServer = new Server(jettyConfig);
   jettyServer.start();
   } catch (Exception e) {
   e.printStackTrace();
   fail("Could not start the Jetty server: " + e);
   }
   }

   public void tearDown() {
   try {
   jettyServer.stop();
   } catch (InterruptedException e) {
   e.printStackTrace();
   fail("Jetty server was interrupted: " + e);
   }
   }
}

With Maven 2, I only select AllTests as test to be launched :

   maven-surefire-plugin
   
   
   **/AllTests.java
   
   


But I see a few drawbacks to this configuration :
 - I don't have the detail of each test in Maven report (due to 
Surefire bug I think) :

 >> [INFO] Generate "Maven Surefire Report" report.
 >> java.lang.NumberFormatException: For input string: "25,814"
 >>at 
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)

 >> ...
 >> java.lang.NullPointerException
 >>at 
org.codehaus.mojo.surefire.SurefireReportGenerator.constructTestCasesSection(SurefireReportGenerator.java:344) 



 - I would like to run all tests 2 times, with a different parameter, 
but without restarting Jetty. And if I can have a clear report that 
show the number of success/failure for each value of the parameter, 
it would be perfect.


Jan Bartel a écrit :


Julien,

Embedding Jetty6 is pretty simple. The jetty.xml config file is written
in a straightforward mapping from the java API to xml syntax. There 
is the

beginnings of a guide to embedding jetty also on the wiki at:
 http://docs.codehaus.org/display/JETTY/Embedding+Jetty

Jetty is often used in the unit tests of other projects - a jetty 
Server

instance is started in the test setup and stopped in the test teardown.

However, if you w

Re: Jetty and Commons logging dependency

2006-04-25 Thread Jan Bartel

Julien,

You're not starting jetty6 correctly in the JettySetup setup() method.
You need to do:

Server server = new Server();
XmlConfiguration xmlConfiguration = new XmlConfiguration(jettyConfig);
xmlConfiguration.configure(server);
server.start();
server.getThreadPool().join();


Instead of running jetty once for all the test cases, you could do 
a startup and shutdown of Jetty in the individual TestCase setUp()

and tearDown() methods, and have the surefire plugin run **/*Test.java

cheers
Jan


Julien Henry wrote:


Hi Jan,

Here is currently how it works. I have many JUnit tests. These tests are 
grouped in a test suite called AllTests.java this way :

public class AllTests extends TestSuite {
   public static Test suite() {
   TestSuite suite = new TestSuite();
 suite.addTestSuite(NavigationTest.class);
   suite.addTestSuite(WebAssertionsTest.class);
   

   return new JettySetup(suite);
   }

   public static void main(String[] args) {
   junit.textui.TestRunner.run(suite());
   }
}

JettySetup is used to launch Jetty only one time before all tests, and 
to close it after :

public class JettySetup extends TestSetup {
   private Server jettyServer = null;

   public void setUp() {
   try {
   URL jettyConfig = JettySetup.class
   .getResource("/jetty-test-config.xml");
   if(jettyConfig==null) {
   fail("Unable to locate jetty-test-config.xml on the 
classpath");

   }
   jettyServer = new Server(jettyConfig);
   jettyServer.start();
   } catch (Exception e) {
   e.printStackTrace();
   fail("Could not start the Jetty server: " + e);
   }
   }

   public void tearDown() {
   try {
   jettyServer.stop();
   } catch (InterruptedException e) {
   e.printStackTrace();
   fail("Jetty server was interrupted: " + e);
   }
   }
}

With Maven 2, I only select AllTests as test to be launched :

   maven-surefire-plugin
   
   
   **/AllTests.java
   
   


But I see a few drawbacks to this configuration :
 - I don't have the detail of each test in Maven report (due to Surefire 
bug I think) :

 >> [INFO] Generate "Maven Surefire Report" report.
 >> java.lang.NumberFormatException: For input string: "25,814"
 >>at 
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)

 >> ...
 >> java.lang.NullPointerException
 >>at 
org.codehaus.mojo.surefire.SurefireReportGenerator.constructTestCasesSection(SurefireReportGenerator.java:344) 



 - I would like to run all tests 2 times, with a different parameter, 
but without restarting Jetty. And if I can have a clear report that show 
the number of success/failure for each value of the parameter, it would 
be perfect.


Jan Bartel a écrit :


Julien,

Embedding Jetty6 is pretty simple. The jetty.xml config file is written
in a straightforward mapping from the java API to xml syntax. There is 
the

beginnings of a guide to embedding jetty also on the wiki at:
 http://docs.codehaus.org/display/JETTY/Embedding+Jetty

Jetty is often used in the unit tests of other projects - a jetty Server
instance is started in the test setup and stopped in the test teardown.

However, if you want to use the plugin instead, you simply include the 
relevant lines into your pom.xml file, and invoke it:


 mvn jetty6:run

When you want to stop it, you  it.

There is all the information on how to configure and run the plugin
here:

 http://jetty.mortbay.org/jetty6/maven-plugin/index.html


cheers
Jan



Julien Henry wrote:



Hi Jan,

I tried to migrate to Jetty 6, but there are too few doc about how to 
use embedded Jetty. I discovered that a Jetty6 plugin exists, and I 
think it could be a good thing to start jetty before the JUnit tests, 
and to stop Jetty after, because it exactly what I want. Do you know 
a simple way to do this ?


Thanks

Julien

Jan Bartel a écrit :


Hi Julien.


Jetty 5.x is built by ant, but the artifacts are made available on
ibiblio. The jetty5.x series, whilst the current stable series is
about to be superceded by the 6.x series.

Jetty 6.x is built by maven2 and has full poms with dependencies
listed which maven2 will transitively resolve for you.

I suggest you switch to jetty 6.x as 1) it is built by maven2 and
2) anyway has many many less dependencies.

cheers
Jan


Julien Henry wrote:



Hi,

I'm using Jetty to test my project. I have this in my pom (I use 
JSP) :


jetty
org.mortbay.jetty
5.1.10
test


jetty
jasper-runtime
4.2.20RC0
test


jetty
jasper-compiler
4.2.20RC0
test


But the server can't be launched. I discovered that Jetty need 
org.apache.commons-logging. So I added :


commons-logging
commons-logging
1.0.4
test


But why don't put commons-

Re: jetty out of memory reloading spring app

2006-04-22 Thread Jan Bartel

Dub,

Your ClassCast exceptions indicate that you have a class that
is loaded by your webapp's classloader (and therefore changes
on each redeploy) but that is set statically on some classes
that are in the system classpath (which doesn't change with
each redeploy).

I recently found a bug in the version of Jasper (Tomcat's JSP engine) 
that is also used by Jetty6. I've fixed it for Jetty and told

the Tomcat team about it. This may apply to you if you
are using JSPs and are using JDK1.5, so you may want to give
a recent SNAPSHOT of the plugin a whirl. Instructions on
that can be found from http://jetty.mortbay.org/jetty6/index.html

cheers
Jan

gdub wrote:

Stephen Duncan wrote:


Also look at the second question in this FAQ:
http://tomcat.apache.org/faq/deployment.html

It explains why reloading an app causes this problem to show up more 
quickly.


The description sounds like it would apply to any container that uses
multiple classloaders, not just Tomcat, so it's likely true for Jetty
as well.




That would explain it. I wonder why the
difficulty with releasing unreferenced
class loaders.


  -dub



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



Re: Jetty and Commons logging dependency

2006-04-21 Thread Jan Bartel

Julien,

Embedding Jetty6 is pretty simple. The jetty.xml config file is written
in a straightforward mapping from the java API to xml syntax. There is the
beginnings of a guide to embedding jetty also on the wiki at:
 http://docs.codehaus.org/display/JETTY/Embedding+Jetty

Jetty is often used in the unit tests of other projects - a jetty Server
instance is started in the test setup and stopped in the test teardown.

However, if you want to use the plugin instead, you simply include the 
relevant lines into your pom.xml file, and invoke it:


 mvn jetty6:run

When you want to stop it, you  it.

There is all the information on how to configure and run the plugin
here:

 http://jetty.mortbay.org/jetty6/maven-plugin/index.html


cheers
Jan



Julien Henry wrote:


Hi Jan,

I tried to migrate to Jetty 6, but there are too few doc about how to 
use embedded Jetty. I discovered that a Jetty6 plugin exists, and I 
think it could be a good thing to start jetty before the JUnit tests, 
and to stop Jetty after, because it exactly what I want. Do you know a 
simple way to do this ?


Thanks

Julien

Jan Bartel a écrit :


Hi Julien.


Jetty 5.x is built by ant, but the artifacts are made available on
ibiblio. The jetty5.x series, whilst the current stable series is
about to be superceded by the 6.x series.

Jetty 6.x is built by maven2 and has full poms with dependencies
listed which maven2 will transitively resolve for you.

I suggest you switch to jetty 6.x as 1) it is built by maven2 and
2) anyway has many many less dependencies.

cheers
Jan


Julien Henry wrote:



Hi,

I'm using Jetty to test my project. I have this in my pom (I use JSP) :

jetty
org.mortbay.jetty
5.1.10
test


jetty
jasper-runtime
4.2.20RC0
test


jetty
jasper-compiler
4.2.20RC0
test


But the server can't be launched. I discovered that Jetty need 
org.apache.commons-logging. So I added :


commons-logging
commons-logging
1.0.4
test


But why don't put commons-logging as a dependency of Jetty in the pom 
on ibiblio ?


Thanks

Julien

This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient, you are not authorized to read, print, 
retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.




-
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: Jetty and Commons logging dependency

2006-04-20 Thread Jan Bartel

Hi Julien.


Jetty 5.x is built by ant, but the artifacts are made available on
ibiblio. The jetty5.x series, whilst the current stable series is
about to be superceded by the 6.x series.

Jetty 6.x is built by maven2 and has full poms with dependencies
listed which maven2 will transitively resolve for you.

I suggest you switch to jetty 6.x as 1) it is built by maven2 and
2) anyway has many many less dependencies.

cheers
Jan


Julien Henry wrote:


Hi,

I'm using Jetty to test my project. I have this in my pom (I use JSP) :

 jetty
 org.mortbay.jetty
 5.1.10
 test
   
   
 jetty
 jasper-runtime
 4.2.20RC0
 test
   
   
 jetty
 jasper-compiler
 4.2.20RC0
 test
   

But the server can't be launched. I discovered that Jetty need 
org.apache.commons-logging. So I added :


 commons-logging
 commons-logging
 1.0.4
 test
   

But why don't put commons-logging as a dependency of Jetty in the pom on 
ibiblio ?


Thanks

Julien

This message contains information that may be privileged or confidential 
and is the property of the Capgemini Group. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient,  
you are not authorized to read, print, retain, copy, disseminate,  
distribute, or use this message or any part thereof. If you receive 
this  message in error, please notify the sender immediately and delete 
all  copies of this message.



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



Re: jetty out of memory reloading spring app

2006-04-20 Thread Jan Bartel

Hi dub,

The jetty maven plugin is up to release beta14
so I would give that a go and see if it helps
with your memory issue.  

We don't currently have any reported issues with 
out-of-memory problems for the plugin. The webapp

classloader is ditched and then re-created on
each restart so stuff loaded from the webapp's
dependencies and classes should not be leaking.

Are the spring jars explicitly on the plugin's 
classpath or are they as dependencies of the

project?

regards
Jan


gdub wrote:

I use the jetty6:run (6.0 beta 9) target
to launch Jetty with my web app under
integration.

It has a not-too-extensive Spring/Hibernate
configuration. Jetty detects code changes
just fine but after maybe 10 reloads, it
starts reporting out-of-memory problems
and refuses to reload. The machine isn't
out of memory so it's the JVM itself that
hits a wall.

Is this a known Jetty plug-in problem? Or
should I be looking for memory leaks in
Spring and Hibernate (or, e gads, my own
code). Is there something I need to
configure to make sure that Jetty releases
all app objects before reloading?

BTW, I also ran into out of memory
problems under surefire when running
integration tests but was able to solve
it by using a singleton Spring application
context as a class member. But it leads
me to think that my Spring context isn't
releasing everything when it stops being
referenced (closing the context and
explicitly setting all references to it
null helped me get about 10 more tests
in a run).

This is really only an issue during this
final integration phase so it's not too
big a deal but it does stop the thought
flow when it happens. It's also an appli-
cation confidence issue but I will do
some memory profiling later.


TIA,

  -dub



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



Re: problems with hot redeployment under jetty6 (maven2)

2006-04-15 Thread Jan Bartel

Burkhard,

First, as someone else mentioned, please post this on the
[EMAIL PROTECTED] However, while we're
all here 

What is going on inside the login jsp? Looks like some instance of a 
class that is loaded by the webapp class loader is being set on

a class that is loaded from the system classpath. This would mean
that the class that is loaded via the system classpath never 
changes with a webapp reload, but the class from your webapp

will change with every restart (because the classloader is
different, so you'll get ClassCast exceptions).

regards
Jan

Burkhard Graves wrote:

Hi folks,

I'm using the maven-jetty6-plugin (6.0.0beta14), usual Maven defaults.

"mvn jetty6:run" works fine, but if my webapp is redeployed (due to some
compiler run) I get the following exception(s):

[sorry for the long posting]

Any hints?

Classloader-stuff?

Regards,
Burkhard

[INFO] restarting
[EMAIL PROTECTED]
/hhs:INFO:  Closing WebApplicationContext of Spring FrameworkServlet 'hhs'
/hhs:INFO:  Closing Spring root WebApplicationContext
[INFO] Webapp source directory = /home/ego/workspace/hhs/src/main/webapp
[INFO] web.xml file =
/home/ego/workspace/hhs/src/main/webapp/WEB-INF/web.xml
[INFO] Classes = /home/ego/workspace/hhs/target/classes
[INFO] Context path = /hhs
[INFO] Tmp directory = /home/ego/workspace/hhs/target/work
[INFO] Web defaults =  jetty default
[INFO] Webapp directory = /home/ego/workspace/hhs/src/main/webapp
[INFO] Classpath =
file:/home/ego/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar,file:/home/ego/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar,file:/home/ego/.m2/repository/taglibs/string/1.1.0/string-1.1.0.jar,file:/home/ego/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar,file:/home/ego/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar,file:/home/ego/.m2/repository/commons-dbutils/commons-dbutils/1.0/commons-dbutils-1.0.jar,file:/home/ego/.m2/repository/hibernate/hibernate/3.1.3/hibernate-3.1.3.jar,file:/home/ego/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar,file:/home/ego/.m2/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar,file:/home/ego/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar,file:/home/ego/.m2/repository/asm/asm/1.5.3/asm-1.5.3.jar,file:/home/ego/.m2/repository/commons-dbcp/commons-dbcp/1.2
 
.1/commons-dbcp-1.2.1.jar,file:/home/ego/.m2/repository/com/lowagie/itext/1.3.1/itext-1.3.
1.jar,file:/home/ego/.m2/repository/taglibs/standard/1.1.2/standard-1.1.2.jar,file:/home/ego/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar,file:/home/ego/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar,file:/home/ego/.m2/repository/mysql/mysql-connector-java/3.1.12/mysql-connector-java-3.1.12.jar,file:/home/ego/.m2/repository/commons-digester/commons-digester/1.7/commons-digester-1.7.jar,file:/home/ego/.m2/repository/pure_struts/struts/1.2.9/struts-1.2.9.jar,file:/home/ego/.m2/repository/c3p0/c3p0/0.9.0/c3p0-0.9.0.jar,file:/home/ego/.m2/repository/commons-fileupload/commons-fileupload/1.1/commons-fileupload-1.1.jar,file:/home/ego/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar,file:/home/ego/.m2/repository/ehcache/ehcache/1.1/ehcache-1.1.jar,file:/home/ego/.m2/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar,file:/home/ego/.m2/repository/javax/sql/jdbc-std
 
ext/2.0/jdbc-stdext-2.0.jar,file:/home/ego/.m2/repository/commons-collections/commons-coll
ections/2.1.1/commons-collections-2.1.1.jar,file:/home/ego/.m2/repository/cglib/cglib/2.1.3/cglib-2.1.3.jar,file:/home/ego/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar,file:/home/ego/.m2/repository/commons-io/commons-io/1.0/commons-io-1.0.jar,file:/home/ego/.m2/repository/org/springframework/spring/1.2.7/spring-1.2.7.jar,file:/home/ego/.m2/repository/commons-pool/commons-pool/1.2/commons-pool-1.2.jar,file:/home/ego/workspace/hhs/target/classes/
:INFO:  Finding env entries: size=0
:INFO:  Finding env entries: size=0
Sprint MVC:INFO:  Loading Spring root WebApplicationContext
Sprint MVC:INFO:  Loading WebApplicationContext for Spring
FrameworkServlet 'hhs'
[INFO] Restart completed at Fri Apr 14 22:07:24 CEST 2006
:WARN:  EXCEPTION
org.apache.jasper.JasperException: javax.el.ELException:
java.lang.IllegalArgumentException: [EMAIL PROTECTED]
at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:285)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:239)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:350)
at
org.mortbay.jetty.servlet.

Re: maven-jetty6-plugin

2006-04-06 Thread Jan Bartel

Rolf,

FYI.

I have added your instructions for running the jetty plugin
under the eclipse debugger as a FAQ entry on the jetty6 
site at:  
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse


I've credited your name.

regards
Jan

Rolf Strijdhorst wrote:

yes, there is just start maven with:
jetty6:run
but have in the environment tap of externaltools
a variable MAVEN_OPTS with content: -Xdebug -Xnoagent
-Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000

next run debug on port 4000 or the same portnumber as the address property
on the line above
if you also specify that the debugger is able to terminate the jvm then you
can reuse the debug session the next time you start jetty.

Rolf

On 12/26/05, Koen Maes <[EMAIL PROTECTED]> wrote:


maven jetty plugin works great but i would like to debug my webapp via
eclipse
is there any option - like tomcat : catalina.sh jpda start - to tell jetty
that it should open up a JPDA port so I can connect with eclipse remote
debugger ?


-
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: Jasper & Jetty

2006-03-28 Thread Jan Bartel

Wayne,

Does offline mode help?

 mvn jetty6:run -o 



cheers
Jan

Wayne Fay wrote:

Just generate them! ;-)

No really, this has been annoying to me as well... Not sure how we've
got artifacts in the official Maven repo without corresponding poms,
but I have noticed this for all (??) Tomcat 5.5.15 project files.

I believe there's a JIRA bug filed on this and someone from Tomcat
project is working on it...

Wayne


On 3/23/06, Boris Lenzinger <[EMAIL PROTECTED]> wrote:


I'm working with Jetty6 plugin and each time I execute the goal run on
maven-jetty6-plugin, it tries to download:
* jasper-compiler-5.5.15.pom
* jasper-runtime-5.5.15.pom

but none of them are available on any repository.
Since it sometimes blocks startup of jetty (until 1 minute I think), I
find it boring (sometimes it just passes and ignoring the problem).

Anyone knowns why those files are not available ?

Since repositories are here to supply this file, I don't want to build
the resource manually (to prevent an answer saying that I could just
generate them ;) )

Thanks in advance.

Boris

-
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: [m2] jetty6 plugin & log4j

2006-03-28 Thread Jan Bartel

David,

Sorry for the very late response. I've made some changes to the 
maven-jetty6-plugin recently that will make it a lot easier to 
substitute logging at runtime.


Currently, this is only checked in to svn, but I will push a snapshot
later today.

Here's a snippet from the documentation:

"Jetty itself has no dependencies on a particular logging framework, 
using a built-in logger which outputs to stderr. However, to allow jetty6 to 
integrate with other logging mechanisms, if an http://www.slf4j.org
log implementation is detected in the classpath, it will use it in 
preference to the built-in logger.


The JSP engine used by jetty6 does however have logging dependencies. 
If you are using JSP 2.0 (ie you are running in a JVM version < 1.5), 
the JSP engine depends on commons-logging. A default commons-logging 
logger will be provided by the plugin using a combination of the 
http://www.slf4j.org/manual.html and the http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html
implementation, which logs all messages INFO level and above.  
You can override this and provide your own commons-logging 
delegated logger by using a plugin :



 
   org.mortbay.jetty
   maven-jetty6-plugin
   
   ...
   
   
 
   commons-logging
   commons-logging
   1.0.4
 
 
   log4j
   log4j
   1.2.13
 
   
 


Alternatively, you can still bridge commons-logging to slf4j and 
just select a different SLF4J implementation by using a plugin  
and providing a different slf4j implementation jar:


 
   org.mortbay.jetty
   maven-jetty6-plugin
   
   ...
   
   
 
   org.slf4j
   nlog4j
   1.1.24
 
   
 


If you are using JSP2.1 (ie you are running in a JVM >= 1.5), then the 
JSP engine has no particular logging dependencies."



cheers
Jan



David Main wrote:

Hello all -

Could anyone help me to understand how to change the log level that  the 
maven-jetty6-plugin uses?  I would like to put debug logging  statements 
into my code, but then I can't seem to figure out how to  get the plugin 
to change from its default info level.  I would also  like to set 
different logging levels on package name.


Note also that I am using the Spring framework.  So first I tried  using 
its Log4jConfigListener web util class in web.xml and pointing  it at my 
log4j.properties file.  Info messages appeared indicating  that it was 
alive and had read my configuration:


   929 [main] INFO /myapp - Initializing Log4J from [/Users/davidm/ 
dev/myapp/src/main/resources/webapp/WEB-INF/log4j.properties]


But no changes were evident in the logged message, neither in format  
nor level.


Then I found a posting on Gmane that indicated you can give Jetty  your 
own log4j.properties file by configuring a systemProperty named  
"log4j.configuration", which I did in pom.xml.  Again, messages  
indicated that Jetty recognized my property setting:


   [INFO] Property log4j.configuration=/WEB-INF/log4j.properties was  set

but nothing seemed to change the way it logs.  In fact, two lines  later 
in the log, there is this message:


   2 [main] INFO org.mortbay.log - Logging to  
[EMAIL PROTECTED] via org.mortbay.log.Slf4jLog


Here's my (very simple) log4j.properties file:

   log4j.rootLogger=WARN, stdout

   log4j.appender.stdout=org.apache.log4j.ConsoleAppender
   log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
   log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c 
{1}:%L - %m%n


   log4j.logger.net.sf.hibernate=WARN
   log4j.logger.net.sf.hibernate.type=WARN
   log4j.logger.org.springframework=WARN

I read Jetty's tutorial on logging, but it :
http://www.mortbay.org/jetty/tut/logging.html

Finally, I gave the "-DDEBUG" and "-DDEBUG_PATTERNS=net.sf.hibernate"  a 
shot, but these too seemed to be ignored.


I get the feeling that I am clashing somehow with Jetty's own  logging.  
Can anyone help me unravel this?


Thanks
--David



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



C#

2006-01-11 Thread ir. ing. Jan Dockx
Does anybody have any experience with using maven with C# and Visual Studio? Are there best practices for directory layout, which files to store in CVS and which not, etcetera? Ok, I know a visual-studio plugin like the eclipse or netbeans plugin probably won't exist, but any experience would be helpful.


Met vriendelijke groeten,

Jan Dockx

PeopleWare NV - Head Office
Cdt.Weynsstraat 85 
B-2660 Hoboken 
Tel: +32 3 448.33.38 
Fax: +32 3 448.32.66 

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be/
http://www.mobileware.be/

smime.p7s
Description: S/MIME cryptographic signature


[m2] Jetty6 plugin new feature

2006-01-11 Thread Jan Bartel

Apologies for the noise, but as there's been some
discussion about the jetty6 plugin lately I thought
it may be useful to post this here:

A new snapshot release 20060111.124832-7 is available of Jetty6 and the
maven-jetty6-plugin from http://www.mortbay.com/maven2/snapshot/

The maven-jetty6-plugin contains the following changes:

+ you can optionally configure the location of the tmp directory 
  used by the webapp. The default is target/jetty-tmp.


+ it no longer barfs if there is no target/classes directory
  so webapps can be composed of eg jsp/html files only.

Full documentation for the plugin and all configurable properties
is available from http://jetty.mortbay.org/jetty6/

Feedback on the plugin is welcome and should be posted to the
[EMAIL PROTECTED] list.

thanks
Jan

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



Re: Optional dependencies

2006-01-01 Thread ir. ing. Jan Dockx
Ok,  but in the original mail, Jochen talks about the requirements of his _users_, not of the developers of the main project. And users of his users need those dependencies transitively …


On 1 Jan 2006, at 23:48, Brett Porter wrote:

The optional tag is *only* for the purposes of transitive
dependencies. It's not really intended for use in a real Maven build.

- Brett

On 1/2/06, ir. ing. Jan Dockx <[EMAIL PROTECTED]> wrote:
Frankly, I have no idea ;-). I knew the tag existed, but have no
experience with it yet, although I do recognize your problem (see
http://cvs.peopleware.be/training/maven/maven2/dependencies.html,
Issues). I briefly talked with Vincent Massol during JavaPolis (hi
Vincent -- nice chat), and he wasn't aware of this tag either.
Furthermore, I can't find any real documentation on this tag. It seems
like "somebody" saw the issue, added the tag, and left it there? I
hoped you would report back with some experience though ;-).

What is particularly puzzling to me, is how the  tag
interacts with the dependency scopes.


On 1 Jan 2006, at 20:39, Jochen Wiedmann wrote:

ir. ing. Jan Dockx wrote:

Have you tried the  tag for the dependency?

Thank you. To be honest, I wasn't aware of this tag.

Reading through the docs, I do, however, believe, that it is a partial
solution only, isn't it? I'd prefer a solution where Maven
automatically detects the presence or absence of some classes and
performs the required steps.


Jochen

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


Met vriendelijke groeten,

Jan Dockx

PeopleWare NV - Head Office
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be/
http://www.mobileware.be/




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


Met vriendelijke groeten,

Jan Dockx

PeopleWare NV - Head Office
Cdt.Weynsstraat 85 
B-2660 Hoboken 
Tel: +32 3 448.33.38 
Fax: +32 3 448.32.66 

PeopleWare NV - Branch Office Geel
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25

http://www.peopleware.be/
http://www.mobileware.be/


smime.p7s
Description: S/MIME cryptographic signature


<    1   2   3   4   5   >