CVS export produces duplicate folder structures

2009-02-16 Thread Busch Paul
Hi there,

I'm trying to use scm to export an XML Schema from cvs to generate
source code from it. As of now I can export the file but there are some
weirdnesses that keep me from using it in a real world application.

I use the following plugin configuration to export via scm:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.1/version
configuration
!--basedir./basedir--
connectionTypecustom/connectionType
!--workingDirectory./workingDirectory--

exportDirectorytarget\exported-sources\xsd/exportDirectory
connectionUrl
scm:cvs:pserver:user:passw...@host:/data/cvsroot/repository:my/schema/di
rectory/in/cvs
/connectionUrl
developerConnectionUrl
scm:cvs:pserver:user:passw...@host:/data/cvsroot/repository:my/schema/di
rectory/in/cvs
/developerConnectionUrl
scmVersionMY_BRANCH/scmVersion
scmVersionTypebranch/scmVersionType
includesschema.xsd/includes
/configuration
executions
execution
idExport schema files for generation/id
goals
goalexport/goal
/goals
phaseinitialize/phase
/execution
/executions
/plugin

The scm plugin is configured to execute its export goal automatically in
the initialize phase. I set both a connectionUrl and a
developerConnectionUrl because the repository I want to export from has
nothing to do with the repository used for my project. Therefore I also
set the connectionType to custom. Configuring the scmVersion and
scmVersionType seem to work well, too.

With the configuration above the build will succeed and the relevant
output from saying mvn initialize would be something like:

[INFO] Executing: cmd.exe /X /C cvs -z3 -f -d
:pserver:user:passw...@host:/dat
a/cvsroot/repository:my/schema/directory/in/cvs -q export -rMY_BRANCH -d
target
\exported-sources\xsd my/schema/directory/in/cvs
[INFO] Working directory: C:\checkout\myproj\target\exported-sources\xsd

The exported file will end up in
target/exported-sources/xsd/target/exported-sources/xsd instead of
target/exported-sources/xsd where I wanted them.

And this is where I don't understand the configuration any more:

(1) Whatever I do, when I use slashes instead of backslashes in
exportDirectory the build will fail. I'm on windows, so backslashes are
fine for me, but I thought to be cross platform compatible slashes would
be appropriate.
(2) Although basedir is not optional I can omit it with no problems.
Whatever value I set it to, it does not seem to get used anyway. Which
information should this parameter actually convey?
(3) The same for workingDirectory. It does not seem to get used either.
(4) The value from exportDirectory seems to get used twice, firstly as
the value -d parameter for the cvs command and secondly to chdir to the
working directory as can be seen from the second info message. This
might be the reason for the duplicated output directory structure.

Is there a bug in the cvs provider that causes the exportDirectory to be
used twice? Am I missing something? Or am I simply abusing the scm
plugin for things that I can't expect to work?
Any help will be highly appreciated.
Best Regards

Paul


Re: selenium-maven-plugin howto specifie multiple browsers

2009-02-16 Thread Martin Höller
Obviously I was wrong: according to [0], execution of a single plugin
multiple times is possible.

[0] http://article.gmane.org/gmane.comp.java.maven-plugins.mojo.user/1307

hth,
- martin

On 05 Feb 2009, Martin Höller wrote:

 Hi!
 
 Executing one plugin with different configurations in one phase seems to be 
 a common problem in maven. Problems usually occur with the 
 maven-antrun-plugin or the exec-maven-plugin, but as we see it could also 
 hit other plugins as well.
 
 I think(!) the only possibility you have is to use profiles to define the 
 configuration of your selenium plugin and run maven multiple times with 
 different profiles actived.
 
 hth,
 - martin
 
 On Thursday 05 February 2009 kukudas wrote:
  Hi thanks for your response. I want to run the Selenium tests as html
  suits in the integration-test lifecycle,  which works perfect but just in
  one browser. I thought that there is somehow a way to tell maven that he
  has to launch the tests in diffrend browsers aswell.
 
  Mick Knutson-4 wrote:
   I use TestNG to do this.
   I have my test method to start the server:
  
   *...@beforeclass(groups = {selenium })
   @Parameters(
   { selenium-server-address, browser-type,
   application-address }
   )
   protected void startSeleniumServer(String seleniumServerAddress,
   String browserType, String applicationAddress) throws Exception
   { log.info(Starting Selenium client);
   selenium = new DefaultSelenium(seleniumServerAddress,
   SeleniumServer.getDefaultPort(), browserType,
   applicationAddress);
   selenium.start();
   }*
  
   Then in my testng.xml:
  
  * test name=Acegi Login - IE
   parameter name=browser-type value=*iexplore/
  
   classes
   class name=com.baselogic.selenium.LoginTest/
   /classes
   /test*
  
  
   Note this is para-phrased. I actually need to write a blog on this. But
   hopefully this can help get you started.
  
  
   ---
   Thank You…
  
   Mick Knutson, President
  
   BASE Logic, Inc.
   Enterprise Architecture, Design, Mentoring  Agile Consulting
   p. (866) BLiNC-411: (254-6241-1)
   f. (415) 685-4233
  
   Website: http://baselogic.com
   Linked IN: http://linkedin.com/in/mickknutson
   Twitter: http://twitter.com/mickknutson
   Vacation Rental: http://tahoe.baselogic.com
   ---
  
   On Wed, Feb 4, 2009 at 8:55 AM, kukudas kukuda...@googlemail.com 
 wrote:
   hi,
  
   how can i run selenese command with more than one browser ? Atm i use
   browser*opera/browser for example. I couldn't find any hint in the
   documentation i hope somebody can help me.
  
   Thanks kukudas
   --
   View this message in context:
   http://www.nabble.com/selenium-maven-plugin-howto-specifie-multiple-br
  owsers-tp21830943p21830943.html Sent from the Maven - Users mailing
   list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
 
 



signature.asc
Description: PGP signature


NPE with mvn release:perform

2009-02-16 Thread Valerio Schiavoni
After a succesfull mvn release:prepare, i tried the next step (mvn
release:perform), and I got this stacktrace:

INFO] [ERROR] FATAL ERROR
[INFO] [INFO] 

[INFO] [INFO] null
[INFO] [INFO] 

[INFO] [INFO] Trace
[INFO] java.lang.NullPointerException
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.PathUtils.getRelativePath(PathUtils.java:83)
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.PathUtils.convertPath(PathUtils.java:43)
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.convertPath(DefaultDecorationModelInheritanceAssembler.java:334)
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.resolveLinkItemPaths(DefaultDecorationModelInheritanceAssembler.java:255)
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.mergeLinkItemLists(DefaultDecorationModelInheritanceAssembler.java:277)
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.assembleBodyInheritance(DefaultDecorationModelInheritanceAssembler.java:192)
[INFO]  at 
org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.assembleModelInheritance(DefaultDecorationModelInheritanceAssembler.java:83)
[INFO]  at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:253)
[INFO]  at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:527)
[INFO]  at 
org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:466)
[INFO]  at 
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:113)
[INFO]  at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
[INFO]  at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
[INFO]  at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
[INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:585)
[INFO]  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[INFO]  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[INFO]  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[INFO]  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Any idea on where the problem might come from ,and how to fix it?
How can I recover a clean status ? I still would like to perform the
release..how can I do that ?

Also, i have plenty of .releaseBackup files in my working directory...

mvn -version reports:
Maven version: 2.0.9
Java version: 1.5.0_16
OS name: mac os x version: 10.5.6 arch: i386 Family: unix

Thanks,
Valerio
-- 
http://www.linkedin.com/in/vschiavoni
http://jroller.com/vschiavoni


[ANNOUNCE] Sonar 1.6 released, enabling to manage thresholds on quality metrics

2009-02-16 Thread Olivier Gaudin

The Sonar team is pleased to announce the release of Sonar 1.6.

Sonar is an open source platform that manages java source code quality.

The new version focuses on the management of quality profiles. It is now
possible in Sonar to define thresholds, for example if the code coverage is
less than 35% or if complexity by class is greater than 40... and to get
notified through RSS feed when a threshold is reached.

Sonar integrates seamlessly the maven tools ecosystem.

The latest release is now available here
:http://sonar.codehaus.org/downloads/
Take a tour of latest features by looking at :
http://sonar.codehaus.org/sonar-16-in-screenshots/
Check the Sonar web site : http://sonar.codehaus.org
Sonar user mailing list: http://sonar.codehaus.org/support/

Thanks,
The Sonar team 
-- 
View this message in context: 
http://www.nabble.com/-ANNOUNCE--Sonar-1.6-released%2C-enabling-to-manage-thresholds-on-quality-metrics-tp22034395p22034395.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



how to set maven test:test JVM system properties?

2009-02-16 Thread Alexandr Khlystov
how to set maven test:test JVM system properties?

I've tried:
maven -Duser.language=ru -Duser.country=RU test:test

and
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.2/version
configuration
  systemProperties
property
  nameuser.language/name
  valueru/value
/property
property
  nameuser.country/name
  valueRU/value
/property
  /systemProperties
/configuration
  /plugin
/plugins

*but output log shows me*

TEST-***GeneralTestSuite.xml:

?xml version=1.0 encoding=UTF-8 ?
testsuite errors=0 failures=0 name=***GeneralTestSuite tests=9
time=8.141
  properties
property name=tomcat.manager.username value=admin/property
property name=systemScope value={java.runtime.name=Java(TM) SE
Runtime Environment ... *user.language=ru*/property
...
property *name=user.language value=en*/property
...

Here I see both en  ru, how should I fix this? to use only ru? And where
does Maven take en at all?

Thank you.


-- 

Best regards,
Alexandr Khlystov


code snippets in documentation

2009-02-16 Thread Giovanni Azua
Hi,

I wonder if there is a better code snippet solution than the Maven snippet
macro. I was thinking along the lines of java2html with coloring etc and
maybe linking to the source xrefs.

TIA,
Regards,
Giovanni



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



recurrent exception

2009-02-16 Thread Giovanni Azua
Hi,

I have lately seen this exception below recurrently popping out in my build.
Any clues?

TIA,
Regards,
Giovanni

[ERROR] DashboardUtils getDocument() SAXException:
org.xml.sax.SAXParseException: Premature end of file.
at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:23
9)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBu
ilderImpl.java:283)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDocument(DashBoa
rdUtils.java:886)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getTaglistReport(Da
shBoardUtils.java:834)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardMavenPr
oject(DashBoardUtils.java:308)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(
DashBoardReportMojo.java:280)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.
java:98)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo
cumentRenderer.java:139)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default
SiteRenderer.java:269)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe
nderer.java:101)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:597)
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)



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



jxr does not create cross links in multi-module project

2009-02-16 Thread Giovanni Azua
Hi,

My build pulls jxr 2.1. Although I set the aggregate parameter to true, I
still don't get linked cross module references say e.g.

Module A
Interface X

Module B (depends on A)
Class Y implements X

In the aggregate reports Class Y will not link to X.

Is this a known issue?

TIA,
Best regards,
Giovanni



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




Re: NPE with mvn release:perform

2009-02-16 Thread Valerio Schiavoni
btw,
i also opend a jira issue for this:
http://jira.codehaus.org/browse/DOXIASITETOOLS-16

On Mon, Feb 16, 2009 at 10:44 AM, Valerio Schiavoni 
valerio.schiav...@gmail.com wrote:

 After a succesfull mvn release:prepare, i tried the next step (mvn
 release:perform), and I got this stacktrace:

 INFO] [ERROR] FATAL ERROR
 [INFO] [INFO] 
 

 [INFO] [INFO] null
 [INFO] [INFO] 
 
 [INFO] [INFO] Trace
 [INFO] java.lang.NullPointerException
 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.PathUtils.getRelativePath(PathUtils.java:83)

 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.PathUtils.convertPath(PathUtils.java:43)
 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.convertPath(DefaultDecorationModelInheritanceAssembler.java:334)

 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.resolveLinkItemPaths(DefaultDecorationModelInheritanceAssembler.java:255)
 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.mergeLinkItemLists(DefaultDecorationModelInheritanceAssembler.java:277)

 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.assembleBodyInheritance(DefaultDecorationModelInheritanceAssembler.java:192)
 [INFO]at 
 org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.assembleModelInheritance(DefaultDecorationModelInheritanceAssembler.java:83)

 [INFO]at 
 org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:253)
 [INFO]at 
 org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getDecorationModel(AbstractSiteRenderingMojo.java:527)

 [INFO]at 
 org.apache.maven.plugins.site.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:466)
 [INFO]at 
 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:113)
 [INFO]at 
 org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)

 [INFO]at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
 [INFO]at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
 [INFO]at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)

 [INFO]at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
 [INFO]at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)

 [INFO]at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
 [INFO]at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

 [INFO]at 
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
 [INFO]at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
 [INFO]at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
 [INFO]at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 [INFO]at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [INFO]at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [INFO]at java.lang.reflect.Method.invoke(Method.java:585)

 [INFO]at 
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 [INFO]at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 [INFO]at 
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 [INFO]at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


 Any idea on where the problem might come from ,and how to fix it?
 How can I recover a clean status ? I still would like to perform the
 release..how can I do that ?

 Also, i have plenty of .releaseBackup files in my working directory...

 mvn -version reports:
 Maven version: 2.0.9
 Java version: 1.5.0_16
 OS name: mac os x version: 10.5.6 arch: i386 Family: unix

 Thanks,
 Valerio
 --
 http://www.linkedin.com/in/vschiavoni
 http://jroller.com/vschiavoni




-- 
http://www.linkedin.com/in/vschiavoni
http://jroller.com/vschiavoni


Deploy on shared internal repository

2009-02-16 Thread Jan Chodura

Hi,

can you help me what's wrong with my configuration for deploying app to 
JFrog artifactory?


On jfrog artifactory I have repository myAppsRepository.
I use eclipse 3.4 (but on the command line it's the same problem), maven 
2.0.9


settings.xml
settings
 servers
   server
 idmyRemoteRepository/id
 usernameuser/username
 passwordpassword/password
 /server
   /servers
/settings

pom.xml contains
repositories
   repository
   idiBbRepository/id
   url
   http://somewhere:8081/artifactory/myAppsRepository
   /url
   /repository
   /repositories

and

   distributionManagement
   repository
   idmyRemoteRepository/id
   nameRapper/name
   urlhttp://somewhere:8081/artifactory/myAppsRepository/url
   /repository
  /distributionManagement

And there is stacktrace:
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy' --

[DEBUG]   (f) artifact = cz.billboard:myApp:war:0.0.1
[DEBUG]   (f) attachedArtifacts = []
[DEBUG]   (f) deploymentRepository = [myRemoteRepository] - 
http://somewhere:8081/artifactory/myAppsRepository
[DEBUG]   (s) localRepository = [local] - file://C:\Documents and 
Settings\jach\.m2\repository

[DEBUG]   (f) packaging = war
[DEBUG]   (f) pomFile = C:\data\eclipse\projects\Application\pom.xml
[DEBUG]   (f) skip = false
[DEBUG]   (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [deploy:deploy]
Uploading: 
http://somewhere:8081/artifactory/myAppsRepository/cz/billboard//myApp/0.0.1/myApp-0.0.1.war

31394K uploaded
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Error deploying artifact: Error transferring file

Error writing to server
[INFO] 


[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying 
artifact: Error transferring file
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
   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:597)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error 
deploying artifact: Error transferring file
   at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)

   ... 16 more
Caused by: 
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error 
deploying artifact: Error transferring file
   at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
   at 
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)

   ... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error 
transferring file
   at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:178)
   at 
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:244)
   at 
org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:160)
   at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)

   ... 19 more
Caused by: java.io.IOException: Error writing to server
   at 
sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:453)
   at 

maven-eclipse-plugin

2009-02-16 Thread Dmitri Ilyin
Hallo,



i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short tries i
have found out that it only support WTP 1.5. The actual version of Eclipse
WTP is 3.x

After that i find that the last version of plugin is 10 month old.

What ist he status oft he plugin? Is it still in developing? If no, are
there any alternatives? I'm new in maven  and looking for eclipse support
for maven.



Thanks

Dmitri


RE: Multi module site deploy using file

2009-02-16 Thread Randall Fidler
Hi Dennis,

For both parent and child or just the child?  I can't understand
how having that extra '/' would have the child end up in the proper
location under the parent but I'll give it a whirl.  Currently I do not
have three slashes, just two.

Regards,

Randall

-Original Message-
From: Dennis Lundberg [mailto:denn...@apache.org] 
Sent: Sunday, February 15, 2009 8:18 AM
To: Maven Users List
Subject: Re: Multi module site deploy using file

Randall Fidler wrote:
 Hello,
 
  
 
 I have a multi-module project that seemed to deploy fine
 with SCP but not with FILE.  Inside settings.xml I've got a var which
 points to the local directory where the site files should be deployed
to
 and things work fine for the parent but not the child.
 
  
 
 Parent (1.0_SNAPSHOT)   (has site in dist mgmt set to
 file://${site.dir}/${project.artifactId}/${project.version}

Does ${site.dir} start with a / ?

A file URL normally has three /-characters, like this:

file:///directory/path

This is because the host is omitted from the URL.

 
  |
 
  |
 
  - Child (1.0_SNAPSHOT) 
 
  
 
 What happens is I end up with both sites in the same directory instead
 of the child being nested under the parent, which means that the link
in
 the modules section of the parent site has the wrong link for the
child
 site.  It thinks the child is at {parent site directory}/Child  but as
I
 said, the parent and child are at the same level.
 
  
 
 Suggestions?  As I said, the sites are structured properly deployed
 using SCP but with file it doesn't com out correctly.
 
  
 
 Regards,
 
  
 
 Randall
 
 


-- 
Dennis Lundberg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Deploy on shared internal repository

2009-02-16 Thread Yoav Landman
Hi,

Looks like you are failing on the different repo id/same repo url issue
(see:
http://wiki.jfrog.org/confluence/display/RTF/Configuring+Artifacts+Resolution,
bottom of the page). The corresponding server output would provide more
info.
Anyway, it's better to ask artifactory-specific questions on
artifactory-users (http://www.nabble.com/Artifactory-Users-f19964.html).

Thanks,

Yoav

2009/2/16 Jan Chodura jan.chod...@centrum.cz

 Hi,

 can you help me what's wrong with my configuration for deploying app to
 JFrog artifactory?

 On jfrog artifactory I have repository myAppsRepository.
 I use eclipse 3.4 (but on the command line it's the same problem), maven
 2.0.9

 settings.xml
 settings
  servers
   server
 idmyRemoteRepository/id
 usernameuser/username
 passwordpassword/password
 /server
   /servers
 /settings

 pom.xml contains
 repositories
   repository
   idiBbRepository/id
   url
   http://somewhere:8081/artifactory/myAppsRepository
   /url
   /repository
   /repositories

 and

   distributionManagement
   repository
   idmyRemoteRepository/id
   nameRapper/name
   urlhttp://somewhere:8081/artifactory/myAppsRepository/url
   /repository
  /distributionManagement

 And there is stacktrace:
 [DEBUG] Configuring mojo
 'org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy' --
 [DEBUG]   (f) artifact = cz.billboard:myApp:war:0.0.1
 [DEBUG]   (f) attachedArtifacts = []
 [DEBUG]   (f) deploymentRepository = [myRemoteRepository] -
 http://somewhere:8081/artifactory/myAppsRepository
 [DEBUG]   (s) localRepository = [local] - file://C:\Documents and
 Settings\jach\.m2\repository
 [DEBUG]   (f) packaging = war
 [DEBUG]   (f) pomFile = C:\data\eclipse\projects\Application\pom.xml
 [DEBUG]   (f) skip = false
 [DEBUG]   (f) updateReleaseInfo = false
 [DEBUG] -- end configuration --
 [INFO] [deploy:deploy]
 Uploading:
 http://somewhere:8081/artifactory/myAppsRepository/cz/billboard//myApp/0.0.1/myApp-0.0.1.war
 31394K uploaded
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error deploying artifact: Error transferring file

 Error writing to server
 [INFO]
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying
 artifact: Error transferring file
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
   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:597)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying
 artifact: Error transferring file
   at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
   at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
   ... 16 more
 Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException:
 Error deploying artifact: Error transferring file
   at
 org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)
   at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
   ... 18 more
 Caused by: org.apache.maven.wagon.TransferFailedException: Error
 transferring file
   at
 org.apache.maven.wagon.providers.http.LightweightHttpWagon.put(LightweightHttpWagon.java:178)
   at
 

Re: maven-eclipse-plugin

2009-02-16 Thread Martin Höller
Hi!

On 16 Feb 2009, Dmitri Ilyin wrote:

 i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short tries i
 have found out that it only support WTP 1.5. The actual version of Eclipse
 WTP is 3.x
 
 After that i find that the last version of plugin is 10 month old.

Accoring to a mail from last week, a new version is going to be released
in a couple of weeks.

 What ist he status oft he plugin? Is it still in developing? If no, are
 there any alternatives? I'm new in maven  and looking for eclipse support
 for maven.

Searching this list's archive would have given you links like this one:
http://www.nabble.com/Using-maven-with-eclipse-to21478705.html#a21478705

hth,
- martin


signature.asc
Description: PGP signature


[ANN] Appassembler Maven Plugin 1.0 Released

2009-02-16 Thread Erik Drolshammer

Hi,
The Mojo team is pleased to announce the release of the Appassembler 
Maven Plugin, version 1.0.


The Appassembler Maven Plugin provides goals to generate bin and Java 
Service Wrapper scripts and can extract dependencies needed for a 
distribution.


Site: http://mojo.codehaus.org/appassembler/appassembler-maven-plugin
Artifact: 
http://repository.codehaus.org/org/codehaus/mojo/appassembler-maven-plugin/1.0/ 



*Release Notes*

Some new configuration options have been added, and the documentation 
has been updated and extended. The following issues have been closed:


MAPPASM-77   	 Add ability to control of configuration directory 
(currently hardcoded to etc/)   	


MAPPASM-76  Add support for specifying default RUN_AS_USER in JSW mojo  

MAPPASM-75  Document how to use the JSW-functionality

MAPPASM-73 	Document how to use a wrapper script in combination with 
scripts generated by appassembler to support environment specific settings


MAPPASM-72  Test fails

MAPPASM-70 	Appassembler does not create correct relative paths for 
snapshot dependencies


MAPPASM-69 	Inconsistent test result for 
testDefaultJSWFilesIfNoGeneratorConfigurationsIsSet() in 
JavaServiceWrapperDaemonGeneratorTest.java





--
Best regards,
The Mojo team,
Erik Drolshammer

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven jaxb2-maven-plugin toString() generation

2009-02-16 Thread balderman

Hi
I am using jaxb2-maven-plugin in my pom file. (see below)
I would like to have toString() method on my generated pojo's.
I know that the java.net jaxb maven plugin support this kind of extension,
and I wonder if I can use it with the jaxb plugin that I am using.
Thanks
Avishay Balderman


pom.xml
~

groupIdorg.codehaus.mojo/groupId 
 artifactIdjaxb2-maven-plugin/artifactId 



-- 
View this message in context: 
http://www.nabble.com/Maven-jaxb2-maven-plugin-toString%28%29-generation-tp22038341p22038341.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-eclipse-plugin

2009-02-16 Thread Dmitri Ilyin
hi,
thanks Martin.

Can you provide an email here? or where can i find it?
Do you know which WTP version will be supported?

regards
Dmitri

2009/2/16 Martin Höller mar...@xss.co.at

 Hi!

 On 16 Feb 2009, Dmitri Ilyin wrote:

  i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short tries
 i
  have found out that it only support WTP 1.5. The actual version of
 Eclipse
  WTP is 3.x
 
  After that i find that the last version of plugin is 10 month old.

 Accoring to a mail from last week, a new version is going to be released
 in a couple of weeks.

  What ist he status oft he plugin? Is it still in developing? If no, are
  there any alternatives? I'm new in maven  and looking for eclipse support
  for maven.

 Searching this list's archive would have given you links like this one:
 http://www.nabble.com/Using-maven-with-eclipse-to21478705.html#a21478705

 hth,
 - martin



Re: maven-eclipse-plugin

2009-02-16 Thread Martin Höller
http://lmgtfy.com/?q=maven+eclipse+plugin+next+release

On 16 Feb 2009, Dmitri Ilyin wrote:

 hi,
 thanks Martin.
 
 Can you provide an email here? or where can i find it?
 Do you know which WTP version will be supported?
 
 regards
 Dmitri
 
 2009/2/16 Martin Höller mar...@xss.co.at
 
  Hi!
 
  On 16 Feb 2009, Dmitri Ilyin wrote:
 
   i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short tries
  i
   have found out that it only support WTP 1.5. The actual version of
  Eclipse
   WTP is 3.x
  
   After that i find that the last version of plugin is 10 month old.
 
  Accoring to a mail from last week, a new version is going to be released
  in a couple of weeks.
 
   What ist he status oft he plugin? Is it still in developing? If no, are
   there any alternatives? I'm new in maven  and looking for eclipse support
   for maven.
 
  Searching this list's archive would have given you links like this one:
  http://www.nabble.com/Using-maven-with-eclipse-to21478705.html#a21478705
 
  hth,
  - martin
 



signature.asc
Description: PGP signature


Re: maven-eclipse-plugin

2009-02-16 Thread Jason van Zyl

http://m2eclipse.sonatype.org/

On 16-Feb-09, at 8:49 AM, Dmitri Ilyin wrote:


Hallo,



i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short  
tries i
have found out that it only support WTP 1.5. The actual version of  
Eclipse

WTP is 3.x

After that i find that the last version of plugin is 10 month old.

What ist he status oft he plugin? Is it still in developing? If no,  
are
there any alternatives? I'm new in maven  and looking for eclipse  
support

for maven.



Thanks

Dmitri


Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

  -- Jacques Ellul, The Technological Society


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-eclipse-plugin

2009-02-16 Thread Dmitri Ilyin
well, this is an eclipse plugin, i need maven plugin.

2009/2/16 Jason van Zyl jvan...@sonatype.com

 http://m2eclipse.sonatype.org/




RE: maven-eclipse-plugin

2009-02-16 Thread Winterflood, Jonathan
Hi,

Depending on what you're trying to do, it should do the job:

I imagine you want Maven to tell Eclipse where to find the dependencies etc.
Maven-eclipse-plugin did that by generating a .classpath file.
m2eclipse installs in Eclipse and tells it what to do without having to refresh 
the project every time.

However, m2eclipse uses an embedded install of Maven, not the machine-installed 
one, but you can tell it where to look for the config files.

Does this sound adequate? What is your particular requirement?

Cheers,
Jonathan Winterflood

-Message d'origine-
De : Dmitri Ilyin [mailto:ilyin.dmi...@googlemail.com] 
Envoyé : lundi 16 février 2009 16:54
À : Maven Users List
Objet : Re: maven-eclipse-plugin

well, this is an eclipse plugin, i need maven plugin.

2009/2/16 Jason van Zyl jvan...@sonatype.com

 http://m2eclipse.sonatype.org/



On 16-Feb-09, at 8:49 AM, Dmitri Ilyin wrote:

 Hallo,



 i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short 
 tries i have found out that it only support WTP 1.5. The actual 
 version of Eclipse WTP is 3.x

 After that i find that the last version of plugin is 10 month old.

 What ist he status oft he plugin? Is it still in developing? If no, 
 are there any alternatives? I'm new in maven  and looking for eclipse 
 support for maven.



 Thanks

 Dmitri






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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Anyone? Snapshots repositories, how should they work?

2009-02-16 Thread Kent Närling
Anyone give me a pointer regarding this? please?

Is it a very stupid question... ? :-(

-- Forwarded message --
From: Kent Närling kent.narl...@seamless.se
Date: 2009/2/11
Subject: Snapshots repositories, how should they work?
To: Maven Users List users@maven.apache.org


This might be a newbie question, bit I have tried to find documentation
explaining how snapshot repositories should work... can anyone give me a
pointer?

We have an internal repository (nexus) and a build server (continuum) which
works fine with released artifacts etc

However I cannot get automatic download of snapshot dependencies to work
successfully...?

I have added a snapshot-enabled repository to my settings and it does try to
download it, but it seems it gets the timestamp/build number incorrect all
the time!

For instance, I can see that maven is trying to download:
Downloading:
http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000500-295.pom

But when I check the repo manually, the latest snapshot was  actually named:
http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom

What am I doing wrong?





-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: kent.narl...@seamless.se
www.seamless.se


Re: Anyone? Snapshots repositories, how should they work?

2009-02-16 Thread Nick Stolwijk
http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom

Seeing you have a special directory for poms it looks like you have a
legacy repository defined. Maybe that goes wrong?

Hth,

Nick Stolwijk
~Java Developer~

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



On Mon, Feb 16, 2009 at 5:44 PM, Kent Närling kent.narl...@seamless.se wrote:
 Anyone give me a pointer regarding this? please?

 Is it a very stupid question... ? :-(

 -- Forwarded message --
 From: Kent Närling kent.narl...@seamless.se
 Date: 2009/2/11
 Subject: Snapshots repositories, how should they work?
 To: Maven Users List users@maven.apache.org


 This might be a newbie question, bit I have tried to find documentation
 explaining how snapshot repositories should work... can anyone give me a
 pointer?

 We have an internal repository (nexus) and a build server (continuum) which
 works fine with released artifacts etc

 However I cannot get automatic download of snapshot dependencies to work
 successfully...?

 I have added a snapshot-enabled repository to my settings and it does try to
 download it, but it seems it gets the timestamp/build number incorrect all
 the time!

 For instance, I can see that maven is trying to download:
 Downloading:
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000500-295.pom

 But when I check the repo manually, the latest snapshot was  actually named:
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom

 What am I doing wrong?





 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: kent.narl...@seamless.se
 www.seamless.se


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Anyone? Snapshots repositories, how should they work?

2009-02-16 Thread Kent Närling
I thought legacy layout was standard for snapshot repositories?
Is it even possible to use non-legacy layout for snapshots?

And it does try to use the correct path, it is just the
timestamp/buildnumber that mismatch...?


2009/2/16 Nick Stolwijk nick.stolw...@gmail.com


 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom

 Seeing you have a special directory for poms it looks like you have a
 legacy repository defined. Maybe that goes wrong?

 Hth,

 Nick Stolwijk
 ~Java Developer~

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



 On Mon, Feb 16, 2009 at 5:44 PM, Kent Närling kent.narl...@seamless.se
 wrote:
  Anyone give me a pointer regarding this? please?
 
  Is it a very stupid question... ? :-(
 
  -- Forwarded message --
  From: Kent Närling kent.narl...@seamless.se
  Date: 2009/2/11
  Subject: Snapshots repositories, how should they work?
  To: Maven Users List users@maven.apache.org
 
 
  This might be a newbie question, bit I have tried to find documentation
  explaining how snapshot repositories should work... can anyone give me a
  pointer?
 
  We have an internal repository (nexus) and a build server (continuum)
 which
  works fine with released artifacts etc
 
  However I cannot get automatic download of snapshot dependencies to work
  successfully...?
 
  I have added a snapshot-enabled repository to my settings and it does try
 to
  download it, but it seems it gets the timestamp/build number incorrect
 all
  the time!
 
  For instance, I can see that maven is trying to download:
  Downloading:
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000500-295.pom
 
  But when I check the repo manually, the latest snapshot was  actually
 named:
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom
 
  What am I doing wrong?
 
 
 
 
 
  --
  Kent Närling
 
  System Architect
  SEAMLESS
  Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
  Phone: +46 8 5648 7800, fax: +46 8 5648 7823
  Mobile: +46 70 836 9925
  Mail: kent.narl...@seamless.se
  www.seamless.se
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: kent.narl...@seamless.se
www.seamless.se


Re: Anyone? Snapshots repositories, how should they work?

2009-02-16 Thread Nick Stolwijk
Legacy layout is the maven 1 layout. If you only use maven 2, don't
use the legacy layout.

I guess something goes wrong with your metadata. If you use a maven 2
layout like maven[1] there will be a metadata file, to construct the
final url. What does your metadata file say about your snapshots?

[1] 
http://repository.sonatype.org/content/repositories/apache-snapshots/org/apache/maven/maven/2.0.10-SNAPSHOT/maven-metadata.xml

With regards,

Nick Stolwijk
~Java Developer~

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



On Mon, Feb 16, 2009 at 6:03 PM, Kent Närling kent.narl...@seamless.se wrote:
 I thought legacy layout was standard for snapshot repositories?
 Is it even possible to use non-legacy layout for snapshots?

 And it does try to use the correct path, it is just the
 timestamp/buildnumber that mismatch...?


 2009/2/16 Nick Stolwijk nick.stolw...@gmail.com


 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom

 Seeing you have a special directory for poms it looks like you have a
 legacy repository defined. Maybe that goes wrong?

 Hth,

 Nick Stolwijk
 ~Java Developer~

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



 On Mon, Feb 16, 2009 at 5:44 PM, Kent Närling kent.narl...@seamless.se
 wrote:
  Anyone give me a pointer regarding this? please?
 
  Is it a very stupid question... ? :-(
 
  -- Forwarded message --
  From: Kent Närling kent.narl...@seamless.se
  Date: 2009/2/11
  Subject: Snapshots repositories, how should they work?
  To: Maven Users List users@maven.apache.org
 
 
  This might be a newbie question, bit I have tried to find documentation
  explaining how snapshot repositories should work... can anyone give me a
  pointer?
 
  We have an internal repository (nexus) and a build server (continuum)
 which
  works fine with released artifacts etc
 
  However I cannot get automatic download of snapshot dependencies to work
  successfully...?
 
  I have added a snapshot-enabled repository to my settings and it does try
 to
  download it, but it seems it gets the timestamp/build number incorrect
 all
  the time!
 
  For instance, I can see that maven is trying to download:
  Downloading:
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000500-295.pom
 
  But when I check the repo manually, the latest snapshot was  actually
 named:
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom
 
  What am I doing wrong?
 
 
 
 
 
  --
  Kent Närling
 
  System Architect
  SEAMLESS
  Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
  Phone: +46 8 5648 7800, fax: +46 8 5648 7823
  Mobile: +46 70 836 9925
  Mail: kent.narl...@seamless.se
  www.seamless.se
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: kent.narl...@seamless.se
 www.seamless.se


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-eclipse-plugin

2009-02-16 Thread Dmitri Ilyin
hi,
yes i want to tell maven to generate eclipse project for
me. Maven-eclipse-plugin does it well if it is a simple java project.
What i need is eclipse WTP project. It supports it too but in the older
version. I have tried it. The generated eclipse WTP project was
not 100% correct (i got problems with classpath) and the projects was not to
100% eclipse WTP conform.
Well, after that i investigated this issue and found out that
the Maven-eclipse-plugin generates only for an older version of WTP and that
the last release was 10 months ago.
My  particular requirement is to build pom with that i could just generate
WTP project for eclipse 3.x and don't need to manipulate this after that. We
have this requirement, couse we want to use not only eclipse but also
netbeans if someone in our team likes, so we want to use maven's pom as the
primary project format. The netbeans integration of maven seems to be better
supported for the time being, so i'm loooking for a way for it also for
eclipse.


2009/2/16 Winterflood, Jonathan jonathan.winterfl...@capgemini.com

 Hi,

 Depending on what you're trying to do, it should do the job:

 I imagine you want Maven to tell Eclipse where to find the dependencies
 etc.
 Maven-eclipse-plugin did that by generating a .classpath file.
 m2eclipse installs in Eclipse and tells it what to do without having to
 refresh the project every time.

 However, m2eclipse uses an embedded install of Maven, not the
 machine-installed one, but you can tell it where to look for the config
 files.

 Does this sound adequate? What is your particular requirement?

 Cheers,
 Jonathan Winterflood

 -Message d'origine-
 De : Dmitri Ilyin [mailto:ilyin.dmi...@googlemail.com]
 Envoyé : lundi 16 février 2009 16:54
 À : Maven Users List
 Objet : Re: maven-eclipse-plugin

 well, this is an eclipse plugin, i need maven plugin.

 2009/2/16 Jason van Zyl jvan...@sonatype.com

  http://m2eclipse.sonatype.org/
 
 

 On 16-Feb-09, at 8:49 AM, Dmitri Ilyin wrote:

  Hallo,
 
 
 
  i wanted to use maven-eclipse-plugin with Eclipse 3.4. After short
  tries i have found out that it only support WTP 1.5. The actual
  version of Eclipse WTP is 3.x
 
  After that i find that the last version of plugin is 10 month old.
 
  What ist he status oft he plugin? Is it still in developing? If no,
  are there any alternatives? I'm new in maven  and looking for eclipse
  support for maven.
 
 
 
  Thanks
 
  Dmitri






 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.




Re: Anyone? Snapshots repositories, how should they work?

2009-02-16 Thread Kent Närling
Ok, funny enough, I have set the format in nexus to maven2, but it still
insists on storing it in legacy format... strange...
Could this be a bug in nexus? we are using an older beta version ...

The meta data file very correctly says the incorrect build number and
timestamp:

versioning
-
snapshot
timestamp20090213.090140/timestamp
buildNumber303/buildNumber
/snapshot
-
versions
version1.1-SNAPSHOT/version
version4.2.2-SNAPSHOT/version

It seems this timestamp  buildnumber refers to another artifact in the same
directory?!? I can see why the legacy format is messed up... :-(




2009/2/16 Nick Stolwijk nick.stolw...@gmail.com

 Legacy layout is the maven 1 layout. If you only use maven 2, don't
 use the legacy layout.

 I guess something goes wrong with your metadata. If you use a maven 2
 layout like maven[1] there will be a metadata file, to construct the
 final url. What does your metadata file say about your snapshots?

 [1]
 http://repository.sonatype.org/content/repositories/apache-snapshots/org/apache/maven/maven/2.0.10-SNAPSHOT/maven-metadata.xml

 With regards,

 Nick Stolwijk
 ~Java Developer~

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



 On Mon, Feb 16, 2009 at 6:03 PM, Kent Närling kent.narl...@seamless.se
 wrote:
  I thought legacy layout was standard for snapshot repositories?
  Is it even possible to use non-legacy layout for snapshots?
 
  And it does try to use the correct path, it is just the
  timestamp/buildnumber that mismatch...?
 
 
  2009/2/16 Nick Stolwijk nick.stolw...@gmail.com
 
 
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom
 
  Seeing you have a special directory for poms it looks like you have a
  legacy repository defined. Maybe that goes wrong?
 
  Hth,
 
  Nick Stolwijk
  ~Java Developer~
 
  Iprofs BV.
  Claus Sluterweg 125
  2012 WS Haarlem
  www.iprofs.nl
 
 
 
  On Mon, Feb 16, 2009 at 5:44 PM, Kent Närling kent.narl...@seamless.se
 
  wrote:
   Anyone give me a pointer regarding this? please?
  
   Is it a very stupid question... ? :-(
  
   -- Forwarded message --
   From: Kent Närling kent.narl...@seamless.se
   Date: 2009/2/11
   Subject: Snapshots repositories, how should they work?
   To: Maven Users List users@maven.apache.org
  
  
   This might be a newbie question, bit I have tried to find
 documentation
   explaining how snapshot repositories should work... can anyone give me
 a
   pointer?
  
   We have an internal repository (nexus) and a build server (continuum)
  which
   works fine with released artifacts etc
  
   However I cannot get automatic download of snapshot dependencies to
 work
   successfully...?
  
   I have added a snapshot-enabled repository to my settings and it does
 try
  to
   download it, but it seems it gets the timestamp/build number incorrect
  all
   the time!
  
   For instance, I can see that maven is trying to download:
   Downloading:
  
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000500-295.pom
  
   But when I check the repo manually, the latest snapshot was  actually
  named:
  
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom
  
   What am I doing wrong?
  
  
  
  
  
   --
   Kent Närling
  
   System Architect
   SEAMLESS
   Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
   Phone: +46 8 5648 7800, fax: +46 8 5648 7823
   Mobile: +46 70 836 9925
   Mail: kent.narl...@seamless.se
   www.seamless.se
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Kent Närling
 
  System Architect
  SEAMLESS
  Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
  Phone: +46 8 5648 7800, fax: +46 8 5648 7823
  Mobile: +46 70 836 9925
  Mail: kent.narl...@seamless.se
  www.seamless.se
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: kent.narl...@seamless.se
www.seamless.se


Re: help with jdbc and dbunit server mapping

2009-02-16 Thread Baptiste MATHUS
Maybe use a special profile in which you will define your properties?

Cheers

2009/2/15 Mick Knutson mickknut...@gmail.com

 I am looking at this as a solution to externalize my db username and
 password:
 http://mojo.codehaus.org/dbunit-maven-plugin/examples/settings.html

 But my issue is that, in my unit tests, I use dbunit and this seems that it
 will map just fine, but when I run integration tests, I use a filtered
 jdbc.username for example.
 **
 *

 dbunit.dataTypeFactoryNameorg.dbunit.ext.mysql.MySqlDataTypeFactory/dbunit.dataTypeFactoryName
dbunit.operation.typeINSERT/dbunit.operation.type

jdbc.groupIdmysql/jdbc.groupId
jdbc.artifactIdmysql-connector-java/jdbc.artifactId
jdbc.version${mysql.version}/jdbc.version



 hibernate.dialectorg.hibernate.dialect.MySQL5InnoDBDialect/hibernate.dialect
jdbc.driverClassNamecom.mysql.jdbc.Driver/jdbc.driverClassName


 jdbc.url![CDATA[jdbc:mysql://localhost:3306/testdb?createDatabaseIfNotExist=trueamp;useUnicode=trueamp;characterEncoding=utf-8amp;sessionVariables=FOREIGN_KEY_CHECKS=0]]/jdbc.url

jdbc.usernameroot/jdbc.username
jdbc.password/jdbc.password
 *

 I am wondering how I could get these settings from my server in my
 settings.xml ??

 ---
 Thank You…

 Mick Knutson, President

 BASE Logic, Inc.
 Enterprise Architecture, Design, Mentoring  Agile Consulting
 p. (866) BLiNC-411: (254-6241-1)
 f. (415) 685-4233

 Website: http://baselogic.com
 Linked IN: http://linkedin.com/in/mickknutson
 Twitter: http://twitter.com/mickknutson
 Vacation Rental: http://tahoe.baselogic.com
 ---




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: mvn tomcat:deploy: Out of Memory Error

2009-02-16 Thread Ole Ersoy

Super - Thanks - The following did the trick:
export MAVEN_OPTS=-Xms64m -Xmx900m

Ole

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to configure resources plugin to copy extra files

2009-02-16 Thread Blueshirts

You may not need to for his example though the example on the page sited does
not work.  Anyone know what the correct execution value should be? 
Configuring the plug-in is useful because in the example it states you can
attach it to a phase.


brettporter wrote:
 
 You shouldn't need to configure the resource plugin at all, just the  
 following will work:
 
 resources
resource
  directorysrc/main/java/directory
  includes
include**/*.xml/include
  /includes
/resource
 /resources
 
 Cheers,
 Brett
 
 On 18/12/2008, at 5:19 PM, zorro2b wrote:
 

 I am converting a project to use Maven. I have got it to compile but  
 the
 tests are failing because there are xml files in with the java  
 source that
 need to be copied over with the classes. I don't want to move these  
 into the
 resources dir, so I followed the example here:
 http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

 but I get the error 'copy-resources' was specified in an execution,  
 but not
 found in the plugin

 so I have tried changing the goal to resources as well as removing  
 the
 goals section completely. Both get rid of the error, but no files are
 copied.

 Does anyone have a working config they could share?

 Here is my current config:
plugin
artifactIdmaven-resources-plugin/artifactId
executions
  execution
idcopy-resources/id
phaseprocess-resources/phase

  goals
  goalresources/goal
  /goals
configuration
  outputDirectory${basedir}/target/classes/ 
 outputDirectory
  resources
resource
  directorysrc/main/java/directory
  includes
  include**/*.xml/include
/includes
/resource
  /resources
/configuration
  /execution
/executions
  /plugin

 -- 
 View this message in context:
 http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p21067611.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

 
 --
 Brett Porter
 br...@apache.org
 http://blogs.exist.com/bporter/
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p22043924.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: recurrent exception

2009-02-16 Thread Wayne Fay
 [ERROR] DashboardUtils getDocument() SAXException:
 org.xml.sax.SAXParseException: Premature end of file.
 ...
 org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDocument(DashBoa
 rdUtils.java:886)

Looks to be a bug/issue in the Dashboard Mojo. I'd see if perhaps this
has been filed in the Mojo issue tracker, and if not, post it
yourself. It is always helpful to post a sample project which
demonstrates the issue as well, if that is possible.

http://mojo.codehaus.org/dashboard-maven-plugin/
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidepid=11062sorter/order=DESCsorter/field=priorityresolution=-1component=12537

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Set system properties in pom.xml?

2009-02-16 Thread David C. Hicks
I think I already know the answer to this: No.  But, I feel like I 
should ask, just in case I've missed some vital piece of information.  
(Google is great, but sometimes it's hard to work your way through the 
chaff.)


I'd like to control some unit test features using a profile.  My current 
path was to simply set a property in my profile, thinking that I could 
then read that value in my test code using System.getProperty(key).  
That doesn't seem to be supported.


Is there some other, recommended, way of doing this kind of thing?

Thanks,
Dave


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread David C. Hicks
Incidentally, I did try using the systemProperties configuration 
element of the SureFire plugin.  It did not appear to do anything.


David C. Hicks wrote:
I think I already know the answer to this: No.  But, I feel like I 
should ask, just in case I've missed some vital piece of information.  
(Google is great, but sometimes it's hard to work your way through the 
chaff.)


I'd like to control some unit test features using a profile.  My 
current path was to simply set a property in my profile, thinking that 
I could then read that value in my test code using 
System.getProperty(key).  That doesn't seem to be supported.


Is there some other, recommended, way of doing this kind of thing?

Thanks,
Dave


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: recurrent exception

2009-02-16 Thread Brett Randall
Top hit on Google for: DashboardUtils getDocument() SAXException Premature
end of file

is: https://jira.codehaus.org/browse/MOJO-1292

May be relevant to your issue.

Brett

On Mon, Feb 16, 2009 at 10:02 PM, Giovanni Azua brave...@swissonline.chwrote:

 Hi,

 I have lately seen this exception below recurrently popping out in my
 build.
 Any clues?

 TIA,
 Regards,
 Giovanni

 [ERROR] DashboardUtils getDocument() SAXException:
 org.xml.sax.SAXParseException: Premature end of file.
at

 com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:23
 9)
at

 com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBu
 ilderImpl.java:283)
at

 org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDocument(DashBoa
 rdUtils.java:886)
at

 org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getTaglistReport(Da
 shBoardUtils.java:834)
at

 org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardMavenPr
 oject(DashBoardUtils.java:308)
at

 org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(
 DashBoardReportMojo.java:280)
at

 org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.
 java:98)
at

 org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo
 cumentRenderer.java:139)
at

 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default
 SiteRenderer.java:269)
at

 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe
 nderer.java:101)
at
 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
at

 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
 r.java:451)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
 cycleExecutor.java:558)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:499)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
 ycleExecutor.java:478)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
 ures(DefaultLifecycleExecutor.java:330)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
 ultLifecycleExecutor.java:291)
at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
 Executor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:597)
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)



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: maven-eclipse-plugin

2009-02-16 Thread Arnaud HERITIER
why a plugin in eclipse to support maven doesn't fit your needs ?

Arnaud

2009/2/16 Dmitri Ilyin ilyin.dmi...@googlemail.com

 well, this is an eclipse plugin, i need maven plugin.

 2009/2/16 Jason van Zyl jvan...@sonatype.com

  http://m2eclipse.sonatype.org/
 
 




-- 
Arnaud


RE: Anyone? Snapshots repositories, how should they work?

2009-02-16 Thread Brian E. Fox
Nexus only stores what Maven sends it. So if you have defined things as legacy 
(m1) in maven and told Nexus it's m2, you're going to have some trouble. Make 
everything M2, non-legacy (the default) and it should just work.

-Original Message-
From: Kent Närling [mailto:kent.narl...@seamless.se] 
Sent: Monday, February 16, 2009 12:46 PM
To: Maven Users List
Subject: Re: Anyone? Snapshots repositories, how should they work?

Ok, funny enough, I have set the format in nexus to maven2, but it still
insists on storing it in legacy format... strange...
Could this be a bug in nexus? we are using an older beta version ...

The meta data file very correctly says the incorrect build number and
timestamp:

versioning
-
snapshot
timestamp20090213.090140/timestamp
buildNumber303/buildNumber
/snapshot
-
versions
version1.1-SNAPSHOT/version
version4.2.2-SNAPSHOT/version

It seems this timestamp  buildnumber refers to another artifact in the same
directory?!? I can see why the legacy format is messed up... :-(




2009/2/16 Nick Stolwijk nick.stolw...@gmail.com

 Legacy layout is the maven 1 layout. If you only use maven 2, don't
 use the legacy layout.

 I guess something goes wrong with your metadata. If you use a maven 2
 layout like maven[1] there will be a metadata file, to construct the
 final url. What does your metadata file say about your snapshots?

 [1]
 http://repository.sonatype.org/content/repositories/apache-snapshots/org/apache/maven/maven/2.0.10-SNAPSHOT/maven-metadata.xml

 With regards,

 Nick Stolwijk
 ~Java Developer~

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



 On Mon, Feb 16, 2009 at 6:03 PM, Kent Närling kent.narl...@seamless.se
 wrote:
  I thought legacy layout was standard for snapshot repositories?
  Is it even possible to use non-legacy layout for snapshots?
 
  And it does try to use the correct path, it is just the
  timestamp/buildnumber that mismatch...?
 
 
  2009/2/16 Nick Stolwijk nick.stolw...@gmail.com
 
 
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom
 
  Seeing you have a special directory for poms it looks like you have a
  legacy repository defined. Maybe that goes wrong?
 
  Hth,
 
  Nick Stolwijk
  ~Java Developer~
 
  Iprofs BV.
  Claus Sluterweg 125
  2012 WS Haarlem
  www.iprofs.nl
 
 
 
  On Mon, Feb 16, 2009 at 5:44 PM, Kent Närling kent.narl...@seamless.se
 
  wrote:
   Anyone give me a pointer regarding this? please?
  
   Is it a very stupid question... ? :-(
  
   -- Forwarded message --
   From: Kent Närling kent.narl...@seamless.se
   Date: 2009/2/11
   Subject: Snapshots repositories, how should they work?
   To: Maven Users List users@maven.apache.org
  
  
   This might be a newbie question, bit I have tried to find
 documentation
   explaining how snapshot repositories should work... can anyone give me
 a
   pointer?
  
   We have an internal repository (nexus) and a build server (continuum)
  which
   works fine with released artifacts etc
  
   However I cannot get automatic download of snapshot dependencies to
 work
   successfully...?
  
   I have added a snapshot-enabled repository to my settings and it does
 try
  to
   download it, but it seems it gets the timestamp/build number incorrect
  all
   the time!
  
   For instance, I can see that maven is trying to download:
   Downloading:
  
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000500-295.pom
  
   But when I check the repo manually, the latest snapshot was  actually
  named:
  
 
 http://nexus:8081/nexus/content/groups/public-snapshots/com.my.common/poms/my-artifact-0.11-20090211.000348-293.pom
  
   What am I doing wrong?
  
  
  
  
  
   --
   Kent Närling
  
   System Architect
   SEAMLESS
   Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
   Phone: +46 8 5648 7800, fax: +46 8 5648 7823
   Mobile: +46 70 836 9925
   Mail: kent.narl...@seamless.se
   www.seamless.se
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
  --
  Kent Närling
 
  System Architect
  SEAMLESS
  Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
  Phone: +46 8 5648 7800, fax: +46 8 5648 7823
  Mobile: +46 70 836 9925
  Mail: kent.narl...@seamless.se
  www.seamless.se
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: kent.narl...@seamless.se
www.seamless.se

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For 

RE: recurrent exception

2009-02-16 Thread Brian E. Fox
Haha, I think that's Brett's form of: 

http://lmgtfy.com/?q=DashboardUtils+getDocument()+SAXException

-Original Message-
From: Brett Randall [mailto:javabr...@gmail.com] 
Sent: Monday, February 16, 2009 4:37 PM
To: Maven Users List
Subject: Re: recurrent exception

Top hit on Google for: DashboardUtils getDocument() SAXException
Premature
end of file

is: https://jira.codehaus.org/browse/MOJO-1292

May be relevant to your issue.

Brett

On Mon, Feb 16, 2009 at 10:02 PM, Giovanni Azua
brave...@swissonline.chwrote:

 Hi,

 I have lately seen this exception below recurrently popping out in my
 build.
 Any clues?

 TIA,
 Regards,
 Giovanni

 [ERROR] DashboardUtils getDocument() SAXException:
 org.xml.sax.SAXParseException: Premature end of file.
at


com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.jav
a:23
 9)
at


com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Docume
ntBu
 ilderImpl.java:283)
at


org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDocument(Das
hBoa
 rdUtils.java:886)
at


org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getTaglistRepor
t(Da
 shBoardUtils.java:834)
at


org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardMav
enPr
 oject(DashBoardUtils.java:308)
at


org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeRep
ort(
 DashBoardReportMojo.java:280)
at


org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep
ort.
 java:98)
at


org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(Repo
rtDo
 cumentRenderer.java:139)
at


org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Def
ault
 SiteRenderer.java:269)
at


org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi
teRe
 nderer.java:101)
at
 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
at
org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
at


org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nage
 r.java:451)
at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
Life
 cycleExecutor.java:558)
at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle
 (DefaultLifecycleExecutor.java:499)
at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifec
 ycleExecutor.java:478)
at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Fail
 ures(DefaultLifecycleExecutor.java:330)
at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
Defa
 ultLifecycleExecutor.java:291)
at


org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycle
 Executor.java:142)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
 )
at


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
 .java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-eclipse-plugin

2009-02-16 Thread Siarhei Dudzin
I don't know for Dmitri but for me it doesn't support war overlays :)

Best regards,
Siarhei Dudzin


On Mon, Feb 16, 2009 at 10:58 PM, Arnaud HERITIER aherit...@gmail.comwrote:

 why a plugin in eclipse to support maven doesn't fit your needs ?

 Arnaud

 2009/2/16 Dmitri Ilyin ilyin.dmi...@googlemail.com

  well, this is an eclipse plugin, i need maven plugin.
 
  2009/2/16 Jason van Zyl jvan...@sonatype.com
 
   http://m2eclipse.sonatype.org/
  
  
 



 --
 Arnaud



Re: recurrent exception

2009-02-16 Thread Wayne Fay
 Top hit on Google for: DashboardUtils getDocument() SAXException Premature
 end of file
 is: https://jira.codehaus.org/browse/MOJO-1292

But emailing problems to this group is so much easier than simply
Googling for your answers!

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-eclipse-plugin

2009-02-16 Thread Arnaud HERITIER
yes, thus your problem is the lack of support on some maven/eclipse
features. And not because you don't want to use it. I suppose you'll take it
as soon as it'll have those missing features.

Arnaud

On Mon, Feb 16, 2009 at 11:32 PM, Siarhei Dudzin
siarhei.dud...@gmail.comwrote:

 I don't know for Dmitri but for me it doesn't support war overlays :)

 Best regards,
 Siarhei Dudzin


 On Mon, Feb 16, 2009 at 10:58 PM, Arnaud HERITIER aherit...@gmail.com
 wrote:

  why a plugin in eclipse to support maven doesn't fit your needs ?
 
  Arnaud
 
  2009/2/16 Dmitri Ilyin ilyin.dmi...@googlemail.com
 
   well, this is an eclipse plugin, i need maven plugin.
  
   2009/2/16 Jason van Zyl jvan...@sonatype.com
  
http://m2eclipse.sonatype.org/
   
   
  
 
 
 
  --
  Arnaud
 




-- 
Arnaud


Re: mvn jetty home?

2009-02-16 Thread Lee Meador
Try http://jetty.mortbay.com/jetty/maven-plugin/

-- Lee

On Fri, Feb 13, 2009 at 7:51 AM, Lee Goddard lee.godd...@bbc.co.uk wrote:

 Could someone please point me to the Maven Jetty home and/or help me
 istall it?

 http://mojo.codehaus.org/jetty-maven-plugin/index.html says little, but
 when I follow those few instructions, I get the below error.

 Also,it refers to the deprecated m2 command - is Jetty alive and well
 or should I be using something else?

 Thanks in anticipation
 Lee


 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'jetty'.
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.codehaus.mojo:jetty-maven-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: Fri Feb 13 13:49:27 GMT 2009
 [INFO] Final Memory: 4M/254M
 [INFO]
 

 http://www.bbc.co.uk/
 This e-mail (and any attachments) is confidential and may contain personal
 views which are not the views of the BBC unless specifically stated.
 If you have received it in error, please delete it from your system.
 Do not use, copy or disclose the information in any way nor act in reliance
 on it and notify the sender immediately.
 Please note that the BBC monitors e-mails sent or received.
 Further communication will signify your consent to this.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com


Re: maven-eclipse-plugin

2009-02-16 Thread Siarhei Dudzin
Sure, I *am* using it :) just not everywhere...

Speaking of which, I can't install it:

Update operation has failed
  Error retrieving plugins/org.eclipse.draw2d_3.4.1.v20080910-1351.jar.
[Server returned HTTP response code: 404 Not Found for URL:
http://m2eclipse.sonatype.org/update/plugins/org.eclipse.draw2d_3.4.1.v20080910-1351.jar
.]
  Server returned HTTP response code: 404 Not Found for URL:
http://m2eclipse.sonatype.org/update/plugins/org.eclipse.draw2d_3.4.1.v20080910-1351.jar
.


Best regards,
Siarhei Dudzin


On Mon, Feb 16, 2009 at 11:56 PM, Arnaud HERITIER aherit...@gmail.comwrote:

 yes, thus your problem is the lack of support on some maven/eclipse
 features. And not because you don't want to use it. I suppose you'll take
 it
 as soon as it'll have those missing features.

 Arnaud

 On Mon, Feb 16, 2009 at 11:32 PM, Siarhei Dudzin
 siarhei.dud...@gmail.comwrote:

  I don't know for Dmitri but for me it doesn't support war overlays :)
 
  Best regards,
  Siarhei Dudzin
 
 
  On Mon, Feb 16, 2009 at 10:58 PM, Arnaud HERITIER aherit...@gmail.com
  wrote:
 
   why a plugin in eclipse to support maven doesn't fit your needs ?
  
   Arnaud
  
   2009/2/16 Dmitri Ilyin ilyin.dmi...@googlemail.com
  
well, this is an eclipse plugin, i need maven plugin.
   
2009/2/16 Jason van Zyl jvan...@sonatype.com
   
 http://m2eclipse.sonatype.org/


   
  
  
  
   --
   Arnaud
  
 



 --
 Arnaud



Re: Set system properties in pom.xml?

2009-02-16 Thread Dan Tran
You may want to take a look at surefire's integration test cases, I
has a bunch of examples on how push system properties into surefire.

-D

On Mon, Feb 16, 2009 at 1:25 PM, David C. Hicks dhi...@i-hicks.org wrote:
 Incidentally, I did try using the systemProperties configuration element
 of the SureFire plugin.  It did not appear to do anything.

 David C. Hicks wrote:

 I think I already know the answer to this: No.  But, I feel like I should
 ask, just in case I've missed some vital piece of information.  (Google is
 great, but sometimes it's hard to work your way through the chaff.)

 I'd like to control some unit test features using a profile.  My current
 path was to simply set a property in my profile, thinking that I could then
 read that value in my test code using System.getProperty(key).  That doesn't
 seem to be supported.

 Is there some other, recommended, way of doing this kind of thing?

 Thanks,
 Dave


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread David C. Hicks
Where would I find those test cases?  I see nothing about integration 
tests on the SureFire page.


Dan Tran wrote:

You may want to take a look at surefire's integration test cases, I
has a bunch of examples on how push system properties into surefire.

-D

On Mon, Feb 16, 2009 at 1:25 PM, David C. Hicks dhi...@i-hicks.org wrote:
  

Incidentally, I did try using the systemProperties configuration element
of the SureFire plugin.  It did not appear to do anything.

David C. Hicks wrote:


I think I already know the answer to this: No.  But, I feel like I should
ask, just in case I've missed some vital piece of information.  (Google is
great, but sometimes it's hard to work your way through the chaff.)

I'd like to control some unit test features using a profile.  My current
path was to simply set a property in my profile, thinking that I could then
read that value in my test code using System.getProperty(key).  That doesn't
seem to be supported.

Is there some other, recommended, way of doing this kind of thing?

Thanks,
Dave


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: mvn jetty home?

2009-02-16 Thread Deron Eriksson

There is a configuration guide here that can probably answer your questions:
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin


You should be able to use the plugin by adding it to the
build-plugins-plugin section of your project's pom.xml, like:
plugin
   groupIdorg.mortbay.jetty/groupId
   artifactIdjetty-maven-plugin/artifactId
   version7.0.0.pre5/version
/plugin

Versions of the plugin before 7 apparently use maven-jetty-plugin as the
artifact rather than jetty-maven-plugin:
plugin
   groupIdorg.mortbay.jetty/groupId
   artifactIdmaven-jetty-plugin/artifactId
   version6.1.14/version
/plugin

The configuration guide describes configuration/execution of the various
goals.

Good luck,
Deron Eriksson
Code Strategies

-- 
View this message in context: 
http://www.nabble.com/Maven-using-old-snapshot-poms--tp21977241p22048668.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread Dan Tran
Actually, it is in the surefire source tree with its own module.

-Dan


On Mon, Feb 16, 2009 at 3:45 PM, David C. Hicks dhi...@i-hicks.org wrote:
 Where would I find those test cases?  I see nothing about integration tests
 on the SureFire page.

 Dan Tran wrote:

 You may want to take a look at surefire's integration test cases, I
 has a bunch of examples on how push system properties into surefire.

 -D

 On Mon, Feb 16, 2009 at 1:25 PM, David C. Hicks dhi...@i-hicks.org
 wrote:


 Incidentally, I did try using the systemProperties configuration
 element
 of the SureFire plugin.  It did not appear to do anything.

 David C. Hicks wrote:


 I think I already know the answer to this: No.  But, I feel like I
 should
 ask, just in case I've missed some vital piece of information.  (Google
 is
 great, but sometimes it's hard to work your way through the chaff.)

 I'd like to control some unit test features using a profile.  My current
 path was to simply set a property in my profile, thinking that I could
 then
 read that value in my test code using System.getProperty(key).  That
 doesn't
 seem to be supported.

 Is there some other, recommended, way of doing this kind of thing?

 Thanks,
 Dave


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread Dan Tran
any how, what kind of problem you are facing? Is surefire document not
clear enough?

-D

On Mon, Feb 16, 2009 at 4:33 PM, Dan Tran dant...@gmail.com wrote:
 Actually, it is in the surefire source tree with its own module.

 -Dan


 On Mon, Feb 16, 2009 at 3:45 PM, David C. Hicks dhi...@i-hicks.org wrote:
 Where would I find those test cases?  I see nothing about integration tests
 on the SureFire page.

 Dan Tran wrote:

 You may want to take a look at surefire's integration test cases, I
 has a bunch of examples on how push system properties into surefire.

 -D

 On Mon, Feb 16, 2009 at 1:25 PM, David C. Hicks dhi...@i-hicks.org
 wrote:


 Incidentally, I did try using the systemProperties configuration
 element
 of the SureFire plugin.  It did not appear to do anything.

 David C. Hicks wrote:


 I think I already know the answer to this: No.  But, I feel like I
 should
 ask, just in case I've missed some vital piece of information.  (Google
 is
 great, but sometimes it's hard to work your way through the chaff.)

 I'd like to control some unit test features using a profile.  My current
 path was to simply set a property in my profile, thinking that I could
 then
 read that value in my test code using System.getProperty(key).  That
 doesn't
 seem to be supported.

 Is there some other, recommended, way of doing this kind of thing?

 Thanks,
 Dave


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread David C. Hicks
The surefire documentation is plenty clear, but the feature apparently 
doesn't work.  At least, I have been unsuccessful with it, thus far.
I'm just trying to pass in a simple string for my tests to pick up.  The 
string is set by activating a profile.


I guess I'll dig into the surefire source tree and see if I can find an 
example that shows me something different.



Dan Tran wrote:

any how, what kind of problem you are facing? Is surefire document not
clear enough?

-D

On Mon, Feb 16, 2009 at 4:33 PM, Dan Tran dant...@gmail.com wrote:
  

Actually, it is in the surefire source tree with its own module.

-Dan


On Mon, Feb 16, 2009 at 3:45 PM, David C. Hicks dhi...@i-hicks.org wrote:


Where would I find those test cases?  I see nothing about integration tests
on the SureFire page.

Dan Tran wrote:
  

You may want to take a look at surefire's integration test cases, I
has a bunch of examples on how push system properties into surefire.

-D

On Mon, Feb 16, 2009 at 1:25 PM, David C. Hicks dhi...@i-hicks.org
wrote:



Incidentally, I did try using the systemProperties configuration
element
of the SureFire plugin.  It did not appear to do anything.

David C. Hicks wrote:

  

I think I already know the answer to this: No.  But, I feel like I
should
ask, just in case I've missed some vital piece of information.  (Google
is
great, but sometimes it's hard to work your way through the chaff.)

I'd like to control some unit test features using a profile.  My current
path was to simply set a property in my profile, thinking that I could
then
read that value in my test code using System.getProperty(key).  That
doesn't
seem to be supported.

Is there some other, recommended, way of doing this kind of thing?

Thanks,
Dave


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



  

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Problem concerning Maven with Hibernate JPA

2009-02-16 Thread Martin Chmielewski
Hi,

 

I have only little experience with Maven. Currently, I'm working on a
project with JPA. It's a desktop application without Application Server. I
added the hibernate-entitymanager-3.4.0.GA.jar to the dependencies (all
corresponding dependencies are resolved by Maven). My JUnit tests concerning
Hibernate and Entities run fine with no errors (so I guess that Maven
principally runs fine).

Unfortunately, I get the an error (see below) when I am creating a jar file
and run the program afterwards. As I can see, of course, the
javax.persistence jar provided by the ejb3-persistence.jar is obviously
missing. But I don't know how to fix the problem. When I'm running the
program as a simple Java Desktop App, everything is fine.

 

If you could provide me any more information, that would be great.

 

Thanks in advance.

 

Martin

 

[INFO] Exception in thread AWT-EventQueue-0
java.lang.NoClassDefFoundError: javax/persistence/Persistence

[INFO]  at
de.bamannheim.grademaster.database.DatabaseConnection.init(DatabaseConnect
ion.java:32)

[INFO]  at
de.bamannheim.grademaster.database.UserPersistence.loadUser(UserPersistence.
java:86)

[INFO]  at de.bamannheim.grademaster.meta.Session.login(Session.java:84)

[INFO]  at
de.bamannheim.grademaster.gui.Login.myJBtnLoginMouseClicked(Login.java:137)

[INFO]  at de.bamannheim.grademaster.gui.Login.access$2(Login.java:134)

[INFO]  at
de.bamannheim.grademaster.gui.Login$3.mouseClicked(Login.java:76)

[INFO]  at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)

[INFO]  at java.awt.Component.processMouseEvent(Component.java:6137)

[INFO]  at
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)

[INFO]  at java.awt.Component.processEvent(Component.java:5899)

[INFO]  at java.awt.Container.processEvent(Container.java:2023)

[INFO]  at java.awt.Component.dispatchEventImpl(Component.java:4501)

[INFO]  at java.awt.Container.dispatchEventImpl(Container.java:2081)

[INFO]  at java.awt.Component.dispatchEvent(Component.java:4331)

[INFO]  at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)

[INFO]  at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3974)

[INFO]  at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)

[INFO]  at java.awt.Container.dispatchEventImpl(Container.java:2067)

[INFO]  at java.awt.Window.dispatchEventImpl(Window.java:2458)

[INFO]  at java.awt.Component.dispatchEvent(Component.java:4331)

[INFO]  at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

[INFO]  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java
:269)

[INFO]  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:18
4)

[INFO]  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:174)

[INFO]  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

[INFO]  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

[INFO]  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

[INFO] Caused by: java.lang.ClassNotFoundException:
javax.persistence.Persistence

[INFO]  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

[INFO]  at java.security.AccessController.doPrivileged(Native Method)

[INFO]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

[INFO]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

[INFO]  ... 27 more



Re: Problem concerning Maven with Hibernate JPA

2009-02-16 Thread David C. Hicks

Martin,
While the app I'm currently working on is a web-based app, I have an 
explicit dependency declare for the persistence API.  Whether it is 
necessary, I'm not sure, but it's in the POM.  So, I thought I'd reply 
with it for you.


   dependency
   rgroupIdjavax.persistence/groupId
   artifactIdpersistence-api/artifactId
   version1.0/version
   /dependency

I hope this is helpful,
Dave


Martin Chmielewski wrote:

Hi,

 


I have only little experience with Maven. Currently, I'm working on a
project with JPA. It's a desktop application without Application Server. I
added the hibernate-entitymanager-3.4.0.GA.jar to the dependencies (all
corresponding dependencies are resolved by Maven). My JUnit tests concerning
Hibernate and Entities run fine with no errors (so I guess that Maven
principally runs fine).

Unfortunately, I get the an error (see below) when I am creating a jar file
and run the program afterwards. As I can see, of course, the
javax.persistence jar provided by the ejb3-persistence.jar is obviously
missing. But I don't know how to fix the problem. When I'm running the
program as a simple Java Desktop App, everything is fine.

 


If you could provide me any more information, that would be great.

 


Thanks in advance.

 


Martin

 


[INFO] Exception in thread AWT-EventQueue-0
java.lang.NoClassDefFoundError: javax/persistence/Persistence

[INFO]  at
de.bamannheim.grademaster.database.DatabaseConnection.init(DatabaseConnect
ion.java:32)

[INFO]  at
de.bamannheim.grademaster.database.UserPersistence.loadUser(UserPersistence.
java:86)

[INFO]  at de.bamannheim.grademaster.meta.Session.login(Session.java:84)

[INFO]  at
de.bamannheim.grademaster.gui.Login.myJBtnLoginMouseClicked(Login.java:137)

[INFO]  at de.bamannheim.grademaster.gui.Login.access$2(Login.java:134)

[INFO]  at
de.bamannheim.grademaster.gui.Login$3.mouseClicked(Login.java:76)

[INFO]  at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)

[INFO]  at java.awt.Component.processMouseEvent(Component.java:6137)

[INFO]  at
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)

[INFO]  at java.awt.Component.processEvent(Component.java:5899)

[INFO]  at java.awt.Container.processEvent(Container.java:2023)

[INFO]  at java.awt.Component.dispatchEventImpl(Component.java:4501)

[INFO]  at java.awt.Container.dispatchEventImpl(Container.java:2081)

[INFO]  at java.awt.Component.dispatchEvent(Component.java:4331)

[INFO]  at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)

[INFO]  at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3974)

[INFO]  at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)

[INFO]  at java.awt.Container.dispatchEventImpl(Container.java:2067)

[INFO]  at java.awt.Window.dispatchEventImpl(Window.java:2458)

[INFO]  at java.awt.Component.dispatchEvent(Component.java:4331)

[INFO]  at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

[INFO]  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java
:269)

[INFO]  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:18
4)

[INFO]  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:174)

[INFO]  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

[INFO]  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

[INFO]  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

[INFO] Caused by: java.lang.ClassNotFoundException:
javax.persistence.Persistence

[INFO]  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

[INFO]  at java.security.AccessController.doPrivileged(Native Method)

[INFO]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

[INFO]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

[INFO]  ... 27 more


  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread Wendy Smoak
On Mon, Feb 16, 2009 at 6:01 PM, David C. Hicks dhi...@i-hicks.org wrote:
 The surefire documentation is plenty clear, but the feature apparently
 doesn't work.  At least, I have been unsuccessful with it, thus far.
 I'm just trying to pass in a simple string for my tests to pick up.  The
 string is set by activating a profile.

It might be quicker to paste your plugin configuration and see if
someone can spot an error, since passing properties into tests does
work for many of us.

Also, what version of Surefire are you using?

-- 
Wendy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Set system properties in pom.xml?

2009-02-16 Thread David C. Hicks

Wendy, that was a great suggestion.  I should have done so sooner.

Having tossed out my changes in favor of doing something more 
productive, I went back to recreate my setup.  I must have 
mis-configured the plugin.  Now, it's working beautifully.  Sorry about 
all the fuss.


Dave


Wendy Smoak wrote:

On Mon, Feb 16, 2009 at 6:01 PM, David C. Hicks dhi...@i-hicks.org wrote:
  

The surefire documentation is plenty clear, but the feature apparently
doesn't work.  At least, I have been unsuccessful with it, thus far.
I'm just trying to pass in a simple string for my tests to pick up.  The
string is set by activating a profile.



It might be quicker to paste your plugin configuration and see if
someone can spot an error, since passing properties into tests does
work for many of us.

Also, what version of Surefire are you using?

  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[ANN] TrueZip Maven Plugin 1.0 beta 2 released

2009-02-16 Thread Dan Tran
The MOJO team is pleased to announce the second beta release of
truezip-maven-plugin which is mainly used to manipulate archive files
on the fly.

This release has a critical bug fix for
http://jira.codehaus.org/browse/MOJO-1298

The site is at

http://mojo.codehaus.org/truezip-maven-plugin

Enjoy

Dan T. Tran

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: eclipse ide not picking up settings.xml

2009-02-16 Thread Mick Knutson
I am still looking into this, and it appears that the embedded eclipse
maven, is not picking up my /Users/mick/.m2/settings.xml

When I add the properties into the run configuration, the build finds that
missing property. But I have many Can anyone help?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring  Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Sun, Feb 15, 2009 at 5:37 AM, Mick Knutson mknut...@baselogic.comwrote:

 When I run my build on the command line, the profiles.xml is picked up
 fine, but when I run this through eclipse 3.4.1, the properties in my
 profiles.xml are not present. Any ideas?

 ---
 Thank You…

 Mick Knutson, President

 BASE Logic, Inc.
 Enterprise Architecture, Design, Mentoring  Agile Consulting
 p. (866) BLiNC-411: (254-6241-1)
 f. (415) 685-4233

 Website: http://baselogic.com
 Linked IN: http://linkedin.com/in/mickknutson
 Twitter: http://twitter.com/mickknutson
 Vacation Rental: http://tahoe.baselogic.com
 ---




Best practices to integrate projects with a Grails project

2009-02-16 Thread Felipe Cypriano
Hello everyone,

I would like to know the community ideas about what I'm going to do. Any
ideas are welcome, let's chat about it.

I'm starting a new project to update a old one, so I've a few classes
already working and I will reuse them. In general I'll use Grails (and
implicit Spring and Hibernate) + Google Web Toolkit (GWT). In my test both
works fine together, but there's a painful work configure the classpath for
all the projects and this is the problem that I like to simplify.

For now I've these projects (or package jars):

   - vc-commons.jar: Utilities and enums used for all other projects
   - vc-entities.jar: All the JPA Entity classes
   - vc-gwt-ui.jar: Everything gwt needs to compile/generate the view
   - vc-grails: All grails/server stuff

In vc-grails/lib I've to put all others jar, and change them everytime
something changes, manually. And also copy the html, css and js files
generated by gwt to vc-grails/web-app. Is there a way to automate this
process? Something like before compile or run copy the necessary files from
the others projects.


Regards,

---
Felipe Marin Cypriano
Vitória - ES