Surefire System Properties not set?

2007-11-26 Thread Jimbog

Hi,
Im trying to pass a system property into surefire to override a coherence
cluster address, I have my surefire plugin configured as per.. 

http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html

build
plugins
plugin
groupIdorg.codehaus.mojo/groupId

artifactIdsurefire-report-maven-plugin/artifactId
configuration 
systemProperties
property
nametangosol.coherence.clusteraddress/name

value${tangosol.coherence.clusteraddress}/value
/property
property
nametangosol.coherence.clusterport/name
value${tangosol.coherence.clusterport}/value
/property
/systemProperties
/configuration
/plugin

And when my tests run, these properties are nowhere to be seen (see below),
causing my tests to fail.

Am I missing something here? I have tries setting the properties in
./m2/settings.xml and using -D at the mvn command line with no joy. Has
someone else overridden a coherence cluster address in maven run unit tests? 



?xml version=1.0 encoding=UTF-8 ?
testsuite errors=4 skipped=0 tests=4 time=5.463 failures=0
name=com.willhill.bcs.persistency.tangosol.LiabilityCacheDAOImplTest
  properties
property value=Java(TM) 2 Runtime Environment, Standard Edition
name=java.runtime.name/
property value=C:\Java\jdk1.5.0_12\jre\bin
name=sun.boot.library.path/
property value=1.5.0_12-b04 name=java.vm.version/
property value=Sun Microsystems Inc. name=java.vm.vendor/
property value=http://java.sun.com/; name=java.vendor.url/
property value=; name=path.separator/
property value=Java HotSpot(TM) Client VM name=java.vm.name/
property value=sun.io name=file.encoding.pkg/
property value=GB name=user.country/
property value=SUN_STANDARD name=sun.java.launcher/
property value= name=sun.os.patch.level/
property value=Java Virtual Machine Specification
name=java.vm.specification.name/
property value=C:\dev\whbcs\whbcs-liability\whbcs-liability-core
name=user.dir/
property value=1.5.0_12-b04 name=java.runtime.version/
property value=sun.awt.Win32GraphicsEnvironment
name=java.awt.graphicsenv/
property value=C:\dev\whbcs\whbcs-liability\whbcs-liability-core
name=basedir/
property value=C:\Java\jdk1.5.0_12\jre\lib\endorsed
name=java.endorsed.dirs/
property value=x86 name=os.arch/
property value=C:\Users\gustardj\AppData\Local\Temp\
name=java.io.tmpdir/
property value=
 name=line.separator/
property value=Sun Microsystems Inc.
name=java.vm.specification.vendor/
property value= name=user.variant/
property value=Windows Vista name=os.name/
property value=Cp1252 name=sun.jnu.encoding/
property
value=C:\Java\jdk1.5.0_12\jre\bin;.;C:\Windows\system32;C:\Windows;C:\Java\jdk1.5.0_12\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\Common Files\Roxio Shared\DLLShared\;C:\Program
Files\OpenSSH\bin;C:\Program
Files\Subversion\bin;C:\Java\jdk1.5.0_12\bin;C:\maven-2.0.6\bin;C:\Program
Files\TortoiseSVN\bin name=java.library.path/
property value=Java Platform API Specification
name=java.specification.name/
property value=49.0 name=java.class.version/
property value=HotSpot Client Compiler
name=sun.management.compiler/
property value=6.0 name=os.version/
property value=C:\Users\gustardj name=user.home/
property value=Europe/London name=user.timezone/
property value=sun.awt.windows.WPrinterJob
name=java.awt.printerjob/
property value=Cp1252 name=file.encoding/
property value=1.5 name=java.specification.version/
property value=gustardj name=user.name/
property
value=C:\Users\gustardj\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;C:\Users\gustardj\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Users\gustardj\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar;C:\Users\gustardj\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;C:\Users\gustardj\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;C:\Users\gustardj\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Users\gustardj\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Users\gustardj\.m2\repository\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar
name=java.class.path/
property value=1.0 

RE: Surefire System Properties not set?

2007-11-26 Thread Jimbog

Hi,
yes, we were only using the reports plugin, ive added the
maven-surefire-plugin and the system properties get passed through, I would
have thought the reports plugin would pass them in.



nicklist wrote:
 
 You are configuring the wrong plugin:
 
 On the webpage:
 
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 
 In your code:
 
   groupIdorg.codehaus.mojo/groupId
 artifactIdsurefire-report-maven-plugin/artifactId
 
 Hth,
 
 Nick Stolwijk
 
 
 -Original Message-
 From: Jimbog [mailto:[EMAIL PROTECTED]
 Sent: Mon 11/26/2007 3:40 PM
 To: users@maven.apache.org
 Subject: Surefire System Properties not set?
  
 
 Hi,
 Im trying to pass a system property into surefire to override a coherence
 cluster address, I have my surefire plugin configured as per.. 
 
 http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html
 
 build
   plugins
   plugin
   groupIdorg.codehaus.mojo/groupId
   
 artifactIdsurefire-report-maven-plugin/artifactId
   configuration 
   systemProperties
   property
   nametangosol.coherence.clusteraddress/name
   
 value${tangosol.coherence.clusteraddress}/value
   /property
   property
   nametangosol.coherence.clusterport/name
   value${tangosol.coherence.clusterport}/value
   /property
   /systemProperties
   /configuration
   /plugin
 
 And when my tests run, these properties are nowhere to be seen (see
 below),
 causing my tests to fail.
 
 Am I missing something here? I have tries setting the properties in
 /m2/settings.xml and using -D at the mvn command line with no joy. Has
 someone else overridden a coherence cluster address in maven run unit
 tests? 
 
 
 
 ?xml version=1.0 encoding=UTF-8 ?
 testsuite errors=4 skipped=0 tests=4 time=5.463 failures=0
 name=com.willhill.bcs.persistency.tangosol.LiabilityCacheDAOImplTest
   properties
 property value=Java(TM) 2 Runtime Environment, Standard Edition
 name=java.runtime.name/
 property value=C:\Java\jdk1.5.0_12\jre\bin
 name=sun.boot.library.path/
 property value=1.5.0_12-b04 name=java.vm.version/
 property value=Sun Microsystems Inc. name=java.vm.vendor/
 property value=http://java.sun.com/; name=java.vendor.url/
 property value=; name=path.separator/
 property value=Java HotSpot(TM) Client VM name=java.vm.name/
 property value=sun.io name=file.encoding.pkg/
 property value=GB name=user.country/
 property value=SUN_STANDARD name=sun.java.launcher/
 property value= name=sun.os.patch.level/
 property value=Java Virtual Machine Specification
 name=java.vm.specification.name/
 property value=C:\dev\whbcs\whbcs-liability\whbcs-liability-core
 name=user.dir/
 property value=1.5.0_12-b04 name=java.runtime.version/
 property value=sun.awt.Win32GraphicsEnvironment
 name=java.awt.graphicsenv/
 property value=C:\dev\whbcs\whbcs-liability\whbcs-liability-core
 name=basedir/
 property value=C:\Java\jdk1.5.0_12\jre\lib\endorsed
 name=java.endorsed.dirs/
 property value=x86 name=os.arch/
 property value=C:\Users\gustardj\AppData\Local\Temp\
 name=java.io.tmpdir/
 property value=
  name=line.separator/
 property value=Sun Microsystems Inc.
 name=java.vm.specification.vendor/
 property value= name=user.variant/
 property value=Windows Vista name=os.name/
 property value=Cp1252 name=sun.jnu.encoding/
 property
 value=C:\Java\jdk1.5.0_12\jre\bin;.;C:\Windows\system32;C:\Windows;C:\Java\jdk1.5.0_12\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
 Files\Common Files\Roxio Shared\DLLShared\;C:\Program
 Files\OpenSSH\bin;C:\Program
 Files\Subversion\bin;C:\Java\jdk1.5.0_12\bin;C:\maven-2.0.6\bin;C:\Program
 Files\TortoiseSVN\bin name=java.library.path/
 property value=Java Platform API Specification
 name=java.specification.name/
 property value=49.0 name=java.class.version/
 property value=HotSpot Client Compiler
 name=sun.management.compiler/
 property value=6.0 name=os.version/
 property value=C:\Users\gustardj name=user.home/
 property value=Europe/London name=user.timezone/
 property value=sun.awt.windows.WPrinterJob
 name=java.awt.printerjob/
 property value=Cp1252 name=file.encoding/
 property value=1.5 name=java.specification.version/
 property value=gustardj name=user.name/
 property
 value=C:\Users\gustardj\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7

Maven 2 tomcat plugin fatal error java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64

2007-11-15 Thread Jimbog

Hi,
I am trying to use the tomcat plugin to do a mvn tomcat:deploy, and get the
below stack trace..

I notice this was rased a bug against version 1.0-20061203.210544-5. 

http://jira.codehaus.org/browse/MOJO-812

But has been marked as fixed in  1.0-alpha-1, I am using  1.0-alpha-1, and
still get it.

Does anyone have a work around for this? 

[ERROR] FATAL ERROR
[INFO]

[INFO] org/apache/commons/codec/binary/Base64
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
at
org.codehaus.mojo.tomcat.TomcatManager.toAuthorization(TomcatManager.
java:699)
at
org.codehaus.mojo.tomcat.TomcatManager.invoke(TomcatManager.java:610)

at
org.codehaus.mojo.tomcat.TomcatManager.deployImpl(TomcatManager.java:
680)
at
org.codehaus.mojo.tomcat.TomcatManager.deploy(TomcatManager.java:302)

at org.codehaus.mojo.tomcat.DeployMojo.deployWar(DeployMojo.java:84)
at
org.codehaus.mojo.tomcat.AbstractDeployMojo.invokeManager(AbstractDep
loyMojo.java:83)
at
org.codehaus.mojo.tomcat.AbstractCatalinaMojo.execute(AbstractCatalin
aMojo.java:132)
at
org.codehaus.mojo.tomcat.AbstractWarCatalinaMojo.execute(AbstractWarC
atalinaMojo.java:59)

-- 
View this message in context: 
http://www.nabble.com/Maven-2-tomcat-plugin-fatal-error-java.lang.NoClassDefFoundError%3A-org-apache-commons-codec-binary-Base64-tf4814577s177.html#a13773524
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: Maven 2 tomcat plugin fatal error java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64

2007-11-15 Thread Jimbog

I extracted pom.xml from the jar file and renamed it to
tomcat-maven-plugin-1.0-alpha-1.pom
and put this file in
.m2\repository\org\codehaus\mojo\tomcat-maven-plugin\1.0-alpha-1. That fixed
that problem.

I now get [INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Java heap space
[INFO]

[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)
at
sun.net.www.http.PosterOutputStream.write(PosterOutputStream.java:61)

at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
)

Ive given more memory to tomcat and maven. It deploys the tomcat samle.war
fine, but the webapp im trying to deploy is 20MB because maven adds add the
dependency jars despite them having provided scope.

Can Maven run the Tomcat manager tasks? Hot deploying wars using ant takes a
few mins to set up.


-- 
View this message in context: 
http://www.nabble.com/Maven-2-tomcat-plugin-fatal-error-java.lang.NoClassDefFoundError%3A-org-apache-commons-codec-binary-Base64-tf4814577s177.html#a13778444
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: Make a Codehaus plugin works on a local configuration

2007-09-26 Thread Jimbog

Hi Romain,

I have finally got this to work, you have to call the dashboard plugin 
using 

mvn org.codehaus.mojo:dashboard-maven-plugin:1.0-SNAPSHOT:dashboard

As suggested by David Vicente here:-

http://jira.codehaus.org/browse/MOJO-899

Then in your local repository you have to install the plugin
under libs-snaphot and  plugins-snapshot, as maven seems to not download the
plugin snapshot from the plugins-snapshot directory in the local repository,
which seems odd. 

Anyway this set up seems to work fine locally. 

Id use ANT if I were you :o)

Cheers
James


RomainTaz wrote:
 
 Hi James,
 
 Sorry, but I didn't find any solution to solve this problem :(
 Thus, this plugin has been disabled on my configuration.
 Note that we still do not use Artifactory. So I can't tell you if this
 tool can solve this problem...
 
 If you have any idea...
 
 Regards.
 
 Romain
 



-- 
View this message in context: 
http://www.nabble.com/Make-a-Codehaus-plugin-works-on-a-local-configuration-tf4297606s177.html#a12900274
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: Make a Codehaus plugin works on a local configuration

2007-09-24 Thread Jimbog

Hi,

I have exactly the same error on the same plugin, we are using artifactory
locally and when the plugin is installed as a snapshot it frequently fails
to download and fails the build. Running maven with a -U seems to fix the
problem temporally.

Did you ever find a solution to this? Did using artifactory help?
Thanks
James 


RomainTaz wrote:
 
 - Sorry, my previous mail was not properly sent. Here is a clen version -
 
 Hi all,
 
 I need to use a plugin available from Codehaus sandbox (this plugin is
 dashboard-maven-plugin).
 
 As explained in the plugin page, I need to add the following lines in my
 settings.xml file:
 
 pluginRepositories
 pluginRepository
 idCodehaus Snapshots/id
   urlhttp://snapshots.repository.codehaus.org//url
 /pluginRepository
 /pluginRepositories
 
 With this information, the plugin works correctly.
 
 In my company, we use a global repository, which is currently a shared
 directory on a network drive.
 Thus, all users have the following settings.xml file:
 
 settings
 !--  Path to local repository. The default location is
 ~/.m2/repository --
 localRepositoryC:\m2\repository\/localRepository
  
 !--  Definition of mirror of Central Repository --
 mirrors
 mirror
 idglobal-repository/id
 nameGlobal repo/name
 urlfile://F:\...\repository/url
 mirrorOfcentral/mirrorOf
 /mirror
 /mirrors
  
 profiles
 profile
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 repositories
 repository
 idglobal-repository/id
 releases
 enabledtrue/enabled
 /releases
 snapshots
 enabledtrue/enabled
 /snapshots
 urlfile://F:\...\repository/url
 /repository
 /repositories
 /profile
 /profiles
  
 !-- Definition of Plugins groups created by our team. --
 pluginGroups
 pluginGroupmy.company.plugins/pluginGroup
 /pluginGroups
 /settings
 
 This repository is the mirror of the Global repository, and the users has
 no access to external repositories (Maven is not configured to access
 Internet on their computers).
 
 So, I added the plugin Dashboard-Report in our global repository. Now, in
 local configuration (i.e. with a settings.xml without external access),
 Maven is not able to retrieve this plugin. It throws the following error
 when I try to use it:
 
 The plugin 'org.apache.maven.plugins:maven-dashboard-report-plugin' does
 not exist or no valid version could be found
 
 I think that somewhere, in a XML metadata file, something is wrong,
 because Maven did not understand that the plugin is not a
 org.apache.maven.plugins (the prefix of this plugin is
 dashboard-report).
 
 What do I need to change in the settings.xml to make this plugin works in
 a local configuration?
 Or is there a good way to install this plugin in my global repository in
 order to work fine with local configuration?
 
 Note that we will move to Artifactory asap, but for the moment, I need a
 solution to make this plugin works with a repository based on a shared
 drive...
 
 Thanks for your help.
 
 ps: If you have any link, any information that clearly explains what Maven
 do with all metadata-*.xml, do not hesitate to share them :o)
 
 

-- 
View this message in context: 
http://www.nabble.com/Make-a-Codehaus-plugin-works-on-a-local-configuration-tf4297606s177.html#a12860071
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: Maven 2 dashboard-plugin clover historic report data missing

2007-09-07 Thread Jimbog

Issue for this is 

http://jira.codehaus.org/browse/MOJO-907

Thanks
James



dvicente wrote:
 
 Hi,
 
 yes it's true, i have the same bug.
 
 Could you create an issue on JIRA : http://jira.codehaus.org/browse/MOJO
 
 I will correct it this week-end and try to make a new snapshot release the
 next week.
 
 Keep me informed
 
 Best regards
 
 David
 
 
 
 Jimbog wrote:
 
 Great, thanks, let me know if you need anymore information.
 
 
 
 
 dvicente wrote:
 
 no error in the log file.
 
 I will do new tests with clover and i keep you informed.
 
 Best regards
 
 David
 
 Jimbog wrote:
 
 
 
 dvicente wrote:
 
 Hi,
 
 I'm the dashboard project leader.
 
 No, i haven't seen this error before.
 
 it must be a bug of dashboard plugin but could you do a mvn -e -X
 dashboard-report:dashboard and redirect the output to a log file and
 upload it as an attachment ?
 
 
 Jimbog wrote:
 
 Hi,
 I have an M2 multi project, with the dashboard plug-in amalgamating
 all of our clover, maven, checkstyle, pmd and cpd reports. The
 plug-in also  persists all the data for these reports.
 However, when I generate the historic html, the clover chart contains
 no data, despite the data being persisted in the database. All the
 other charts display data, and the clover reports are shown in the
 dash board report page.
 Is this a bug in the dashboard plugin? Has anyone else seen this ?
 
 Thanks
 James
 
 
 
  http://www.nabble.com/file/p12523267/historicClover.zip
 historicClover.zip 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-2-dashboard-plugin-clover-historic-report-data-missing-tf4392197s177.html#a12555844
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven 2 dashboard-plugin clover historic report data missing

2007-09-06 Thread Jimbog

Hi,
I have an M2 multi project, with the dashboard plug-in amalgamating all of
our clover, maven, checkstyle, pmd and cpd reports. The plug-in also 
persists all the data for these reports.
However, when I generate the historic html, the clover chart contains no
data, despite the data being persisted in the database. All the other charts
display data, and the clover reports are shown in the dash board report
page.
Is this a bug in the dashboard plugin? Has anyone else seen this ?

Thanks
James
-- 
View this message in context: 
http://www.nabble.com/Maven-2-dashboard-plugin-clover-historic-report-data-missing-tf4392197s177.html#a12522676
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: Maven 2 dashboard-plugin clover historic report data missing

2007-09-06 Thread Jimbog



dvicente wrote:
 
 Hi,
 
 I'm the dashboard project leader.
 
 No, i haven't seen this error before.
 
 it must be a bug of dashboard plugin but could you do a mvn -e -X
 dashboard-report:dashboard and redirect the output to a log file and
 upload it as an attachment ?
 
 
 Jimbog wrote:
 
 Hi,
 I have an M2 multi project, with the dashboard plug-in amalgamating all
 of our clover, maven, checkstyle, pmd and cpd reports. The plug-in also 
 persists all the data for these reports.
 However, when I generate the historic html, the clover chart contains no
 data, despite the data being persisted in the database. All the other
 charts display data, and the clover reports are shown in the dash
 board report page.
 Is this a bug in the dashboard plugin? Has anyone else seen this ?
 
 Thanks
 James
 
 
 
http://www.nabble.com/file/p12523267/historicClover.zip historicClover.zip 
-- 
View this message in context: 
http://www.nabble.com/Maven-2-dashboard-plugin-clover-historic-report-data-missing-tf4392197s177.html#a12523267
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: Maven 2 dashboard-plugin clover historic report data missing

2007-09-06 Thread Jimbog

Great, thanks, let me know if you need anymore information.




dvicente wrote:
 
 no error in the log file.
 
 I will do new tests with clover and i keep you informed.
 
 Best regards
 
 David
 
 Jimbog wrote:
 
 
 
 dvicente wrote:
 
 Hi,
 
 I'm the dashboard project leader.
 
 No, i haven't seen this error before.
 
 it must be a bug of dashboard plugin but could you do a mvn -e -X
 dashboard-report:dashboard and redirect the output to a log file and
 upload it as an attachment ?
 
 
 Jimbog wrote:
 
 Hi,
 I have an M2 multi project, with the dashboard plug-in amalgamating all
 of our clover, maven, checkstyle, pmd and cpd reports. The plug-in also 
 persists all the data for these reports.
 However, when I generate the historic html, the clover chart contains
 no data, despite the data being persisted in the database. All the
 other charts display data, and the clover reports are shown in the
 dash board report page.
 Is this a bug in the dashboard plugin? Has anyone else seen this ?
 
 Thanks
 James
 
 
 
  http://www.nabble.com/file/p12523267/historicClover.zip
 historicClover.zip 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-2-dashboard-plugin-clover-historic-report-data-missing-tf4392197s177.html#a12523913
Sent from the Maven - Users mailing list archive at Nabble.com.


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