Maven-jar-plugin customization
Hi ! I want to make 2different jars from the same source folder. So I made this structure : - jar -- pom.xml -- src -- heavyJar --- pom.xml -- lightJar --- pom.xml I want that the heavy and light Jar used the folder src as sourceFolder. The light Jar has to exclude some classes. I tried to put on the heavy's pom something;ike that : groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration sourceDirectory../src//sourceDirectory /configuration But my jars are always empty (no .class on it) : [WARNING] JAR will be empty - no content was marked for inclusion! How can I do that ? I hope I'm enough clear.. Thanks for your help ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn site-deploy and modules
Hi ! I want to deploy my site on a remote server. I use scpexe for that. The global project is well upload, but directories corresponding to modules are not created, and I get this trace : Executing command: /bin/sh -c 'ssh -o BatchMode yes [EMAIL PROTECTED] chmod -Rf g+w,a+rX /path/to/htdocs/hudson' scpexe://server/path/to/htdocs/hudson - Session: Disconnecting scpexe://server/path/to/htdocs/hudson - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Exit code 1 - [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:216) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 1 - at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:145) at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:326) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:191) ... 18 more I don't understand well what happens and wich command failed.. Does someone can help me ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn site-deploy and modules
The command line works well on command line.. [EMAIL PROTECTED] a écrit : It seems the command executed has returned a non-succes code. What happens when you execute the command from the commandline, thus: /bin/sh -c 'ssh -o BatchMode yes [EMAIL PROTECTED] chmod -Rf g+w,a+rX /path/to/htdocs/hudson Hth, Nick Stolwijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn site-deploy and modules
Well I solved the problem using scp instead of scpexe.. Julien FOROT a écrit : The command line works well on command line.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
VUB Stefan Seidel a écrit : Quote from http://maven-plugins.sourceforge.net/ Maven Plugins is a collection of plugins for Apache Maven 1.x Ok then I have to use plugin from codehaus, thanks.. What is your dbunit configuration in your pom.xml? This is my config : plugin groupIdorg.codehaus.mojo/groupId artifactIddbunit-maven-plugin/artifactId !-- jar file that has the jdbc driver-- dependencies dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId version8.2-504.jdbc3/version /dependency /dependencies !-- common configurations -- configuration driverorg.postgresql.Driver/driver urljdbc:postgresql://localhost:5432/gf_demo/url usernamepostgres/username passwordpostgres/password /configuration ! executions execution phasetest/phase goals goaloperation/goal /goals !--specific configurations-- configuration typeINSERT/type srcdbUnit/04_formulaire14000.xml/src /configuration /execution /executions /plugin Greets - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DbUnit plugin
Hi ! I have a problem with DbUnit plugin. First, why there is a maven-dbunit-plugin on http://maven-plugins.sourceforge.net/ and why there is dbunit-maven-plugin on http://mojo.codehaus.org/ ? Is it the same ? If not which is the best (I want to ba able to inject data from dataset during test phase).. Then I tried the 2 plugins : - The plugin from codehaus don't make error when running. Here the only trace I get from it : [INFO] dbunit:operation. So I believe the data is inject in the db but I can't find it.. :s - I can't install the plugin from sourceforge, I get this error message : The PluginDescriptor for the plugin Plugin [maven-plugins:maven-dbunit-plugin] was not found. That's strange because I specify version 1.6 and it check on http://repo1.maven.org/maven2/maven-plugins/ where there is a .plugin (so plugin descriptor right ?) on the 1.6 directory.. Thanks for helping me to solve my problem ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
VUB Stefan Seidel a écrit : Ok, some hints: we use version1.0-beta-1/version Well I already used this version.. and I do not see a format tag. Stefan I add it but it seems that it changes nothing.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
VUB Stefan Seidel a écrit : Ok, another thought: we have src in pluginconfiguration, not in executionconfiguration I tried this, it don't work too.. I think that's correct to put this on execution. and the path to the file referenced in src is relative to the pom.xml. Yes I know, if the path is not correct, you get a fileNotFoundException. Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: howto configure svn access with maven2 using ssh connection
Ulrich Metzger a écrit : Thanks for the quick reply, but maybe this is not what i want. as far as i know, the svn repository access is configured in the scm / section. I want to acces a subversion source repository not a maven artifact repository. So i configured something like the following to access the server's subversion repository using ssh: scm connection scm:svn:svn+ssh://[EMAIL PROTECTED]/path/to/repository/http://scm//[EMAIL PROTECTED]/path/to/repository/ /connection developerConnection scm:svn:svn+ssh://[EMAIL PROTECTED]/path/to/repository/http://scm//[EMAIL PROTECTED]/path/to/repository/ /developerConnection tagHEAD/tag /scm Which does not work. I wonder where the password for the ssh connection should be stored, and how the correct subversion db path could be located (maybe throught the HEAD tag)? hope someone knows more about this type of scm configuration. Uli Well I'm working on it atm, and have still soe problems for server password (I have prompt which ask me password for user..) In theory, in your settings.xml you have to add the server info as simon said.. For my scm conf, I have somthing like this, and despite the password prompt, it works : scm connectionscm:svn:svn+ssh://[EMAIL PROTECTED]/${root_svn}/trunk/path/to/project//connection developerConnection scm:svn:svn+ssh://[EMAIL PROTECTED]/${root_svn}/trunk/path/to/project/ /developerConnection /scm I hope it can help you.. Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
Jan Fredrik Wedén a écrit : I believe http://maven-plugins.sourceforge.net/ hosts Maven 1.x plugins while http://mojo.codehaus.org/ hosts Maven 2.x plugins. Thanks, Stefan already explain me that ! ;) In fact it seems that it is a bug : http://jira.codehaus.org/browse/MOJO-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98430 But it seems that there is no answer or fix version.. :s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]