Re: Maven https repos broken?
Thanks, in the mean time i could continue working by putting repo1.maven.org as a mirror of official repo in my settings On Fri, Nov 18, 2016 at 8:57 PM Karl Heinz Marbaise <khmarba...@gmx.de> wrote: > Hi David, > > yes there is a problem with Maven Central. > > > See here: > > https://issues.sonatype.org/browse/MVNCENTRAL-1369 > > https://twitter.com/sonatype_ops?ref_src=twsrc%5Etfw > > Kind regards > Karl Heinz Marbaise > > On 18/11/16 19:00, David Delbecq wrote: > > Hello, > > > > I had no problem using maven for about the whole day and downloading > > artefacts, but suddently my builds started to fail with ssl certificate > > issue. The repo "repo.maven.apache.org" is answering with a certificate > > dedicated to "repo1.maven.org". I have tried mirror > https://uk.maven.org > > and it exposes the same behaviour. Browser confirms the problem and > > refuses to let me go to those https pages. Is there some maintenance in > > progress that explains this situation? > > > > [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, > > process-sources, generate-resources, process-resources, compile, > > process-classes, generate-test-sources, process-test-sources, > > generate-test-resources, process-test-resources, test-compile, > > process-test-classes, test, prepare-package, package, > pre-integration-test, > > integration-test, post-integration-test, verify, install, deploy] > > [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] > > [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] > > [DEBUG] Using transporter WagonTransporter with priority -1.0 for > > https://repo.maven.apache.org/maven2 > > [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for > > https://repo.maven.apache.org/maven2 > > Downloading: > > > https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.6.0/maven-compiler-plugin-3.6.0.pom > > [DEBUG] Writing tracking file > > > /home/ddelbecq/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.6.0/maven-compiler-plugin-3.6.0.pom.lastUpdated > > [INFO] > > > > [INFO] BUILD FAILURE > > [INFO] > > > > [INFO] Total time: 1.039 s > > [INFO] Finished at: 2016-11-18T18:51:45+01:00 > > [INFO] Final Memory: 20M/481M > > [INFO] > > > > [ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.6.0 or > one > > of its dependencies could not be resolved: Failed to read artifact > > descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.6.0: > > Could not transfer artifact > > org.apache.maven.plugins:maven-compiler-plugin:pom:3.6.0 from/to central > ( > > https://repo.maven.apache.org/maven2): Host name 'repo.maven.apache.org' > > does not match the certificate subject provided by the peer (CN= > > repo1.maven.org, O="Sonatype, Inc", L=Fulton, ST=MD, C=US) -> [Help 1] > > org.apache.maven.plugin.PluginResolutionException: Plugin > > org.apache.maven.plugins:maven-compiler-plugin:3.6.0 or one of its > > dependencies could not be resolved: Failed to read artifact descriptor > for > > org.apache.maven.plugins:maven-compiler-plugin:jar:3.6.0 > > at > > > org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117) > > at > > > org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:180) > > at > > > org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:284) > > at > > > org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:241) > > at > > > org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution(DefaultLifecycleExecutionPlanCalculator.java:170) > > at > > > org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:155) > > at > > > org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:131) > > at > > > org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(Def
Maven https repos broken?
) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:832) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:983) -- <http://www.trimble.com/> David Delbecq Software engineer, Transport & Logistics Geldenaaksebaan 329, 1st floor | 3001 Leuven +32 16 391 121 <+32%2016%20391%20121> Direct david.delb...@trimbletl.com <http://www.trimbletl.com/>
How to put inline image in doxia generate doc
Hello, i am trying to transfert documentation for an application, which is written using a .odt file, to some doxia process, so i can be sure pdf is the lastest version in the build. However, i am facing a surprisingly basic problem: i can't find out how to include an inline image. That is, i can put image before, or after a paragraph, but i can't put it inside a paragraph. I tried xhtml, apt, confluence, twiki, xdoc and markdown. Here are my results: apt - there is no way to make an inline image in apt confluence - while the language allows it, and the eclipse confluence parser shows it properly, the image tag is not read by doxia and the wiki code appear as is on the final document. image is properly recognized when inside a paragraph twiki - didn't find a way to make an inline image markdown - image tag is recognized inline, but everything after the tag, in same paragraph, is ignored. xhtml - while verbose, this language does allow inline image. Unfortunately, all inline image are showed above paragraph in the resulting pdf, not inline. xdoc - the parser just doesn't kick in, doxia think it's a docbook and messes everything So, my question is simple: how can i put an inline image in a doxia document. Which markup language must i use, and what is the process? Best result i got so far was with xhtml, and it looked like this in pdf, http://i.imgur.com/82mL281.png when it should have looked about like this (original open office document): http://i.imgur.com/UEDuQf1.png David Delbecq
Re: Only partial filtering of .bat with assembly
The documentation of assembly plugin does not says anything about changing delimiter. Moreover, it does not use maven resource plugin. I tried to change my version of m-r-p to a recent one that fixes the @ issue, but assembly does not seem to use it. The only workaround i found is to replace all my @ with ${At} and defin At=@ in filter. This create unreadable file on source side :s Any other suggestion? Should i fill a bug report? - Mail original - De: Wayne Fay wayne...@gmail.com À: Maven Users List users@maven.apache.org Envoyé: Mercredi 20 Avril 2011 23:01:48 Objet: Re: Only partial filtering of .bat with assembly i try to have some .bat files filtered by assembly plugin. However, for some reason, any batch line that starts with a @ is ignored by filterer :/ This is a big problem considering 90% of the script lines starts with a @. Is there some way to have filter don't ignore those lines? Pretty sure the assembly plugin uses the same configuration for filtering delimiters that m-r-p uses: http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#delimiters The delimiter list includes ${*} and @. You should be able to override those delimiters somehow. I honestly don't know the proper configuration as I've never needed to do this myself, but probably you can configure delimiters in configuration somewhere. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Only partial filtering of .bat with assembly
am using 2.2.1 Your report say that the fil is not filtered it it contains an @ My problem is that lines started with an @ are not filtered other ones are fine. plugin !-- NOTE: We don't need a groupId specification because the group is org.apache.maven.plugins ...which is assumed by default. -- artifactIdmaven-assembly-plugin/artifactId version2.2.1/version configuration filters filter${basedir}/filter.properties/filter /filters descriptors descriptorassembly-kit.xml/descriptor descriptorassembly-kitcours.xml/descriptor descriptorassembly-kitoutils.xml/descriptor descriptorassembly-kitpdf.xml/descriptor /descriptors /configuration executions execution idmake-assembly/id !-- this is used for inheritance merges -- phasepackage/phase !-- bind to the packaging phase -- goals goalsingle/goal /goals /execution /executions /plugin - Mail original - De: Marc Rohlfs pomar...@googlemail.com À: Maven Users List users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 11:07:20 Objet: Re: Only partial filtering of .bat with assembly Which version of the plugin do You use? I filed a bug report for this problem and it was solved with the plugin version 2.2.1. See: http://jira.codehaus.org/browse/MASSEMBLY-528 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Only partial filtering of .bat with assembly
Thanks for the hint, but not an option. The bat does not only call the jar file, it actually does some logic on parameters, call several applications, manage temporary files. We are migrating to maven an application that mixes together .bat/.sh, java jars and perl scripts.. We will later migrate to full java if possible, but one step at a time ;) - Mail original - De: Karl Heinz Marbaise k...@soebes.de À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 11:26:17 Objet: Re: Only partial filtering of .bat with assembly Hi, it looks like you are trying to build a BAT file which will call your java code...But for this purposes i would take a deeper look into the maven-appassembler-plugin which produces such kind of batch-file automatically... http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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: Only partial filtering of .bat with assembly
well, if i mark them as ressource they will be put in the jar file, no? - Mail original - De: Roland Asmann roland.asm...@adesso.at À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 12:38:44 Objet: Re: Only partial filtering of .bat with assembly How about you don't let the assembly-plugin copy your resources, but have the resources-plugin do it? Roland On 21.04.2011 13:31, David Delbecq wrote: Thanks for the hint, but not an option. The bat does not only call the jar file, it actually does some logic on parameters, call several applications, manage temporary files. We are migrating to maven an application that mixes together .bat/.sh, java jars and perl scripts.. We will later migrate to full java if possible, but one step at a time ;) - Mail original - De: Karl Heinz Marbaise k...@soebes.de À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 11:26:17 Objet: Re: Only partial filtering of .bat with assembly Hi, it looks like you are trying to build a BAT file which will call your java code...But for this purposes i would take a deeper look into the maven-appassembler-plugin which produces such kind of batch-file automatically... http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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 -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. -
Re: Only partial filtering of .bat with assembly
Could be a solution, i'll give it a try. - Mail original - De: Roland Asmann roland.asm...@adesso.at À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 13:17:38 Objet: Re: Only partial filtering of .bat with assembly The way I would do it, is create a directory called 'src/main/filter-resources' (or something similar, just NOT the default 'src/main/resources'!) and then configure the resource-plugin to run 'resources:copy-resources' to eg 'target/filtered-resources'. With filtering turned on of course. :-) Then you have the assembly-plugin configured to use 'target/filtered-resources' as input (resources? I'm not very familiar with the assembly-plugin!) for your assembly. I think this would do the trick. Just remember what I wrote in the parallel mail -- make sure you work around the @-bug! Roland On 21.04.2011 14:11, David Delbecq wrote: well, if i mark them as ressource they will be put in the jar file, no? - Mail original - De: Roland Asmann roland.asm...@adesso.at À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 12:38:44 Objet: Re: Only partial filtering of .bat with assembly How about you don't let the assembly-plugin copy your resources, but have the resources-plugin do it? Roland On 21.04.2011 13:31, David Delbecq wrote: Thanks for the hint, but not an option. The bat does not only call the jar file, it actually does some logic on parameters, call several applications, manage temporary files. We are migrating to maven an application that mixes together .bat/.sh, java jars and perl scripts.. We will later migrate to full java if possible, but one step at a time ;) - Mail original - De: Karl Heinz Marbaise k...@soebes.de À: users@maven.apache.org Envoyé: Jeudi 21 Avril 2011 11:26:17 Objet: Re: Only partial filtering of .bat with assembly Hi, it looks like you are trying to build a BAT file which will call your java code...But for this purposes i would take a deeper look into the maven-appassembler-plugin which produces such kind of batch-file automatically... http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/Only-partial-filtering-of-bat-with-assembly-tp4329257p4330450.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 -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. - -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - business. people. technology. -
Only partial filtering of .bat with assembly
Hello, i try to have some .bat files filtered by assembly plugin. However, for some reason, any batch line that starts with a @ is ignored by filterer :/ This is a big problem considering 90% of the script lines starts with a @. Is there some way to have filter don't ignore those lines? my source batch file: example ${pom.version} @java -jar .\lib\dvp-latexrenderer-${pom.version}.jar .\..\documents\%1\%1.xml .\..\documents\%1\%1-latex.xml images The output i get: example 1.0-SNAPSHOT @java -jar .\lib\dvp-latexrenderer-${pom.version}.jar .\..\documents\%1\%1.xml .\..\documents\%1\%1-latex.xml images Here is my assembly configuration by the way fileSet includesinclude*/include/includes directorysrc/assembly/script//directory filteredtrue/filtered directoryMode0755/directoryMode fileMode0755/fileMode /fileSet
Help solve Internal error in the plugin manager?
Number of imports: 10 import: org.codehaus.classworlds.en...@a6c57a42 import: org.codehaus.classworlds.en...@12f43f3b import: org.codehaus.classworlds.en...@20025374 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@92758522 import: org.codehaus.classworlds.en...@ebf2705b import: org.codehaus.classworlds.en...@bb25e54 import: org.codehaus.classworlds.en...@bece5185 import: org.codehaus.classworlds.en...@3fee8e37 import: org.codehaus.classworlds.en...@3fee19d8 this realm = plexus.core urls[0] = file:/home/delbd/dev/apache-maven-2.2.0/lib/maven-2.2.0-uber.jar Number of imports: 10 import: org.codehaus.classworlds.en...@a6c57a42 import: org.codehaus.classworlds.en...@12f43f3b import: org.codehaus.classworlds.en...@20025374 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@92758522 import: org.codehaus.classworlds.en...@ebf2705b import: org.codehaus.classworlds.en...@bb25e54 import: org.codehaus.classworlds.en...@bece5185 import: org.codehaus.classworlds.en...@3fee8e37 import: org.codehaus.classworlds.en...@3fee19d8 - [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.doxia:doxia-maven-plugin:1.1.1:render-books': Unable to load the mojo 'org.apache.maven.doxia:doxia-maven-plugin:1.1.1:render-books' in the plugin 'org.apache.maven.doxia:doxia-maven-plugin'. A required class is missing: hidden/org/codehaus/plexus/interpolation/ValueSource hidden.org.codehaus.plexus.interpolation.ValueSource [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 32 seconds [INFO] Finished at: Fri Jul 24 16:48:56 CEST 2009 [INFO] Final Memory: 25M/282M [INFO] -- David Delbecq ICT Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can the maven-upload-plugin be used in a open source project?
En l'instant précis du 19/01/2009 14:43, Jaikiran s'exprimait en ces termes: I was working on a Maven project and was looking for a plugin which could upload some documentation to some remote location. While searching this mailing list i came across the maven-upload-plugin which is hosted at http://repository.atlassian.com/maven2/com/atlassian/maven/plugins/maven-upload-plugin/1.1/ http://repository.atlassian.com/maven2/com/atlassian/maven/plugins/maven-upload-plugin/1.1/ Its exactly what i was looking for. But is that plugin meant to be used in a open source project? I am curious since the plugin is hosted at a *.com domain. Any inputs? You should ask atlassian what are de licensing terms for this artifacts. Anyway, it's not because a plugin is commercial or closed source that it's use is incompatible with an open source project. What you can't do without atlassian authorisation is distribute their plugin, but as long as it's them distributing it, you are not impacted by licensing. What could be a problem to you is if atlassian stop distributing it :) The opensource nature of a project related to the distribution licences and execution of this project, not to it's build process. If you want to create an open source project that request an expensive development suite to be build, you can do it, you will just have more trouble finding developper in te open source communities :) -- David Delbecq ICT Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: specifying latest for a dependency
En l'instant précis du 19/11/08 17:01, Todd Thiessen s'exprimait en ces termes: I think my biggest confusion was the naming convension here. The term SNAPSHOT typically means a fixed state of something at a particular point in time. However, in Maven it isn't fixed at all. It is in constant flux. A better name for SNAPSHOT would of been something like LATEST-DEV. I see no confusion. More over, snapshot are fixed. What you did not fix however, in your pom it which snapshot to use, so maven choose to download the latest snapshot. SNAPSHOT is a good term for an automated daily build. LATEST-DEV would be more, to me, like asking maven to connect to version control an do a build from it. Example of using a fixed snapshot: version1.0-beta-3-20080505.072643-6/version This will fix dependency to that explicit snapshot made on 05/05/2008 of 1.0-beta3 while version1.0-beta3-SNAPSHOT/version will point always to latest snapshot of 1.0-beta3 -- David Delbecq ICT Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: why maven determine to adopt nearest definition to resolve the dependcy conflicts?
En l'instant précis du 17/11/08 13:41, sean.chen(陈思淼) s'exprimait en ces termes: In our enterprise project, we are care about the version change of the dependency, sometimes our EAR project fail in the production environment just because of a new version of dependency have be adopted. the version change just because someone add a new transitive dependency which has the shortest path to the dependency tree root. and in this situation, we didn't know anything about the final EAR changes. I am question why maven determine to adopt nearest definition to resolve the dependcy conflicts, can it config it just throw a exception with enough information, and we can specific write the version of dependency in the dependencyManagement section. This might be what you'r looking for: http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html -- David Delbecq ICT Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: License of Maven2
En l'instant précis du 23/07/08 08:20, query s'exprimait en ces termes: Hi,Can I use Maven2 as project management tool for my commercial application or is this tool only for open source projects?Do I need to include the Maven license file along with my application?I went through license.txt. But still I want to get confirmed with license requirements. Please guide me. As long as you don't distribute maven with your application and maven is not required to use your application, licence does not concern to your application. The licence rules the use and distribution of maven, not was is produced by maven. Otherwise it would be like having to pay licence fees to adobe just to distribute a .pdf file made by adobe writer :) It would be non-sense. On the other end, be carefull with the licences of the libraries you use in your application, those will apply to your final product! -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy site using ftp? somebody any idea?
UP: somebody any idea? En l'instant précis du 18/06/08 20:28, David Delbecq s'exprimait en ces termes: Hello, i try to deploy my maven site using ftp. I followed instruction there http://maven.apache.org/guides/mini/guide-deploy-ftp.html to activate ftp support and i added site idmyproject-site/id urlftp://myserver/myproject/url /site However, i got [INFO] Wagon protocol 'ftp' doesn't support directory copying So i followed discussion there: http://jira.codehaus.org/browse/WAGON-148 which basically tell it has been fixed in wagon 1.0-beta-3. I then made this change in my pom.xml: extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-beta-3/version /extension But now i get [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection()V [INFO] [INFO] Trace java.lang.AbstractMethodError: org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection()V at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:181) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) 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) What is the correct configuration to deploy site using ftp? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy site using ftp?
Hello, i try to deploy my maven site using ftp. I followed instruction there http://maven.apache.org/guides/mini/guide-deploy-ftp.html to activate ftp support and i added site idmyproject-site/id urlftp://myserver/myproject/url /site However, i got [INFO] Wagon protocol 'ftp' doesn't support directory copying So i followed discussion there: http://jira.codehaus.org/browse/WAGON-148 which basically tell it has been fixed in wagon 1.0-beta-3. I then made this change in my pom.xml: extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-beta-3/version /extension But now i get [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection()V [INFO] [INFO] Trace java.lang.AbstractMethodError: org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection()V at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106) at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:181) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) 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) What is the correct configuration to deploy site using ftp? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: temporary pom for building project and dependencies?
You can create a modules based pom that will build all your projects. http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Aggregation Le Thursday 05 June 2008 08:15:22 Kristian Rink, vous avez écrit : Folks; not sure whether this is a common use case, I wonder what's a good way to have the following scenario done. We handle our projects using maven2, and we are used to have things split up: - There's a core project (jar) of the application which includes commonly used classes and interfaces needed in all other applications. - There are some components projects (jars, as well), depending upon core, used in some of the business applications. - There are a bunch of, say, war artifacts offering exposing web interfaces or web services, depending upon various components. My problem, by now, is that, in case of some change tthat cross these module boundaries, I have to rebuild altogether core, a few components packages and the war artifact relying upon them. My question is whether there is some way to, in case these projects are independent, abuse maven to have, say, core and a set of components automatically built and installed along with (and possibly before) building the war artifact depending upon them? Is there a common way of doing so, or should I reconsider my project structure? TIA and best regards, Kristian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext 557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Method calculateLink threw exception for reference $PathTool
Le Sunday 01 June 2008 20:51:17 David Delbecq, vous avez écrit : Hello, I get the following error when i try to generate the site of a maven2 modules based project. [INFO] Generating Continuous Integration report. [ERROR] Method calculateLink threw exception for reference $PathTool in template org/apache/maven/doxia/siterenderer/resources/default-site.vm at [2,29] Self responding :) Seems it's a problem related to the fact i forgot to define the href on some menu link in my site.xml (it was a bit late,i wrote url= instead of href=). The error message was far from explicit :) -- David Delbecq Institut Royal Météorologique Ext 557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
manage dependencies at runtime
Hello, I have an application that is fully managed with maven 2 at compile time. It has also it's own plugin infrastucture. So it's possible to include plugins to my app, by adding the plugins in a specific jar folder. Those plugins (which have nothing to do with maven plugins!) are also build with maven. That means, all jars in my application (main jar, dependency jars, plugins jar) contain a pom.xml and a pom.properties in the META-INF. What i'd like to do, before loading my plugins (which is currently simply done with a jarclassloader) is: - analyse all my plugins jar - locate their pom and extract dependency informations, in a recursive way - for all dependencies that are not provided by main app, - download the dependency jar - store it in a repository folder specific to app - add it to my jarclassloader. So i need a way to add a maven dependencies management to my own app. That way, my plugins that have dependencies don't have to bundle them in a zip, and user just have to put the plugin jar in my plugins/ folder, maven dependencies discovery will do the rest. Question is, is it possible to embed in my application a small maven dependency management? (i don't need the lifecycle suff, just to be able to manage dependencies and get a recursive list of them, resolved) -- David Delbecq Institut Royal Météorologique Ext 557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven build causing java segmentation fault - help needed
Doug Douglass a écrit : Mark, The only time I've seen a maven build trigger a JVM seg fault the problem was due to bad server memory. It was low end hardware running CentOS and hosted our Cruise Control install, amongst many other things. The seg faults were intermittent. HTH and good luck, Doug On Wed, Apr 30, 2008 at 3:54 PM, Mark Hansen [EMAIL PROTECTED] wrote: We are trying to get the maven build for our product working under RedHat linux (running as a guest OS under VMWare). This build works fine on Windows Vista and XP. But under RedHat it is causing a Java segmentation fault. See attached log file for details. Does anyone have any ideas about how we might get to the bottom of what is causing this and fix it? Here are some details about our environment. Maven version 2.0.9 JDK 1.6.0_05 Red Hat Enterprise Linux AS release 4 (Nahant Update 6) jvm_args: -Xms768m -Xmx768m -Xss2048k Is that a sun provided jvm (you downloaded it from sun web site) or a redhat provided one (using rpms). In later case, try to switch to sun jvm. If that doesn't solve, try to change minor jvm verison (download from sun archive a 1.6.0_04 for example). Such crashes are most of the time due to either hardware issues, or jvm bugs. Try also this, before starting maven: ulimit -s 2048 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying Libs to Archiva
En l'instant précis du 15/04/08 13:26, James Clinton s'exprimait en ces termes: Is there a way where I can upload my entire local repository into Archiva as a Managed Repository in one hit, or do I need to use the mvn deploy:deploy-file command for each file? Regards. Just copy the files to the archiva folder on the server filesystem (using scp for example) -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where to find maven 2 simian report plugin?
Hello, I migrated a projet from maven1 to maven2. Compile, package and deployement process ahve now been successfully migrated. We have however some problems with reports. We can't find what's the maven2 equivalent of maven1 simian report plugin? We get this: [INFO] The plugin 'org.codehaus.mojo:simian-maven-plugin' does not exist or no valid version could be found I search google but can't find maven2 simian report plugin. Was it not ported to maven2? Is another plugin using a tool similar to simian for reporting code ducplication? -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to find maven 2 simian report plugin?
En l'instant précis du 10/04/08 12:21, Tim Kettler s'exprimait en ces termes: Hi, the plugin is here [1]. However, there seems to be no release of it yet. You can subscribe to the mojo project's mailinglist and ask the there for an release. Or you can grab the sources from here [2] and and just make an internal release of the plugin. -Tim thanks a lot -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
System.out and System.err in surefire
Hello, in the past (maven1), when i ran unit test, everything from stdout / stderr was redirected to the report txt file, making it easy to follow test progress when the test were makig lots of noise. After upgrading to maven2, the stderr seems properly redirect to report file, but not stdout. How can i configure surefire so that it colelct also System.out to the report file? It annoying cause my test are very verbose about their process (this information is used only to get details of failed tests). Thanks -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-dependency-plugin does not exist or no valid version could be found
Can someone explain to me this error please? For curious reasons, maven is enable to find it's dependency plugin $ mvn -e dependency:tree + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-dependency-plugin' does not exist or no valid version could be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-dependency-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1286) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) 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.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-dependency-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:167) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257) ... 14 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Apr 04 13:26:21 GMT+01:00 2008 [INFO] Final Memory: 1M/4M [INFO] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No answers yet: Error deploying artifact (Is a directory)
Little up for my question, still didn't find a solution En l'instant précis du 28/03/08 17:43, David Delbecq s'exprimait en ces termes: Hello, i try to deploy a .war to our release repository, but mvn deploy fails with this message: [INFO] [install:install] [INFO] No primary artifact to install, installing attached artifacts instead. [INFO] Installing /home/delbd/dev/workspaces/intranet/RMI_intranet/target/intranet-1.0-SNAPSHOT-production.war to /home/delbd/.m2/repository/be/meteo/intranet/1.0-SNAPSHOT/intranet-1.0-SNAPSHOT-production.war [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from restricted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: /home/delbd/dev/workspaces/intranet/RMI_intranet/target/classes (Is a directory) Why does it try to deploy my target/classes folder? I saw no option in maven deploy plugin documentation about how to specify which archetype to upload. The only particularities that may have influence on process are below. Any suggestion on what's wrong? Thanks plugin artifactIdmaven-war-plugin/artifactId configuration classifier${webapp.classifier}/classifier warSourceDirectorywebapp/warSourceDirectory webResources resource !-- this is relative to the pom.xml directory -- directoryconfigSets/${config.configSet}/directory /resource resource !-- this is relative to the pom.xml directory -- directory${project.build.directory}/mergedFiles/directory /resource /webResources /configuration /plugin profile idproduction/id activation property nametype/name valueproduction/value /property /activationproperties config.configSetproduction/config.configSet webapp.classifierproduction/webapp.classifier /properties /profile -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to manage Maven 1 artifacts of type zip
IvanPopov a écrit : Hi, it seems as if Archiva do not manage them. If I install it on my repository such as groupId/ [type = zips]/ artefactId-version.[type=zip] Archiva is not able to download it. I think there is a problem relative to maven 2 as zips seems to be considered as distribution. This is a major issue for me, so if someone has an idea, you are welcome. Regards. What does happende when the path is groupId/jars/artefactId-version.zip I used the war type with maven1, they where installed in jars/ folder along with jar file, so maybe archiva expects everything there.
All repos disappear after attempt at add remote repository
Using archiva 1.0.1, when i try to add a remote repository, after i click the add, the interface comme back to my form, with all i filled in, without error message, but my list of repositories have now disappeared. I currently have have 4 local repos, and 4 remote repos, with links between remote repos and local repos. I have to restart the server to get them back. That's problematic, sinc i want to add a repository to archiva, and i can't do it. Server logs give no more informations. There is absolutely no output in logs during the operation! Any clue where that comes from? I didn't find any existing bug report for this... -- David Delbecq Institut Royal Météorologique Ext:557
Error deploying artifact (Is a directory)
Hello, i try to deploy a .war to our release repository, but mvn deploy fails with this message: [INFO] [install:install] [INFO] No primary artifact to install, installing attached artifacts instead. [INFO] Installing /home/delbd/dev/workspaces/intranet/RMI_intranet/target/intranet-1.0-SNAPSHOT-production.war to /home/delbd/.m2/repository/be/meteo/intranet/1.0-SNAPSHOT/intranet-1.0-SNAPSHOT-production.war [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from restricted [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: /home/delbd/dev/workspaces/intranet/RMI_intranet/target/classes (Is a directory) Why does it try to deploy my target/classes folder? I saw no option in maven deploy plugin documentation about how to specify which archetype to upload. The only particularities that may have influence on process are below. Any suggestion on what's wrong? Thanks plugin artifactIdmaven-war-plugin/artifactId configuration classifier${webapp.classifier}/classifier warSourceDirectorywebapp/warSourceDirectory webResources resource !-- this is relative to the pom.xml directory -- directoryconfigSets/${config.configSet}/directory /resource resource !-- this is relative to the pom.xml directory -- directory${project.build.directory}/mergedFiles/directory /resource /webResources /configuration /plugin profile idproduction/id activation property nametype/name valueproduction/value /property /activation properties config.configSetproduction/config.configSet webapp.classifierproduction/webapp.classifier /properties /profile -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best practices for java version?
Hello, using maven2, i notice that, while there are options to specify which java version to use when compiling, there is little information on released jars in repo about which version there are compiled for. It's a problem in an environment where the java version has limitation. For example, we are working now on a tomcat using java 1.4. After upgrading to maven and making a test deploy, we noticed that some of the transitive dependencies are build with java 1.5. But nothing on project makes it visible until you deploy and requires one of those jars. So question is, are there any recommendations on how to handle java version in releases and in dependencies. If, in the build, i set the target and source in compiler, will the compiler check that dependencies respect those target (so in my case, if i point to 1.4, it will build error because some transitive dep are java 5?) What are the best practice when deploying artifact about java version used for compiling? I read somewhere that the purpose of maven release process is to make the build reproductible, but if that build does not include aimed compiler, we can't assure a rebuild will be fully compatible with previous build, if the java version changed... Thanks for giving information :) Regards, David Delbecq - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practices for java version?
Graham Leggett a écrit : david delbecq wrote: What are the best practice when deploying artifact about java version used for compiling? I read somewhere that the purpose of maven release process is to make the build reproductible, but if that build does not include aimed compiler, we can't assure a rebuild will be fully compatible with previous build, if the java version changed... Configure the maven-compiler-plugin to specify the specific java version you need for that particular build. This will ensure your future rebuild is repeatable, even with a newer JDK version. Regards, Graham -- Thank you all for all solutions, but my concern is very particular about dependencies, when i pickup dependencies on maven repository, how do i know about it's transititive dependencies java requirement, there doesn't seems to be anything about it in the pom.xml. So when i pickup, for example, richfaces, i have absolutely no way to know 1) does it requires a java 1.4, java 5 or java 6 runtime 2) do it's transitive dependency depends on java 1.4, java 5 or java 6 3) in the end, will it run on my java 1.4 server? It's very frustrating to work 2 weeks porting from maven1 to maven2 and in the end discover the transitive dependecies brings up java 5 requirement our production server can't cope with :) Now that mean i either 1) upgrade server (seems resonnable) to java 5 2) go to each classload exception, one at a time, to pickup a wrong java requirement library, rebuild it on java 1.4 and the publish it in internal repo, hoping it won't collide with the official builded file. It's a very long process, since the exceptions doe not occur at init time, but in middle of day work. Even if i do 1) i have no garantee that none of the jar are build on java 6, which would be a problem since our prod environnement has, afaik, absolutely no java 6 jvm available. Considering Those point, a sideway question too, could it be possible to ask maven to recompile very dependencies when building a project? Since sources are published along jar and scm informations is present in pom.xml, it should be faisible, no? And another one, could this (information about jvm or even java version, be added to jar? using the extension mecanism, in future maven version?) Regards, David Delbecq - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven says artifact does not exist, without consulting repository
Hello, i have a curious problem here. Maven tells me this (see below) it can't find a artifact. However, the file is present and i can download it via a browser using the following address: http://rmibeta.oma.be:9090/archiva/repository/internal-releases/org/apache/xmlgraphics/fop/1.0-SNAPSHOT/fop-1.0-SNAPSHOT.jar moreover, neither archiva, nor maven show tracks of an attempt at downloading the file. Is there any reason why maven would suppose file does not exist without consulting repositories? The local (in .m2/repository) fop folder has been removed to ensure there is conflicting pom.xml locally, but there is none. Help welcomes. Thanks, David Delbecq [INFO] Building RMI-Shark-ToolAgents [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.xmlgraphics:fop:jar:1.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) be.meteo.intranet.support:RMI-support-shark-toolAgents:jar:1.0-SNAPSHOT 2) org.apache.xmlgraphics:fop:jar:1.0-SNAPSHOT -- 1 required artifact is missing. for artifact: be.meteo.intranet.support:RMI-support-shark-toolAgents:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), restricted (http://rmibeta.oma.be:9090/archiva/repository/internal-releases/), releases (http://rmibeta.oma.be:9090/archiva/repository/releases/), snapshots (http://rmibeta.oma.be:9090/archiva/repository/sandbox/) -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven says artifact does not exist, without consulting repository
Huh, thanks stupid me putting sandbox instead of snapshot :) There were no snaphsot repo in that pom.xml, that explain ;) En l'instant précis du 26/03/08 12:39, Upul Godage s'exprimait en ces termes: Hi, Check whether snapshots are enabled for that repository in the ~/.m2/settings.xml or pom.xml* * snapshots enabledtrue/enabled /snapshots Upul On Wed, Mar 26, 2008 at 4:53 PM, David Delbecq [EMAIL PROTECTED] wrote: Hello, i have a curious problem here. Maven tells me this (see below) it can't find a artifact. However, the file is present and i can download it via a browser using the following address: http://rmibeta.oma.be:9090/archiva/repository/internal-releases/org/apache/xmlgraphics/fop/1.0-SNAPSHOT/fop-1.0-SNAPSHOT.jar moreover, neither archiva, nor maven show tracks of an attempt at downloading the file. Is there any reason why maven would suppose file does not exist without consulting repositories? The local (in .m2/repository) fop folder has been removed to ensure there is conflicting pom.xml locally, but there is none. Help welcomes. Thanks, David Delbecq [INFO] Building RMI-Shark-ToolAgents [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.xmlgraphics:fop:jar:1.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.xmlgraphics -DartifactId=fop -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) be.meteo.intranet.support:RMI-support-shark-toolAgents:jar:1.0-SNAPSHOT 2) org.apache.xmlgraphics:fop:jar:1.0-SNAPSHOT -- 1 required artifact is missing. for artifact: be.meteo.intranet.support:RMI-support-shark-toolAgents:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), restricted (http://rmibeta.oma.be:9090/archiva/repository/internal-releases/), releases (http://rmibeta.oma.be:9090/archiva/repository/releases/), snapshots (http://rmibeta.oma.be:9090/archiva/repository/sandbox/) -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overwriting external resources
En l'instant précis du 19/03/08 10:10, Dominik Heller s'exprimait en ces termes: Hello there, well it seems that i was a little bit to fast to announce my success. So the thing is, when a file X in the WEB-INF/config folder has been changed more recently then the file I want to overwrite the file X with then it just won't do it. The reason why I thought it would work is because my pom is located in tzhe very top folder of the project and so by using warSourceDirectorywebapp/warSourceDirectory a new folder would be created. Any idea someone how to force maven to overwrite the files??? thx in advance. Tested here: webapp/WEB-INF/Domain.xml , date of 20-03-2008 configSet/user/WEB-INF/Domain.xml, date of 04-03-2008 pom.xml: plugin artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebapp/warSourceDirectory webResources resource !-- this is relative to the pom.xml directory -- directoryconfigSets/${config.configSet}/directory /resource /webResources /configuration /plugin profiles profile idbuild-user/id activation property nametype/name valueuser/value /property /activation properties config.configSetuser/config.configSet !-- other unrelated config values -- /properties /profile /profiles Result after mvn clean package: ls -l target/intranet-1.0-SNAPSHOT/WEB-INF/Domain.xml -rw-r--r-- 1 delbd delbd 36757 2008-03-04 10:38 target/intranet-1.0-SNAPSHOT/WEB-INF/Domain.xml The correctly the old configSet file that override the more recent general file. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting classifier for maven war plugin
Hello, am trying to get maven 2 to build wars of the form artifact-version-classifier.war I configure this: plugin artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebapp/warSourceDirectory webResources classifier${webapp.classifier}/classifier /webResources /configuration /plugin and this: profile idbuild-delbd/id activation property nametype/name valuedelbd/value /property /activation properties webapp.classifierdelbd/webapp.classifier /properties /profile And i get this when issue a mvn package: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.1-alpha-1 (found static expression: 'delbd' which may act as a default value). Cause: Cannot assign configuration entry 'classifier' to 'class org.apache.maven.model.Resource' from 'delbd', which is of type class java.lang.String Can someone explain me? The Docs on maven web site states that war plugin takes a String for classifier, but it seems to fails. How should i do it? Thanks. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setting classifier for maven war plugin
En l'instant précis du 20/03/08 13:34, David Delbecq s'exprimait en ces termes: Hello, am trying to get maven 2 to build wars of the form artifact-version-classifier.war I configure this: plugin artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebapp/warSourceDirectory webResources classifier${webapp.classifier}/classifier /webResources /configuration /plugin and this: profile idbuild-delbd/id activation property nametype/name valuedelbd/value /property /activation properties webapp.classifierdelbd/webapp.classifier /properties /profile And i get this when issue a mvn package: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-war-plugin:2.1-alpha-1 (found static expression: 'delbd' which may act as a default value). Cause: Cannot assign configuration entry 'classifier' to 'class org.apache.maven.model.Resource' from 'delbd', which is of type class java.lang.String Can someone explain me? The Docs on maven web site states that war plugin takes a String for classifier, but it seems to fails. How should i do it? Thanks. Ok, stupid me putting classifier at wrong place :s -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert SNAPSHOT timestamps from utc to local time
Just a stupid suggestion: Wouldn't it be much easier to either 1) Setup the local clock on snapshots generating server to french time and have that server says that is utc time? That's a quick and dirty, but it's not like you would have to change or 3) Have people look, when they explore snapshot repository using their web browser, at the time column that appear next to file list, which is expressed in server local time afaik. or even better 2) Take 10 minute to teach your team members what UTC mean (substract one hour from local time in winter, 2 hours in summer)? It's not like it is difficult calculation to know utc time. I work with a belgian time, we are all in same building, so, i think, we are in same timezone, and we have no difficulties to cope with UTC time :) Heck, all our company servers anyway speaks only utc ^^. And on linux stations, the simple date commands tells me the UTC shift am at: $ date mercredi 19 mars 2008, 08:30:38 (UTC+0100) regards En l'instant précis du 18/03/08 17:04, MATHUS Baptiste s'exprimait en ces termes: My company is french, we sell to frenchies and have almost no chance to ever sell to another country ;). In fact, we work in the healthcare area and there's lots and lots of administrative rules that even make it difficult to follow only for the french market :-). So, I'll hack the code and propose a patch with some additional parameter to tune this behaviour, hoping it finds a way into the trunk one day. Cheers. -Message d'origine- De : Wayne Fay [mailto:[EMAIL PROTECTED] Envoyé : mardi 18 mars 2008 16:32 À : Maven Users List Objet : Re: Convert SNAPSHOT timestamps from utc to local time Not that I'm aware of, at least, not today. If you really must have this feature, you could add a configuration and hack the code, but as with any user-provided patch, there's no guarantee it would be accepted into the core if you contributed it via Jira. Maven uses UTC on purpose so that timestamps are gloabally unique and incrementing. Then when I'm working in CA and the rest of my team is in NJ, and we're both deploying to the same corporate repo, my 11am (PT) builds are properly considered newer than your 1pm (ET) builds. If you're all in the same timezone, this seems like less of a problem, but how common is that in today's corporate climate? I know my small team of 5 people is in 3 timezones. Wayne On 3/18/08, MATHUS Baptiste [EMAIL PROTECTED] wrote: Hi all, We're having a small problem with deployment: UTC is being used for replacing SNAPSHOT with timestamp. For us, UTC is one hour behind local time. In some days, it will be 2 hours. It's a bit annoying because people are sometimes wondering which snapshot is corresponding to their commit. We'd prefer being able to deploy using local time (at the moment, for example utc is something like 11h47, and our local time is 12h47). I looked at the code and found that the code is in the org.apache.maven.artifact.transform.SnapshotTransformation class. Is there a way to define some global variable (used by the timezone or something like that) to shift generated timestamps? Thanks in advance. Cheers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A provide mecanism for poms?
Hello maven users, I encountered a curiosity in our maven dependency graph, while trying to find out why our webapp was failing. What is the suggested and most proper solution when a library X and a library Y are providing the same api. Am using myfaces api and myfaces impl. Both are implementation respectively of the jsf-api and jsf-impl of sun. However, a few jsf based library are marked as depending on jsf-api and jsf-impl. Is there some way to tell maven that myfaces-api and myfaces-impl are the same as jsf-api and jsf-impl and, as such, that if it encounter jsf-api or jsf-impl in the dependencies transitivity, it should not take that into consideration cause myfaecs was used higher in the graph? I could use restriction, but since the dependency to jsf can go deep in the graph using several path, with pom will be bloated with restriction ... There are quite a good amount of sun tools that have an equivalent counter-part in apache project i think. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert SNAPSHOT timestamps from utc to local time
Agreed, though there's a lot of things that are not complex. But as I said, nobody here ever use UTC (and there's very little chance we are going to ever need it). This would obviously be possible to teach our developer what UTC is, and how to shift the time by themselves. But I really think this would be useless inside our company. It's just that it's far easier than maintaining a local fork of a plugin, considering your requirement it that developper should be able to find out if their commit are part of a given snapshot :) Generally in project, i don't like to see attempts at using a tool for something it was not designed for, unless there are string reasons behind this. One of the purposes of snapshots numbering it to guarantee their order. If you use localtime you risk to break that, unless you don't forget to include the UTC shift used at build time. If you don't take care, when the time changes from summer to winter, and your snaphsots build make 2 snapshots (for whatever reason) around the time change, you can end up with most recent snapshot having the oldest time... -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A provide mecanism for poms?
En l'instant précis du 19/03/08 11:45, Stephen Connolly s'exprimait en ces termes: well I would have jsf-api as scope=provided I would not depend on jsf-impl Indeed, i could add a provided rule at top of tree for both :) I bet i didn't think enough about it :D Note that it didn't explicitly add jst-api/impl to our tree, it's a transitive dependency that comes at least with richfaces ^^, maybe with some other jsf components You will be deploying this application to a container that provides the api and it's impl. You should not be depending on any of the impl classes, so that would be my logic. If you then have customers that want to deploy to a container that does not supply a JSF impl, you could have assembler produce two distributions for these customers: 1. with the JSF-api and JSF-impl 2. with the myfaces-api and myfaces-impl Generated artefact is for internal use only, and we need myfaces in it (tomcat does not provide it ;) ). However, am curious. How do you ask maven2 to produce several artefacts with different dependency tree/different resources. I'm interrested in being able to generate artefact for test and production at the same time (you send the war to test, if it's ok, you already have it's corresponding production war, which includes it's production configuration) -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A provide mecanism for poms?
En l'instant précis du 19/03/08 11:53, Martin Höller s'exprimait en ces termes: On Wednesday 19 March 2008 Stephen Connolly wrote: well I would have jsf-api as scope=provided That's not possible if you develop your own JSF component. You would need it at compile time. - martin As far as i know, scope=provided are available at compile time but not bundled in final package -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
release plugin and modules tagging does not work?
Hello, I have the following structure locally: releases - pom.xml - module1 - pom.xml - module2 - pom.xml The release is a pom.xml that mainly contains a version number (SNAPSHOT), module tags and scm informations All poms have correct information tags. Individually, i can perform a release on each submodule without trouble (tagging work, so scm is set correctly to pom). However, if i try to release all modules at once using toplevel pom, maven release plugin only tags the parent poms instead of tagging each submodule. It doesn't seem to respect scm informations present in submodules My svn structure is as follow http://svn/path - releases -trunk -tags -branches - module1 -trunk -tags -branches - module2 -trunk -tags -branches I use property svn:externals to collect modules as subfolders of releases. Is it a known limitation of maven release plugin? Are there any work-around for this? Thanks for informations -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Customizing Build order
En l'instant précis du 18/03/08 09:42, amit kumar s'exprimait en ces termes: Hi, I have a multi-module project with the following structure. Root -A -A1 -A2 -A3 -B -B1 -B2 -B3 -B4 In the Root's pom i have mentioned my modules as: moduleA/module moduleB/module Now is there a way that I can change the normal build order(which is) -Root -A -A1 -A2 -A3 -B -B1 -B2 -B3 -B4 to something like -Root -A -A1 -A2 -B -B1 -B2 -A3 -B4 It is actually a requirement. But I doubt that there is a possibility that the CVS structure itself is not competent enough then to handle inter-module dependencies. Any inputs? Thanks and regards, Amit Kumar In the A3 project, add dependencies that point to all other projects you need to have compiled before (i suspect you need B2 resources for A3?), maven should order them properly. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overwriting external resources
En l'instant précis du 18/03/08 12:43, Dominik Heller s'exprimait en ces termes: Hi i am pretty new to maven and encountered a problem by overwriting some external resources. I am using maven 2.0.7 and the maven-war-plugin 2.0.2. What I want to do is to overwrite a folder config in the WEB-INF containing some files with an other folder config which is stored in an external resource folder until I build the project. In the end it looks pretty much like this: -src/main/ -Customer/config -web.xml -config.xml -... -webapp/WEB-INF -config/... -web.xml when building the project i want to use profiles to replace the web.xml and the config foilder in the WEB-INF. For replacing the web.xml I am using the webXml property but so far I didn't find a way to overwrite the config folder in the WEB-INF. Any ideas someone?? thx in advance Hi, we had similar requirement here. Here is our solution: in build plugins: plugin artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebapp/warSourceDirectory webResources resource !-- this is relative to the pom.xml directory -- directoryconfigSets/${config.configSet}/directory /resource /webResources /configuration /plugin in profiles: profile iduser-x/id activation property nameuser/name valuex/value /property /activation properties config.configSetuserX/config.configSet /properties /profile We make our package using mvn package -Duser=x and it will override, in war, existing files with those found in configSets/userX/ -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is a version like 1.4.1-ea-SNAPSHOT considered SNAPSHOT version?
I think, as a manager of a project, when i see in the dependencies of a projet : version1.4.1.25/version, i just consider project depends on release 1.4.1.25. On the other hand, if i see version1.4.2-rc4/version my instinct tells me to check for 1.4.2 instead (for stability purposes) Now, a good question is, what's the point of having both ea and SNAPSHOT tags in a version from the library user point of view :D If user sees SNAPSHOT, he clearly know he is playing with instable yet to change version ;) En l'instant précis du 16/03/08 19:40, Wayne Fay s'exprimait en ces termes: You missed my point. I am asking you, what is the purpose of early access? Can you not simply say version 1.4.1.25 is the early access build? I simply do not believe in using early access or release candidate as components of the version tag itself. To me, these identifiers are orthogonal to the versioning itself. I retain the right to be proven otherwise. Wayne On 3/16/08, Sahoo [EMAIL PROTECTED] wrote: How else would one qualify a build as early access? Let's think of this hypothetical case: if some project team decides to make the early access build as a stable build, then how can they specify it? At some point of time, they would like to cut a branch in source code repository that's used to development of early access build where as the main line is used for development of the final release. During such active development of early access build, what version number can they use? Thanks, Sahoo Wayne Fay wrote: What's the difference between 1.4.1-ea-SNAPSHOT and 1.4.1-SNAPSHOT? That is, what is the actual utility of the early access tag? Personally, I've always been dubious of these kinds of tags. Wayne On 3/16/08, Sahoo [EMAIL PROTECTED] wrote: A/c to http://docs.codehaus.org/display/MAVEN/Versioning, 1.4.1-ea-SNAPSHOT results in a qualifier=ea-SNAPSHOT. Is this still considered a SNAPSHOT? What I mean by that is, if a new binary is posted in repository, will maven still download it just like it does for a SNAPSHOT version? If not, what's the best way to indicate early access build in a version string. I am using maven 2.0.7. Thanks, Sahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Adding goals to pom.xml
Hi Stefan, Was not going to ignore your previous response. It just doesn't seem to be any existing plugin that take a part of your webapp and life copy it to a test tomcat somewhere. Moreover, that would be an operation outside of compilation process (it's just a helper script so we don't have to do it by hand when debugging and don't have to go to full war generation ^^) regards David Delbecq En l'instant précis du 13/03/08 13:31, VUB Stefan Seidel s'exprimait en ces termes: Hi David, have a look at the plugin lists from maven.apache.org and mojo.codehaus.org. There you will find a lot of plugins that do difficult work for you. The antrun plugin is of course good for backward compatibility, but I think there are better plugins if you just need to copy a file. Search the mailing list archives for my previous posts on that topic. regard, Stefan david delbecq wrote: Hello, still in process of upgrading to maven2 here :) Most of the work is taking good shape, thanks to informations on this ML. I have a question regarding a few of our goals. We have, for a war project, added a few goals that quickly do a copy of a part of webapp to tomcat (instead of building war or even compile). This is a way to allow easy test of jsp / pictures / css. Just patch a life tomcat with new files. We do this with such a command in maven 1 maven debug_deploy:jsp maven debug_deploy:resources those goals are just simple ant copy tasks in maven.xml. What would be the recommanded way to convert this. Should i create a custom plugin that adds those targets to maven2, and include plugin in pom.xml, or is there a way to add targets to pom.xml? Should i use the ant plugin, but then how do i link it to a target instead of a phase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
resolution of conflicting dependencies in maven
Hello, i have a question relative to behaviour of maven when there are conflicting inherited dependency version. I expected maven to pick-up most recent version when presented to having to make a choice. However, it seems it just take the first inherited version it encounter on the tree and discard all other inherited version. Is it expected behaviour? Or is it going to change? Is it configurable? The only way is seem to find out to solve this, is to use the exclusion mechanism on the library that uses the oldest version. Thanks for information -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
change name of a jar when budnling in war
Hello, we are maven2-izing a maven 1 project here. In that project, we use slide. As you can see from maven repo here: http://repo1.maven.org/maven2/slide/jaas/2.1M1/ the various jar part of maven are quite anonymous. We would like, when maven builds the package, that those war be stored under a name like WEB-INF/lib/slide-jaas-2.1M1.jar instead of WEB-INF/lib/jaas-2.1M1.jar Is there some local name i can give to the dependencies that could be used? Thanks. -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding goals to pom.xml
Hello, still in process of upgrading to maven2 here :) Most of the work is taking good shape, thanks to informations on this ML. I have a question regarding a few of our goals. We have, for a war project, added a few goals that quickly do a copy of a part of webapp to tomcat (instead of building war or even compile). This is a way to allow easy test of jsp / pictures / css. Just patch a life tomcat with new files. We do this with such a command in maven 1 maven debug_deploy:jsp maven debug_deploy:resources those goals are just simple ant copy tasks in maven.xml. What would be the recommanded way to convert this. Should i create a custom plugin that adds those targets to maven2, and include plugin in pom.xml, or is there a way to add targets to pom.xml? Should i use the ant plugin, but then how do i link it to a target instead of a phase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems downloading variants of an artifact
Hello, If you look at http://repo1.maven.org/maven2/fop/fop/0.93/ You will see 2 jars for fop 0.93, one build on jdk15 et one on jdk14. How do i tell maven that there is such variation? Using: dependency groupIdfop/groupId artifactIdfop/artifactId version0.93-jdk14/version /dependency brings Downloading: http://repo1.maven.org/maven2/fop/fop/0.93-jdk14/fop-0.93-jdk14.jar; which does not work Using dependency groupIdfop/groupId artifactIdfop/artifactId version0.93/version /dependency brings Downloading: http://repo1.maven.org/maven2/fop/fop/0.93/fop-0.93.jar; which also fails. Since it's in the official maven repository, i suppose there i a way to get it, but how? thanks for help, this is blocking me! -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems downloading variants of an artifact
En l'instant précis du 11/03/08 10:43, [EMAIL PROTECTED] s'exprimait en ces termes: David Delbecq schrieb: Hello, If you look at http://repo1.maven.org/maven2/fop/fop/0.93/ You will see 2 jars for fop 0.93, one build on jdk15 et one on jdk14. How do i tell maven that there is such variation? use classifierjdk15/classifier in the dependency declaration. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thank you. May i suggest this feature be documented in de dependency description of pom.xml? It's hard to guess that alone :) http://maven.apache.org/pom.html#Dependencies -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
converting from maven1 to maven2, pom for third party jars?
Hello, in the process of converting our app from maven1 to maven2, we changed our repository to have maven2 structure. For most library we use public repositories (maven, jboss, apache) to fetch files. But from some libraries we had to make them available to our local repository, moving the jar from his group/jars/artefact-version.jar to group/artifact/version/artifact-version.jar. However, for the jar there is no pom files coming along, just a jar. maven2 has no special trouble handling them, except it keeps trying to go to all our configured repositories and try to download those inexistant pom: Downloading: http://xxx/repository/enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://download.java.net/maven/2//enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://archiva.openqa.org/repository/releases//enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://repository.jboss.com/maven2/enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://repo1.maven.org/maven2/enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://xxx/repository/enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://download.java.net/maven/2//enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://archiva.openqa.org/repository/releases//enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://repository.jboss.com/maven2/enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://repo1.maven.org/maven2/enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://xxx/repository/enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://download.java.net/maven/2//enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://archiva.openqa.org/repository/releases//enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://repository.jboss.com/maven2/enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://repo1.maven.org/maven2/enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom As you see, it tries to go to 5 different repositories, everytime to get a 404. Is there a recommended way to either a) tell maven that there is definitely no pom to download b) create the pom and metadata file from a .jar file (generic pom with correct names, but no dependencies)? I tried for some jar to manually create pom, i received complains about checksums ? and maven ignored the file! -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: converting from maven1 to maven2, pom for third party jars?
Did :) does not work, will investigate further. For now am doing scripted convertion server side, attackign directly the server direcgtory structure using install-file, works like a charm :D Nick Stolwijk a écrit : Take a look at the repositoryId [1] option of deploy-file and the server section in settings.xml [2]. They should take care of your authorisation. Hth, Nick Stolwijk [1] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#repositoryId [2] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html#class_server delbd wrote: the deploy target doesnt seem to accept the fact our local repository requires password authentification. it just fails. Our server ask client for credential for write operation (apache DAV mod) but maven doesn't try with password. i'll give a try using install:install-file thanks [EMAIL PROTECTED] a écrit : There is a solution for this problem. The deploy:deploy-file will automatically generate a pom file. So, remove the jars from your remote repository and deploy them again with mvn deploy:deploy-file . Perhaps if you make a list with the directories it should be possible to create a little script to do it. Hth, Nick S. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Wed 3/5/2008 16:27 To: Maven Users List Subject: converting from maven1 to maven2, pom for third party jars? Hello, in the process of converting our app from maven1 to maven2, we changed our repository to have maven2 structure. For most library we use public repositories (maven, jboss, apache) to fetch files. But from some libraries we had to make them available to our local repository, moving the jar from his group/jars/artefact-version.jar to group/artifact/version/artifact-version.jar. However, for the jar there is no pom files coming along, just a jar. maven2 has no special trouble handling them, except it keeps trying to go to all our configured repositories and try to download those inexistant pom: Downloading: http://xxx/repository/enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://download.java.net/maven/2//enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://archiva.openqa.org/repository/releases//enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://repository.jboss.com/maven2/enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://repo1.maven.org/maven2/enhydra/dods/dbmanager-api/6.4-1/dbmanager-api-6.4-1.pom Downloading: http://xxx/repository/enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://download.java.net/maven/2//enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://archiva.openqa.org/repository/releases//enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://repository.jboss.com/maven2/enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://repo1.maven.org/maven2/enhydra/dods/stdconnection/6.4-1/stdconnection-6.4-1.pom Downloading: http://xxx/repository/enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://download.java.net/maven/2//enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://archiva.openqa.org/repository/releases//enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://repository.jboss.com/maven2/enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom Downloading: http://repo1.maven.org/maven2/enhydra/dods/ejen/6.4-1/ejen-6.4-1.pom As you see, it tries to go to 5 different repositories, everytime to get a 404. Is there a recommended way to either a) tell maven that there is definitely no pom to download b) create the pom and metadata file from a .jar file (generic pom with correct names, but no dependencies)? I tried for some jar to manually create pom, i received complains about checksums ? and maven ignored the file! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
upgrade from maven 1 to maven 2
Hello, we have a few project here using maven 1. They become difficult to maintain when it come to using new plugins that are not available for maven 1. So we thought it might be time to switch to maven 2. Question is, considering about all projects are using preGoal/postGoal and personalized rules in maven.xml, what should i do with them? I read there is no equivalent of maven.xml, i need to use a plugin. Can I sort of embbed that plugin with the project that use it, or do i need to create a separate plugin project for each of our maven.xml, compile and deploy those plugin change everytime before compiling the main project (with maven 1, changes to maven.xml were immediate)? Also if someone can point me to documentation about converting that maven.xml to a plugin, it'll be great. Documentation here http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to do with maven.xml point to error page (the pages seems to have been removed from maven site :( ) example of such task of maven.xml here is, we have a project X that is a webapp. In a subdirectory of that webapp we need to copy all ressources of another project Y, and we need to merge the struts and web.xml configs (we use a xslt processor for that). Am not sure how easy that can be transfered to a plugin... -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgrade from maven 1 to maven 2
Hello, i was hopping there was some way to take my pack of maven.xml preGoal rule and just relocate them somewhere where maven2 would use them. You suggestion will not work. For our XSLT transform, we need to pass parameters to the xslt transform engine (for that we use saxon transformer with some specific transformation parameters), i don't see such equivalent in what you pointed me to nor is there information about version of xslt supported (1,2? we need 2). For the dependency plugin we have to investigate, but if that mean we need to upgrade included project to maven 2 also, that's a no go. That project i have no write access to and we don't plan maven 2 for it, we just currently, in our build process, download it along our main project, and retrieve some files from it (files we patch on the fly using ant:replace / rules btw). We don't even build it, we only need it's webapp (jsp/pictures/html/config) files integrated in our app. So, if we could keep our current build process rules (maven.xml), and just somehow move them in a plugin that would be lot's easier. Some of the jelly rules took time to implement, we don't have the time to recreate all them. Isn't it possible to take the maven.xml and put it in a project.jelly or it's maven2 equivalent? I need some direction on how to easily convert from maven1 to maven2, related to maven.xml, but all link related to that in maven site seem dead (see my first mail) En l'instant précis du 04/03/08 10:57, Samuel Le Berrigaud s'exprimait en ces termes: Hi David, You don't to implement your whole maven.xml into one maven2 plugin. Instead you should decompose what you do in your maven.xml and find out the existing maven 2 plugins that would enable those different tasks. For example, if I take your two examples below: - copying resources of another project: I would make that project a dependency of your web application and that would be sufficient to add those on your classpath. If you need them outside the classpath, I would probably use the maven dependency plugin: http://maven.apache.org/plugins/maven-dependency-plugin/ using the unpack goal, it will unpack the jar wherever you need to. I would attach that to the process-resources phase of you war module. - xslt transformation that should be fairly easy using the XSLT plugin: http://mojo.codehaus.org/xslt-maven-plugin/ attaching it to the same process-resources phase. Hope this all make sense. I strongly advise researching existing plugins before writing your own. All the configuration will go in your pom.xml so as with the maven.xml you can update those rules easily. SaM On Tue, Mar 4, 2008 at 8:39 PM, David Delbecq [EMAIL PROTECTED] wrote: Hello, we have a few project here using maven 1. They become difficult to maintain when it come to using new plugins that are not available for maven 1. So we thought it might be time to switch to maven 2. Question is, considering about all projects are using preGoal/postGoal and personalized rules in maven.xml, what should i do with them? I read there is no equivalent of maven.xml, i need to use a plugin. Can I sort of embbed that plugin with the project that use it, or do i need to create a separate plugin project for each of our maven.xml, compile and deploy those plugin change everytime before compiling the main project (with maven 1, changes to maven.xml were immediate)? Also if someone can point me to documentation about converting that maven.xml to a plugin, it'll be great. Documentation here http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to do with maven.xml point to error page (the pages seems to have been removed from maven site :( ) example of such task of maven.xml here is, we have a project X that is a webapp. In a subdirectory of that webapp we need to copy all ressources of another project Y, and we need to merge the struts and web.xml configs (we use a xslt processor for that). Am not sure how easy that can be transfered to a plugin... -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgrade from maven 1 to maven 2
En l'instant précis du 04/03/08 11:03, [EMAIL PROTECTED] s'exprimait en ces termes: David Delbecq schrieb: Hello, we have a few project here using maven 1. They become difficult to maintain when it come to using new plugins that are not available for maven 1. So we thought it might be time to switch to maven 2. Question is, considering about all projects are using preGoal/postGoal and personalized rules in maven.xml, what should i do with them? I read there is no equivalent of maven.xml, i need to use a plugin. Can I sort of embbed that plugin with the project that use it, or do i need to create a separate plugin project for each of our maven.xml, compile and deploy those plugin change everytime before compiling the main project (with maven 1, changes to maven.xml were immediate)? Also if someone can point me to documentation about converting that maven.xml to a plugin, it'll be great. Documentation here http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to do with maven.xml point to error page (the pages seems to have been removed from maven site :( ) example of such task of maven.xml here is, we have a project X that is a webapp. In a subdirectory of that webapp we need to copy all ressources of another project Y, and we need to merge the struts and web.xml configs (we use a xslt processor for that). Am not sure how easy that can be transfered to a plugin... Maven2 has a different approach, with the concept of lifecycle phases; you need to read the available information on that first. See the getting started guides here: http://maven.apache.org/guides/index.html Then in many cases the hacks that use preGoal/postGoal can be removed and replaced with a standard plugin. For example, to copy resources of another project Y you would: * have Y install those resources as an artifact into the repository * in project X, use the maven-dependency-plugin to pull those resources from the repository Y can not be modified :) We just pump files from it, so changing it so it uses maven 2 and publish the needed ressources is nogo. Where you have something that just cannot be done with an existing plugin, the easiest solution is usually to write an ant task to perform the necessary work, then bind the maven-ant-plugin to an appropriate *phase* of the build-cycle so that it runs at the appropriate time. See the documentation on maven-ant-plugin, executions sections and (again) the documentation about phases. Of course using ant tasks should be a last resort..there are a *lot* of standard plugins available. That could be a good solution i'll investigate, most our maven.xml codes are already using nearly exclusively ant tasks, thanks for suggestion. Does that ant taks also support jelly rules? We have foreach rules, that cycle on a 'toMerge' list of file that need to be processed by our xslt ant task. I understand it wouldn't be the best way, but we need a working way that need as little changes as possible to current rules so as to minimize risks of non working rules. As i see in docs, lifecycle is not that much different from pre/post goal, i suppose everything done in postGoal for war-resources could be attached somewhere at end of prepare-package lifecycle. Hope this helps.. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Institut Royal Météorologique Ext:557 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgrade from maven 1 to maven 2
I'll try to find out solution, i began with one of our simplest project, it's made of several subprojects (using multproject maven 1 goal), but they have no custom maven.xml (should be the easiest to convert). But i don't get how to get the equivalent of extend../project.xml/extend I tried parentrelativePath../pom.xml/relativePath/parent But with i try a mvn jar, it complains the groupId of the parent tag is not defined. That a problem because i need the groupId and the version to be inherited from the parent. How should i do it? The online doc is of no help. It says Alternatively, if we want the groupId and / or the version of your modules to be the same as their parents, you can remove the groupId and / or the version identity of your module in its POM. project parent groupIdcom.mycompany.app/groupId artifactIdmy-app/artifactId version1/version /parent modelVersion4.0.0/modelVersion artifactIdmy-module/artifactId /project As you see in xml fragment given, they did *not* remove the groupId and versionId? Is it possible to inherit groupId and versionId or will i have to manually maintain all those ids in each release? Sorry to bother you with basic question :) En l'instant précis du 04/03/08 11:32, Samuel Le Berrigaud s'exprimait en ces termes: Hi again, I personally don't know any plugin that would take your maven.xml and insert it into the maven 2 lifecycle. There is no notion of lifecycle in maven1, just goals. I guess implementing such plugin could be possible but definitely not trivial. Indeed the xslt plugin doesn't give much details about its support. You would probably need to get some work done on the existing one or write your own. I don't see that being a huge amount of work. But it would still be some work… Regarding the project on which you depend, your best bet is still to have it as a dependency for your project. Even if it is not maven2, you could probably get this other project team to deploy it to an internal maven2 repository or do it your self manually when they release it. Some other plugins will allow you to filter the files as you extract them. And as Simon said you still have the maven-antrun-plugin: http://maven.apache.org/plugins/maven-antrun-plugin/ I am sorry I cannot be more helpful here, maybe someone else has another experience with migrating maven.xml scripts? SaM PS: I don't know what happened to the page you reference in your first mail (http://maven.apache.org/guides/mini/guide-m1-m2.html). Maybe a maven developer could help here? On Tue, Mar 4, 2008 at 9:11 PM, David Delbecq [EMAIL PROTECTED] wrote: Hello, i was hopping there was some way to take my pack of maven.xml preGoal rule and just relocate them somewhere where maven2 would use them. You suggestion will not work. For our XSLT transform, we need to pass parameters to the xslt transform engine (for that we use saxon transformer with some specific transformation parameters), i don't see such equivalent in what you pointed me to nor is there information about version of xslt supported (1,2? we need 2). For the dependency plugin we have to investigate, but if that mean we need to upgrade included project to maven 2 also, that's a no go. That project i have no write access to and we don't plan maven 2 for it, we just currently, in our build process, download it along our main project, and retrieve some files from it (files we patch on the fly using ant:replace / rules btw). We don't even build it, we only need it's webapp (jsp/pictures/html/config) files integrated in our app. So, if we could keep our current build process rules (maven.xml), and just somehow move them in a plugin that would be lot's easier. Some of the jelly rules took time to implement, we don't have the time to recreate all them. Isn't it possible to take the maven.xml and put it in a project.jelly or it's maven2 equivalent? I need some direction on how to easily convert from maven1 to maven2, related to maven.xml, but all link related to that in maven site seem dead (see my first mail) En l'instant précis du 04/03/08 10:57, Samuel Le Berrigaud s'exprimait en ces termes: Hi David, You don't to implement your whole maven.xml into one maven2 plugin. Instead you should decompose what you do in your maven.xml and find out the existing maven 2 plugins that would enable those different tasks. For example, if I take your two examples below: - copying resources of another project: I would make that project a dependency of your web application and that would be sufficient to add those on your classpath. If you need them outside the classpath, I would probably use the maven dependency plugin: http://maven.apache.org/plugins/maven-dependency-plugin/ using the unpack goal, it will unpack the jar wherever you need to. I would attach that to the process-resources phase of you war module. - xslt transformation that should be fairly easy
Re: disabling tests
En l'instant précis du 04/06/07 16:18, Arrowx7 s'exprimait en ces termes: Hello, How do I disable tests in a maven project? I'm running a mavenide2 plugin for netbeans. Thanks. maven.test.skip=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Production build question
Suggestions: 1) since they have ssh access to dev web server, why not use a ssh tunnel so they don't need their own repo copy? That way they will onl transfert what is needed for compilation. 2) Assuming you put artefacts in scm (a project for 'repo'), does it improve the build process (eg, faster than a rsync of same datas)? Will it not be a pain for developper to keep that scm repo up 2 date? If answer are Yes and No, i see no reason for not doing it :D Chris Helck a écrit : Hello, I need advice. Our production builds are handled by a separate group. They do the builds in a locked room with limited access to the company infrastructure, and no access to the outside world. They have access to our SCM. In the room they have a web server that has ssh access to a development web server. To do a maven based build they first rsync their web server's repo with the development one. Then the build machine accesses their web server. This is a pain for both developers and the build group. So, I'm thinking I should just put an image of the repo in SCM. This gives them a good audit trail and control. To do a build they first update the repo to the head of the SCM, then fetch the source code by a label, and finally kick off maven. I know SCM people don't like to put artifacts into SCM, but this seems like a reasonable use. Are there any maven specific issues/problems that this may cause? Thanks, Christopher Helck ** This communication and all information (including, but not limited to, market prices/levels and data) contained therein (the Information) is for informational purposes only, is confidential, may be legally privileged and is the intellectual property of ICAP plc and its affiliates (ICAP) or third parties. No confidentiality or privilege is waived or lost by any mistransmission. The Information is not, and should not be construed as, an offer, bid or solicitation in relation to any financial instrument or as an official confirmation of any transaction. The Information is not warranted, including, but not limited, as to completeness, timeliness or accuracy and is subject to change without notice. ICAP assumes no liability for use or misuse of the Information. All representations and warranties are expressly disclaimed. The Information does not necessarily reflect the views of ICAP. Access to the Information by anyone else other than the recipient is unauthorized and any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto setup log4j to work properly with maven test ?
Hello, i have a problem with the test plugin of maven (1.x). When i add log4j configuration to project, it seems part of output that should go in test-report/xxx.yyy.TestZzz.txt does in fact go out on the user console. This is a problem because we get the test report stripped out of most of it's output. Example, if my log4j.xml is empty, i get this: maven test -Dmaven.junit.usefile=true -Dmaven.junit.fork=true -Dmaven.junit.forkmode=perTest test:test: [junit] Running be.dissco.slide.SlideFopDriverTest [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 4,799 sec [junit] 23 Apr 2007 16:46:15 - org.apache.slide.common.Domain - WARNING - Access denied on /users by user *** Could not determine principal *** for action /actions/read [junit] 23 Apr 2007 16:46:15 - org.apache.slide.common.Domain - WARNING - Access denied on /users by user *** Could not determine principal *** for action /actions/read [junit] [ERROR] TEST be.dissco.slide.SlideFopDriverTest FAILED [junit] Running be.rmi.intranet.db.V4_newsServiceTest However, if my log4j.xml contains console appenders, i get this: test:test: [junit] Running be.dissco.slide.SlideFopDriverTest [junit] 0[main] DEBUG be.dissco.slide.SlideFopDriverTest - remove store dir [junit] 3[main] DEBUG be.dissco.slide.SlideFopDriverTest - remove work dir [junit] 1223 [main] INFO be.dissco.common.Dissco - Start DISSCO configuration initialization [junit] 1226 [main] DEBUG be.dissco.common.configuration.ConfigurationLoader - properties defined : configuration.resource=dissco.xml, [junit] 1227 [main] INFO be.dissco.common.configuration.ConfigurationLoader - load configuration from :: systemId = file:/home/delbd/dev/workspaces/intranet/RMI_intranet/target/test-classes/dissco.xml publicId = null Obviously, those log entries should go in test-report not screen! How to solve thise, is there a specific appender to use? Thanks for help. (part of log4j.xml below) ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false threshold=debug appender name=CONSOLE class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender !-- Shark loggers -- appender name=PERSISTENCE class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender . If i type in console: maven test -Dmaven.junit.usefile=true -Dmaven.junit.fork=true i get this: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Howto setup log4j to work properly with maven test ?
Hello, i have a problem with the test plugin of maven (1.x). When i add log4j configuration to project, it seems part of output that should go in test-report/xxx.yyy.TestZzz.txt does in fact go out on the user console. This is a problem because we get the test report stripped out of most of it's output. Example, if my log4j.xml is empty, i get this: maven test -Dmaven.junit.usefile=true -Dmaven.junit.fork=true -Dmaven.junit.forkmode=perTest test:test: [junit] Running be.dissco.slide.SlideFopDriverTest [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 4,799 sec [junit] 23 Apr 2007 16:46:15 - org.apache.slide.common.Domain - WARNING - Access denied on /users by user *** Could not determine principal *** for action /actions/read [junit] 23 Apr 2007 16:46:15 - org.apache.slide.common.Domain - WARNING - Access denied on /users by user *** Could not determine principal *** for action /actions/read [junit] [ERROR] TEST be.dissco.slide.SlideFopDriverTest FAILED [junit] Running be.rmi.intranet.db.V4_newsServiceTest However, if my log4j.xml contains console appenders, i get this: test:test: [junit] Running be.dissco.slide.SlideFopDriverTest [junit] 0[main] DEBUG be.dissco.slide.SlideFopDriverTest - remove store dir [junit] 3[main] DEBUG be.dissco.slide.SlideFopDriverTest - remove work dir [junit] 1223 [main] INFO be.dissco.common.Dissco - Start DISSCO configuration initialization [junit] 1226 [main] DEBUG be.dissco.common.configuration.ConfigurationLoader - properties defined : configuration.resource=dissco.xml, [junit] 1227 [main] INFO be.dissco.common.configuration.ConfigurationLoader - load configuration from :: systemId = file:/home/delbd/dev/workspaces/intranet/RMI_intranet/target/test-classes/dissco.xml publicId = null Obviously, those log entries should go in test-report not screen! How to solve thise, is there a specific appender to use? Thanks for help. (part of log4j.xml below) ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false threshold=debug appender name=CONSOLE class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender !-- Shark loggers -- appender name=PERSISTENCE class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender . If i type in console: maven test -Dmaven.junit.usefile=true -Dmaven.junit.fork=true i get this: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generating an admin jsp at build time
HTML BODY This application was build on @@SomeBuildDateProperty@@ /BODY /HTML And use the ant filtering rules to replace content between @@ (see ant docs) Jeff Mutonho a écrit : I would like to create a sort of administration jsp that gets bundled into my application war during build time.The administration jsp would probably look like this : HTML BODY This application was build on %= new java.util.Date() % /BODY /HTML but instead of new java.util.Date() , it would have the build-date. Any suggestion on how to achieve this? Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pathconvert and filemapping in maven.xml?
Hello, i am facing a problem with maven (1.0.2) here. It seems the ant task 'pathconvert' ignores it content mapper elements, despite the ant documention. As a result, i can't map the filename in a fileset to other names, things i can do in pure ant scripts (build.xml) project ... xmlns:ant=jelly:ant ... ... !-- this code is inside a goal -- ant:path id=animation.set ant:fileset dir=${maven.build.dir}/svg/ ant:include name=wait*.svg/ /ant:fileset /ant:path ant:pathconvert property=animationitems pathsep= refid=animation.set ant:mapper flattenmapper/ globmapper from=*.svg to=*.png/ /ant:mapper /ant:pathconvert ant:echo message=items: ${animationitems}/ This outputs me /home/delbd/dev/intranet-eclipse/workspace/RMI_support/Offline/target/svg/wait0009.svg /home/delbd/dev/intranet-eclipse/workspace/RMI_support/Offline/target/svg/wait0005.svg Whereas the expected output is wait0009.png wait0005.png ... I have tried variation on chainmapper / mapper / mapper type=... / no ant: prefix for tag. The only elements that pathconvert seems to take care of is map/. Worse, if i put this ant:pathconvert property=animationitems pathsep= refid=animation.set ant:someInexistantTag/ /ant:pathconvert I get no error?!? What am i doing wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to pack two jars in one project?
If what you want is simply coherence in release version, use maven multiproject. You can have the 2 sub projects (api and core) inherit the version of parent project :) You can even have core depende on api with same version I have the case here with a realm-impl and a realm-api, here is the api dependency in impl: dependency groupId${pom.groupId}/groupId artifactIdRealms-api/artifactId version${pom.currentVersion}/version typejar/type /dependency quite simple :) as both api and impl inherit currentVersion from parent root project, all goes well :) I then simply go to root project and type maven multiproject:install it will build both jars in correct order :) Dennis Kempin a écrit : Hello, I just discovered maven and I am really impressed by this project! To migrate my project to maven I am searching for a way to create two jar files in one project. I would like to have a ./src/main/api folder besides ./src/main/java and pack them into two different jars, to provide a single jar that only contains the API that is needed to use my library. For now I use two seperated projects core and core-api while core depends on core-api. This also works great, but I think it would be more elegant to have the API in the same project that will create a core-api-version.jar besides the core-version.jar. Do you think that it is possible? Or do you think I should stay at the seperated projects due to some reasons (Maybe because implementation versions can change while API versions stay at a specific version). Thanks and greetings Dennis Kempin PS: please pardon me. My english is bad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multimodule project with maven1.0.2?
raja bangaru a écrit : Is it possible to maintain multi projects with maven 1.x?? If so how? I'm currently using Eclipse IDE. trying to migrate from ant build to maven POM... use the multiproject plugin of maven. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can This be done with Maven
use maven multiproject Santosh G. Gokak a écrit : Hi Everybody, I have some thing I want to achieve using maven. I have 5 Projects A, B, C, D, E. Now, C and D depends on E. B Depends on D .A is combination of B, C, D, E. Now, when the packaging of A is invoked, I would like that the latest available code of E is taken, compiled, tested and packaged. Then using that new E Package C and D is taken, compiled, tested and packaged and so on. Finally A will be the having the latest of all. Now, Can this be achieved with Maven, if so how? If not, any work around? Any help would be valuable Thanks In Advance, Santosh G Gokak MASTEK Making a valuable difference Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCOMASTEK ~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] how to setup proxy in POM?
Szczepan Faber a écrit : Are you using 'maven IDE' plugin? The doc says (http://mevenide.codehaus.org/mevenide-ui-eclipse/features.html) that proxy is not supported as well in this plugin. How did you make it work in proxied network? I pass vm args (-DproxySet, ...) to startup.jar but still with no effect. As said, I run maven from console. So it downloads it dependencies from console :) Everything else (build, run, jar:install, tests) is run with 'maven xyz' from command line, it's easier to manage. Can you explain how com it may be easier to manage? In my opinion it is just inconvenient. Imagine working this way with ant, which is tightly incorporated into Eclipse JDT. 1) as someone else stated, it guarantees the maven build process do work outside ide (i have co-workers which ran unit tests inside eclipse and dicovered later they didn't run in pure maven because the working directory was not the same) 2) I find it way faster to do alt tab matab test (which translates to switch to console, execute maven with target test) than playing with mouse to right click on project.xml, select maven, select run, and type 'test' inside target area. 3) Console has an good history of my commands, and i can easily go back in history to reexecute a command. 4) I can type things like 'for i in project1 project2 project3; do cd $i; maven jar:install; cd ..; done' :D Am not a fanatic of the mouse, i like to use the keyboard for everything. Each time my hand need to go from keyboard to mouse, it's wasted time. When i can avoid it without requiring too much keyboard time, i avoid it :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] how to setup proxy in POM?
In tyhe script that starts eclipse, those are jvm argument to pass to the java.exe program. Also, here with maven 1, we don't rely on eclipse plugin for anything else than updating project class path (pom synchronization), and project.xml edition. Everything else (build, run, jar:install, tests) is run with 'maven xyz' from command line, it's easier to manage. Szczepan Faber a écrit : I need to make it work ASAP :) If my effort in maven plugin fails, I will have to code ant scripts which are relicts of stone age. How can I use those CL arguments??? I tried to put them into windows eclipse link, the ini file, and jvm properties in eclipse JRE settings. No effect. Thanks, Szczepan On 3/13/06, Alexandre Poitras [EMAIL PROTECTED] wrote: You should use command line arguments as David has suggested, but proxy support is now in beta I think so it shouldn't be long until it works out of the box :) On 3/13/06, Szczepan Faber [EMAIL PROTECTED] wrote: I use windows, I place following in eclipse.ini with no effect -DproxySet=true -DproxyHost=xxx.com -DproxyPort=80 Still, I have always had proxy set in eclipse properties but this only works for updates, and some other stuff, but not in Maven 2 plugin. 2006/3/13, David Delbecq [EMAIL PROTECTED]: Did you try editing eclipse startup script to add this to java startup line? This is how you proxy enable any java application. java -DproxySet=true -DproxyHost=myProxyServer.com -DproxyPort=80 MyJavaApp Szczepan Faber a écrit : I've read that this is the only way to make it work with M2 eclipse plugin. Starting here: http://jira.codehaus.org/browse/MNGECLIPSE-29 I agree that proxy setting configuration should be the feat of environment and not project. Did anyone configure the M2 plugin with eclipse in proxied network? Proxies are very common in IT companies so the issue really limits use of maven 2. Thanks, Szczepan 2006/3/13, Alexandre Poitras [EMAIL PROTECTED]: It is not possible and for a simple reason the proxy setting is not something consistant across a project. If you could put your proxy config in your pom.xml, your build could become not portable since a proxy is a specific environment setting. Why do you want to do this? On 3/13/06, Szczepan Faber [EMAIL PROTECTED] wrote: Hi, How to setup proxy from Maven2 in pom file? I know I can do it in settings.xml, but that does not work for m2 eclipse plugin. That is why I'd like to setup proxy in pom. Thanks, Szczepan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOWTO generate a JAR with manifest but without META-INF
Jorg Panzer a écrit : The problem is, the JAR isn't executable. The manifest.mf must placed a level higher ... False, the manifest must be in META-INF/ according to jar specifications: http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html You problem is that your manifest is named 'manifest.mf' while it should be named 'MANIFEST.MF', could it be you use a case insensitive filesystem and there is already a manifest.mf (in which case when maven tries to open MANIFEST.MF, filesystem opens manifest.mf)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] how to setup proxy in POM?
Did you try editing eclipse startup script to add this to java startup line? This is how you proxy enable any java application. java -DproxySet=true -DproxyHost=myProxyServer.com -DproxyPort=80 MyJavaApp Szczepan Faber a écrit : I've read that this is the only way to make it work with M2 eclipse plugin. Starting here: http://jira.codehaus.org/browse/MNGECLIPSE-29 I agree that proxy setting configuration should be the feat of environment and not project. Did anyone configure the M2 plugin with eclipse in proxied network? Proxies are very common in IT companies so the issue really limits use of maven 2. Thanks, Szczepan 2006/3/13, Alexandre Poitras [EMAIL PROTECTED]: It is not possible and for a simple reason the proxy setting is not something consistant across a project. If you could put your proxy config in your pom.xml, your build could become not portable since a proxy is a specific environment setting. Why do you want to do this? On 3/13/06, Szczepan Faber [EMAIL PROTECTED] wrote: Hi, How to setup proxy from Maven2 in pom file? I know I can do it in settings.xml, but that does not work for m2 eclipse plugin. That is why I'd like to setup proxy in pom. Thanks, Szczepan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven multiproject compiling in wrong order
I checked a lot, dependency looks correct to me. If i clean all project and clean my local repository, then do jar:install on shark-common shark-struts shark-taglib shark-JNDI-users then the target 'war' on shark-demoSite will fail telling it couldn't download shark-viewer If i go in shark-viewer, do a jar:install then go back to shark-demosite, the war target is working properly. So to me the dependency is ok. I have no idea what is wrong. I see nothing wrong in my pom, and except for the 'fail to download shark-viewer-0.1.jar' when i didn't run jar:install in shark-viewer, i get no error message! any idea? Is reactor broken? Alexandre Poitras a écrit : Usually when I have this kind of behaviour it is because I have made a typo somewhere in my poms (dependencies, modules or parent tags). From your output, I can't tell Maven is trying to download one of your project because it can't find it. Check carefully the output and see where the dependency resolution fails. On 3/2/06, David Delbecq [EMAIL PROTECTED] wrote: Hello, maven multiproject use a reactor to do the compilation. Usually, if i do a maven multiproject:install at the root, i get all project compiled in the order of dependencies (a depends on b so multiproject compile b before a). At least i have always seen this behaviour. However, today i discovered for one of my project, the reactor is failing putting things in orders. Here are my subprojects with dependencies: shark-common shark-struts depends on shark-common shark-taglib depends on shark-common shark-JNDI-users depends on shark-common shark-demoSite depends on shark-common, shark-struts, shark-taglib, shark-viewer shark-viewer depends on shark-common They are expressed in the project.xml of each subproject with the following: dependency groupId${pom.groupId}/groupId artifactIdshark-common/artifactId version${pom.currentVersion}/version typejar/type /dependency for shark-demoSite it's the form dependency groupId${pom.groupId}/groupId artifactIdshark-common/artifactId version${pom.currentVersion}/version typejar/type properties war.bundletrue/war.bundle /properties /dependency all of the subprojects extends a root project, which itself extends a master project. So, for example, shark-demosite has project.xml extends ../project.xml which extends ../Master/project.xml But when i do a multiproject:install i face this: + | Executing multiproject:install-callback Shark-DemoSite | Memory: 15M/22M + Tentative de téléchargement de shark-viewer-0.1.jar. ATTENTION: Impossible de télécharger shark-viewer-0.1.jar. + | Executing multiproject:install-callback Shark-Viewer | Memory: 9M/22M + Shark-Viewer compiles ok and send it's .jar at the correct location. If immediatly after i rerun multiproject:install, Shark-DemoSite compiles and installs ok. This proves the Shark-Viewer is really building the artifact Shark-DemoSite is needing. Why doesn't the reactor manage this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven multiproject compiling in wrong order
Hello, maven multiproject use a reactor to do the compilation. Usually, if i do a maven multiproject:install at the root, i get all project compiled in the order of dependencies (a depends on b so multiproject compile b before a). At least i have always seen this behaviour. However, today i discovered for one of my project, the reactor is failing putting things in orders. Here are my subprojects with dependencies: shark-common shark-struts depends on shark-common shark-taglib depends on shark-common shark-JNDI-users depends on shark-common shark-demoSite depends on shark-common, shark-struts, shark-taglib, shark-viewer shark-viewer depends on shark-common They are expressed in the project.xml of each subproject with the following: dependency groupId${pom.groupId}/groupId artifactIdshark-common/artifactId version${pom.currentVersion}/version typejar/type /dependency for shark-demoSite it's the form dependency groupId${pom.groupId}/groupId artifactIdshark-common/artifactId version${pom.currentVersion}/version typejar/type properties war.bundletrue/war.bundle /properties /dependency all of the subprojects extends a root project, which itself extends a master project. So, for example, shark-demosite has project.xml extends ../project.xml which extends ../Master/project.xml But when i do a multiproject:install i face this: + | Executing multiproject:install-callback Shark-DemoSite | Memory: 15M/22M + Tentative de téléchargement de shark-viewer-0.1.jar. ATTENTION: Impossible de télécharger shark-viewer-0.1.jar. + | Executing multiproject:install-callback Shark-Viewer | Memory: 9M/22M + Shark-Viewer compiles ok and send it's .jar at the correct location. If immediatly after i rerun multiproject:install, Shark-DemoSite compiles and installs ok. This proves the Shark-Viewer is really building the artifact Shark-DemoSite is needing. Why doesn't the reactor manage this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]