Continuum and build errors handling
Hi list, We have the following issue with continuum: On some occasion, a build fails because of an error. For instance, the CVS server could be temporarily down, or the repository, or one disk space could be full, or there could be an OutOfMemoryError, or the time limit could be reached because some heavy task is running on the box at the same time (backups...), etc... In that case, the corresponding project is never rebuilt (well, until the next commit or dependency change...) and the rebuild needs to be triggered manually. While I agree it is probably not a good idea to systematically try to rebuild a project that encountered an error, don't you think it could be a worthwhile addition to continuum to allow for a small number of retries in such a case? More precisely, when a project cannot be built because of an error, it could be put in the queue again for a few (say 3, 4) retries. That would allow for automatic handling of transient errors without putting too much stress of the server by always rebuilding projects vowed to failure. Regards, -- Julien
maven
help me,i am getting this error when i am trying to run examples using maven,if any body has got this previously pls help me D:\apps\Apache\servicemix\examples\basicmvn jbi:embeddedServicemix [INFO] Scanning for projects... Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/s ervicemix/samples/3.1.1-incubating/samples-3.1.1-incubating.pom Downloading: http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.1.1-i ncubating/samples-3.1.1-incubating.pom [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.servicemix ArtifactId: samples Version: 3.1.1-incubating Reason: Unable to download the artifact from any repository org.apache.servicemix:samples:pom:3.1.1-incubating from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.incubating (http://people.apache.org/repo/m2-incubating-repository) -- View this message in context: http://www.nabble.com/maven-tf4412376s177.html#a12587095 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XML entities or alternative?
Hi, I have a pom with two custom plugin configurations, both of which require access to virtually identical configuration xml. I'd like to be able to declare the common xml in some way I've tried using xml entities !DOCTYPE project [ !ENTITY config config goes here... ] config; But this fails with a XppPullparserException I've also tried using a property to hold the escaped xml, but this fails as the escaped version isn't parsed correctly Is there any mechanism in mvn2 to allow the re-use of arbitrary xml snippets within the same pom (and no I cannot put common stuff in a parent pom, this isn't an option right now) Thanks, Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Maven plugin for Eclipse
Hi, Even when I use the Refresh Settings option, Eclipse still tries to connect to the Internet Maven Repo instead of the mirror I defined in my maven settings.xml file. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Achim Abeling Sent: vrijdag 7 september 2007 8:41 To: users@maven.apache.org Subject: Re: Maven plugin for Eclipse Hi, did you refresh the settings in eclipse? It has to be done under Window-Preferences-Maven-Refresh Settings. Best regards Achim De Vleeschauwer Nele wrote: Hi, I have configured my settings.xml in this way and if I execute a maven command from a dos box, it is using our company's repository. But if I call a maven command out of Eclipse, it goes directly to the Maven Repo site. -Original Message- From: COPPENS, Fabien [mailto:[EMAIL PROTECTED] Sent: donderdag 6 september 2007 14:14 To: Maven Users List Subject: RE: Maven plugin for Eclipse I believe you can configure this in your maven settings.xml file via a profile : pluginRepositories pluginRepository idMyDevRepo/id url http://myrepository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories /profile -Message d'origine- De : De Vleeschauwer Nele [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 septembre 2007 14:11 À : Maven Users List Objet : Maven plugin for Eclipse Hi, For the moment I'm using version 3.3 of Eclipse with the Maven plugin installed. Each time when I execute a maven command in Eclipse, Eclipse tries to download the necessary artiftacts from the Maven Repo site (repo1.maven.org). How can I configure that Eclipse should use the company's central Maven Repository to download new artifacts instead of the one on the Maven site ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Visit our website! http://www.nbb.be DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Question how to prevent maven from update manually added dependencies (detailed descr)
Hallo, thx for the quick answer. Here a bit longer description: I have some dependencies which I added manually to my local repo because they are not available in the remote repository. Now everytime I build my project maven tries to update this dependency which is not availble in the remote repo. command line output: Downloading: http://commons.ucalgary.ca/pub/m2/***/***/***/1.0/***-1.0.pom Downloading: http://repo1.maven.org/maven2/***/***/***/1.0/***-1.0.pom This job is not necessary and costs time... so I want to prevent it. How can I force Maven to skip this check because I know for sure this dependency isn't in the remote repo. Martin Its not clear what you are trying to do and why. Please explain things better. In the meantime, you can use mvn -o ... for offline mode which will force Maven to use only the artifacts available on your machine for a given build. Wayne On 9/7/07, Ritz, Martin [EMAIL PROTECTED] wrote: Ho Maven Users, I searched a lot around but couldn't find the answer to my question: How can I prevent maven from update manually added dependencies? Scope provided and system doesn't match my requirements - is there a way of doing in a other way? Thx alot --- Martin Ritz BTC AG - Geschäftseinheit Softwarelösungen mailto:[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]
overriding central repo archetype:create
Hello, I have the impression that the settings default profiles (activated in settings.xml with activeProfile) are not used when there's no pom.xml. My use case is : I've overrode central repository in settings.xml [1]. It's working fine for an existing project. Now, I want to execute mvn archetype:create -e -DgroupId=samplegroup -DartifactId=arti There's no pom.xml in the current directory. When I execute this mvn command, mvn doesn't use my override (see [1]). When I add a sample empty pom.xml, the mvn command executes fine. Am I missing sthing ? Thanks for your help. [1] my settings.xml settings localRepositoryD:\Documents\Developpements\.m2\repository/localRepository servers server idsphinx-site/id usernamefwk/username passwordXXX/password /server server idlibs-releases/id usernameadmin/username passwordYYY/password /server server idlibs-snapshots/id usernameadmin/username passwordYYY/password /server /servers profiles profile iddefault/id repositories repository idcentral/id urlhttp://10.253.21.49:8081/artifactory/repo/url snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id urlhttp://10.253.21.49:8081/artifactory/repo/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://10.253.21.49:8081/artifactory/plugins-releases/url snapshots enabledfalse/enabled /snapshots /pluginRepository pluginRepository idsnapshots/id urlhttp://10.253.21.49:8081/artifactory/plugins-snapshots/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories /profile activeProfiles activeProfiledefault/activeProfile /activeProfiles /settings [2]-[WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-archetype-plugin' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces, conseils.. et vos réactions ! http://blog.mail.yahoo.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overriding central repo archetype:create
Hi, I have the impression that the settings default profiles (activated in settings.xml with activeProfile) are not used when there's no pom.xml. Yes. There's already a couple of Jira issues for that: * http://jira.codehaus.org/browse/ARCHETYPE-59 * http://jira.codehaus.org/browse/MNG-3099 See also http://www.nabble.com/Maven-ignoring-Artifactory-proxy-settings--t3397576s177.html HTH Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven
Hi, help me,i am getting this error when i am trying to run examples using maven,if any body has got this previously pls help me D:\apps\Apache\servicemix\examples\basicmvn jbi:embeddedServicemix [INFO] Scanning for projects... Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/s ervicemix/samples/3.1.1-incubating/samples-3.1.1-incubating.pom Downloading: http://repo1.maven.org/maven2/org/apache/servicemix/samples/3.1.1-i ncubating/samples-3.1.1-incubating.pom [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.servicemix ArtifactId: samples Version: 3.1.1-incubating Reason: Unable to download the artifact from any repository org.apache.servicemix:samples:pom:3.1.1-incubating from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.incubating (http://people.apache.org/repo/m2-incubating-repository) Are you behind a firewall? If yes, do you have to use a proxy server for Internet access (see [1])? BTW: Have you tried mvn -e -X ...? Perhaps this gives you more detailed information about the error and why/where it occurs... [1] http://maven.apache.org/guides/mini/guide-proxies.html Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Re: overriding central repo archetype:create
Thank you very much Thorsten ! --- Thorsten Heit [EMAIL PROTECTED] a écrit : Hi, I have the impression that the settings default profiles (activated in settings.xml with activeProfile) are not used when there's no pom.xml. Yes. There's already a couple of Jira issues for that: * http://jira.codehaus.org/browse/ARCHETYPE-59 * http://jira.codehaus.org/browse/MNG-3099 See also http://www.nabble.com/Maven-ignoring-Artifactory-proxy-settings--t3397576s177.html HTH Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to exclude the contents from WEB-INF/classes from being copied over?
Hi, While using MyEclipse with maven, I have the eclipse plug-in keeping the output directory as WEB-INF/classes so that I can still work with hot deploys. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration outputDirectory src/main/webapp/WEB-INF/classes /outputDirectory plugin Eclipse copies the contents of both src/main and src/test to this location so the classes directory will contain *Test.java as well as *.java. When I do a mvn package on the war (outside of eclipse) maven copies everything in the webapp directory over, and then puts in all the non-test classes. However, since the WEB-INF/classes dir wasn't empty (because eclipse is using it) all my tests and test resources get copied over as well. Sure, because Maven treats them as web resources that have to be packaged into your WAR file... I've tried: 1) using the clean plug-in but that means when I switch back over to eclipse I have to do a full clean on that project 2) using an exclude filter for the war plug-in, but have not had any luck with that. Does anyone have a working solution to this? Not a solution, but some questions: 1) Why don't you just use the standard Maven directory for the compiled classes? This shouldn't prevent you from hot deploying changes... 2) Have you configured your desired output directory in your pom.xml so that Maven compiles your classes to the same directory? build ... outputDirectory.../outputDirectory testOutputDirectory.../testOutputDirectory /build 3) If you really need to compile to WEB-INF/classes, have you tried configuring the Maven WAR plugin to exclude that directory when packaging web resources? See [1] [1] http://maven.apache.org/plugins/maven-war-plugin/faq.html#webresourcesexclude Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: buildNumber plugin error
AFAIK, this plugin isn't actually hosted at codehaus. http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html Arnaud On 29/08/2007, Wayne Fay [EMAIL PROTECTED] wrote: You could certainly request this as a new feature in the plugin. Post a RFE in Jira for MOJO project, and hopefully the plugin author will see it and decide to add your feature (or not) if he thinks it makes sense. Wayne On 8/29/07, DCVer [EMAIL PROTECTED] wrote: Thanks, thats why it really failed in our project too. Because of some problems with this plugin (e.g. build process fails if there is no .svn directory = if someone exports the project) can maven be so configured, that it wouldn't fail if the revision number will be null? It would just save this null in the property file or wherever the revision number is set to be saved and the build process would continue. nicolas de loof-2 wrote: I have the same issue as I'm french and my svn installation is localized by default, so the svn info command returns : Révision : xxx This makes the plugin fail. I've allready reported this issue to the plugin author and he planned to fix this in next release. Nico. 2007/8/29, cNT [EMAIL PROTECTED]: The same thing just happened today with my project. None of the plugins were updated, svn also functions properly. No idea what has changed :/ DCVer wrote: I added the maven buildnumber plugin to a project and it worked quite fine. But 2 developers say, that they receive such an error, while building the project (mvn install): [...] [INFO] [buildnumber:create {execution: default}] [INFO] Storing buildNumber: null [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at org.codehaus.mojo.buildNumber.BuildNumberMojo.execute( BuildNumberMojo.java:313) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute( DefaultMaven.java :334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java :125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java :255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java :375) [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Tue Aug 21 13:12:14 CEST 2007 [INFO] Final Memory: 7M/13M [INFO] The svn info command does the following: [...] Revision: 1048 [...] Last Changed Rev: 1048 [...] So why buildnumber plugin sees null rev number?? All commands were executed in the same directory. This plugin works properly on my local PC - only others have problems.. -- View this message in context: http://www.nabble.com/buildNumber-plugin-error-tf4304675s177.html#a12382986 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe,
Re: cross platform pom
I know it's a little late, but I haven't seen an answer yet So here's my solution: Use a variable for the path (e.g. ${calendarJarPath}) and define 2 profiles that are activated on 'os'. Then in those profiles you can define the correct pahts on both systems. Or, in case the paths differ per machine (like in my company), you don't define profiles and expect the user to supply it at the commandline (mvn -DcalendarJarPath=locationOfJar). But I strongly suggest adding these JARs to a repository in your company and not using the systemPath. The only JARs that, imo, should have the systemPath are JDK/JRE. On Thursday 30 August 2007 00:31, Andy Dingfelder wrote: I have a pom that works on windows, but does not work if I use it on Linux because the paths are different, such as: dependency groupIdcom.toedter/groupId artifactIdjcalendar/artifactId version1.2.2/version scopesystem/scope systemPath C:/projects/java.3rdParty/jars/jcalendar-1.3.2.jar /systemPath /dependency is there any way to use an environment variable for the start of the path or some other solution? on Linux the path would be systemPath /home/myname/workspace/java.3rdParty/jars/jcalendar-1.3.2.jar /systemPath I asked on the eclipse maven list and got this advice: Andy, check out what it says on the maven website: systemPath : is used only if the dependency scope is system . Otherwise, the build will fail if this element is set. The path must be absolute, so it is recommended to use a property to specify the machine-specific path (more on properties below), such as $java.home/lib . http://maven.apache.org/pom.html#Properties I tried doing this and am getting the following error (below) Perhaps the settings.xml file is not getting processed correctly? How can I debug if the environment variable I am setting is getting read in correctly? my settings.xml is /home/dingfelder/.m2/settings.xml and contains: settings profiles profile iddefault/id activation activeByDefault/ /activation properties java-third-party.home/home/dingfelder/workspace/java.3rdparty/jars//java -third-party.home /properties /profile /profiles /settings the error is: [DEBUG] Building Maven user-level plugin registry from: '/home/dingfelder/.m2/plugin-registry.xml' [DEBUG] Building Maven user-level plugin registry from: '/home/dingfelder/.m2/plugin-registry.xml' [INFO] Scanning for projects... [ERROR] reactor-execute : /home/dingfelder/workspace/java.common Diagnosis: Failed to validate POM FATAL ERROR: Error executing Maven for a project [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: com.sirtrack:common_java POM Location: /home/dingfelder/workspace/java.common/pom.xml Validation Messages: [0] For dependency Dependency {groupId=com.toedter, artifactId=jcalendar, version=1.2.2, type=jar}: system-scoped dependency must specify an absolute path systemPath. Reason: Failed to validate POM [INFO] [DEBUG] Trace Failed to validate POM [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Aug 29 21:55:23 NZST 2007 [INFO] Final Memory: 1M/4M [INFO] java.lang.NullPointerException at org.apache.maven.DefaultMaven.logReactorSummary(DefaultMaven.java:611) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:130) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:531) at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:82) thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Code Complexity Plugin
Take an eye to javancss plugin: http://mojo.codehaus.org/javancss-maven-plugin/ ___ Christophe DENEUX / Capgemini Sud / Méditerranée Technical Leader Tel: + 33 4 93 95 55 92 / www.capgemini.com http://www.capgemini.com/ Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE Join the Collaborative Business Experience ___ Please consider the environment and do not print this email unless absolutely necessary. Capgemini encourages environmental awareness. De: Morgovsky, Alexander (US - Glen Mills) [mailto:[EMAIL PROTECTED] Date: ven. 07/09/2007 23:35 À: users@maven.apache.org Objet : Code Complexity Plugin Is there a plug-in to calculate the code complexity of Java code? I tried using the PMD, but I did not see the results for complexity. May someone please point me in the right direction for this? Thank you. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: Question how to prevent maven from update manually added dependencies (detailed descr)
You can try setting the version in your dependency declaration to [1.0] which will lock down the version, and then Maven should realize that you already have those artifacts in your local repo cache, and it doesn't need to run out and look for updates. Wayne On 9/10/07, Ritz, Martin [EMAIL PROTECTED] wrote: Hallo, thx for the quick answer. Here a bit longer description: I have some dependencies which I added manually to my local repo because they are not available in the remote repository. Now everytime I build my project maven tries to update this dependency which is not availble in the remote repo. command line output: Downloading: http://commons.ucalgary.ca/pub/m2/***/***/***/1.0/***-1.0.pom Downloading: http://repo1.maven.org/maven2/***/***/***/1.0/***-1.0.pom This job is not necessary and costs time... so I want to prevent it. How can I force Maven to skip this check because I know for sure this dependency isn't in the remote repo. Martin Its not clear what you are trying to do and why. Please explain things better. In the meantime, you can use mvn -o ... for offline mode which will force Maven to use only the artifacts available on your machine for a given build. Wayne On 9/7/07, Ritz, Martin [EMAIL PROTECTED] wrote: Ho Maven Users, I searched a lot around but couldn't find the answer to my question: How can I prevent maven from update manually added dependencies? Scope provided and system doesn't match my requirements - is there a way of doing in a other way? Thx alot --- Martin Ritz BTC AG - Geschäftseinheit Softwarelösungen mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML entities or alternative?
Not presently. The idea of snippets has been under discussion on dev@ lately. Feel free to chime in. Wayne On 9/10/07, Kevin Jackson [EMAIL PROTECTED] wrote: Hi, I have a pom with two custom plugin configurations, both of which require access to virtually identical configuration xml. I'd like to be able to declare the common xml in some way I've tried using xml entities !DOCTYPE project [ !ENTITY config config goes here... ] config; But this fails with a XppPullparserException I've also tried using a property to hold the escaped xml, but this fails as the escaped version isn't parsed correctly Is there any mechanism in mvn2 to allow the re-use of arbitrary xml snippets within the same pom (and no I cannot put common stuff in a parent pom, this isn't an option right now) Thanks, Kev - 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: XML entities or alternative?
On 9/10/07, Wayne Fay [EMAIL PROTECTED] wrote: Not presently. The idea of snippets has been under discussion on dev@ lately. Feel free to chime in. Do you have a pointer? I tried to search for snippets -jira -svn commit on Nabble, but didn't find something that sounded relevant to me. Jochen -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting the Timezone correctly
I presume these times are UTC... This would be the most logical explanation, since maven will often compare the build date and times to make sure you have the latest version... When it has your local time, this could mean that maven would detect a difference in the times and download the plugins again and overwrite your (manually build) dependencies... On Thursday 06 September 2007 15:46, Mark Eramo wrote: Hi Tim, Thanks for the information. It must be something else then that is setting the time in Maven. The build completed time shows the build finishes 1 hour earlier then the actual system time. Regards, Mark Tim Kettler wrote: Hi, see [1], [2] for references of the valid tags in 'pom.xml' and 'settings.xml'. As you see timezone/ is only used in the developers/ and contributors/ sections of the 'pom.xml' to denote the timzone a project team member is located. This has nothing to do with when your project is built or what creation time the jars have. -Tim [1] http://maven.apache.org/ref/current/maven-model/maven.html [2] http://maven.apache.org/ref/current/maven-settings/settings.html Mark Eramo schrieb: Hello, I am currently using Maven 2 and today I noticed that all the jars are built 1 hour earlier then the current time.I see that in the Maven documentation that there is a timezone tag that you can use to set your timezone. I want to set this in my settings.xml so that when we switch to DST, I can change it. Well, I added the tag and Maven complains that it is an unrecognized tag. Any ideas on why this happens? Does Maven 2 not support this? Thanks, Mark - 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] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${basedir} Windows and ${file.separator}
Shouldn't ${basedir} be resolved correctly on both windows and *nix? If that's the case, you could try using the '/' separator, since this works both on *nix and windows... However, if ${basedir} is not correctly resolved, you will probably still have the same issues... On Friday 07 September 2007 17:08, Andrew Leer wrote: Thanks Wayne... Submitted a bug... http://jira.codehaus.org/browse/MNG-3198 Thanks, Andrew J.Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: There are *always* some small differences in environments. Therefore, profiles are a way of handling those differences in Maven. ${file.separator} is simply not valid/available at this time for use in the pom. Feel free to file an RFE. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C:\workspace\dev\projectTest (under windows) I can't add an extra path separator that way Thank you, Andrew J. Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log .app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test. log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test .log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML entities or alternative?
From: Brett Porter Subject: [poll] Need for plugin packs / mixins for plugins Date: Sun, 2 Sep 2007 12:53:49 +1000 To: Maven Developers List Wayne On 9/10/07, Jochen Wiedmann [EMAIL PROTECTED] wrote: On 9/10/07, Wayne Fay [EMAIL PROTECTED] wrote: Not presently. The idea of snippets has been under discussion on dev@ lately. Feel free to chime in. Do you have a pointer? I tried to search for snippets -jira -svn commit on Nabble, but didn't find something that sounded relevant to me. Jochen -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - 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]
AW: Question how to prevent maven from update manually added dependencies (detailed descr)
It doesn't work. Another idea? Martin You can try setting the version in your dependency declaration to [1.0] which will lock down the version, and then Maven should realize that you already have those artifacts in your local repo cache, and it doesn't need to run out and look for updates. Wayne On 9/10/07, Ritz, Martin [EMAIL PROTECTED] wrote: Hallo, thx for the quick answer. Here a bit longer description: I have some dependencies which I added manually to my local repo because they are not available in the remote repository. Now everytime I build my project maven tries to update this dependency which is not availble in the remote repo. command line output: -- -- Downloading: http://commons.ucalgary.ca/pub/m2/***/***/***/1.0/***-1.0.pom Downloading: http://repo1.maven.org/maven2/***/***/***/1.0/***-1.0.pom -- -- This job is not necessary and costs time... so I want to prevent it. How can I force Maven to skip this check because I know for sure this dependency isn't in the remote repo. Martin __ __ Its not clear what you are trying to do and why. Please explain things better. In the meantime, you can use mvn -o ... for offline mode which will force Maven to use only the artifacts available on your machine for a given build. Wayne On 9/7/07, Ritz, Martin [EMAIL PROTECTED] wrote: Ho Maven Users, I searched a lot around but couldn't find the answer to my question: How can I prevent maven from update manually added dependencies? Scope provided and system doesn't match my requirements - is there a way of doing in a other way? Thx alot --- Martin Ritz BTC AG - Geschäftseinheit Softwarelösungen mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Question how to prevent maven from update manually added dependencies (detailed descr)
You could use the offline-mode (-o), but this will also cut off any other dependencies from being resolved (if they are not available). The best solution will probably be to add the POM for that project in a company-wide repository and add that repo in your POM. On Monday 10 September 2007 16:10, Ritz, Martin wrote: It doesn't work. Another idea? Martin You can try setting the version in your dependency declaration to [1.0] which will lock down the version, and then Maven should realize that you already have those artifacts in your local repo cache, and it doesn't need to run out and look for updates. Wayne On 9/10/07, Ritz, Martin [EMAIL PROTECTED] wrote: Hallo, thx for the quick answer. Here a bit longer description: I have some dependencies which I added manually to my local repo because they are not available in the remote repository. Now everytime I build my project maven tries to update this dependency which is not availble in the remote repo. command line output: -- -- Downloading: http://commons.ucalgary.ca/pub/m2/***/***/***/1.0/***-1.0.pom Downloading: http://repo1.maven.org/maven2/***/***/***/1.0/***-1.0.pom -- -- This job is not necessary and costs time... so I want to prevent it. How can I force Maven to skip this check because I know for sure this dependency isn't in the remote repo. Martin __ __ Its not clear what you are trying to do and why. Please explain things better. In the meantime, you can use mvn -o ... for offline mode which will force Maven to use only the artifacts available on your machine for a given build. Wayne On 9/7/07, Ritz, Martin [EMAIL PROTECTED] wrote: Ho Maven Users, I searched a lot around but couldn't find the answer to my question: How can I prevent maven from update manually added dependencies? Scope provided and system doesn't match my requirements - is there a way of doing in a other way? Thx alot --- Martin Ritz BTC AG - Geschäftseinheit Softwarelösungen mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW:Re: AW: Question how to prevent maven from update manually add ed dependencies (detailed descr)
to use the offlien-mode is not an option for me cause I use actual Snapshots! Can you explain the other way a little bit more in detail? - Why add the pom to the repository ?- I don't understand this at all... Martin - You could use the offline-mode (-o), but this will also cut off any other dependencies from being resolved (if they are not available). The best solution will probably be to add the POM for that project in a company-wide repository and add that repo in your POM. On Monday 10 September 2007 16:10, Ritz, Martin wrote: It doesn't work. Another idea? Martin You can try setting the version in your dependency declaration to [1.0] which will lock down the version, and then Maven should realize that you already have those artifacts in your local repo cache, and it doesn't need to run out and look for updates. Wayne On 9/10/07, Ritz, Martin [EMAIL PROTECTED] wrote: Hallo, thx for the quick answer. Here a bit longer description: I have some dependencies which I added manually to my local repo because they are not available in the remote repository. Now everytime I build my project maven tries to update this dependency which is not availble in the remote repo. command line output: -- -- Downloading: http://commons.ucalgary.ca/pub/m2/***/***/***/1.0/***-1.0.pom Downloading: http://repo1.maven.org/maven2/***/***/***/1.0/***-1.0.pom -- -- This job is not necessary and costs time... so I want to prevent it. How can I force Maven to skip this check because I know for sure this dependency isn't in the remote repo. Martin __ __ Its not clear what you are trying to do and why. Please explain things better. In the meantime, you can use mvn -o ... for offline mode which will force Maven to use only the artifacts available on your machine for a given build. Wayne On 9/7/07, Ritz, Martin [EMAIL PROTECTED] wrote: Ho Maven Users, I searched a lot around but couldn't find the answer to my question: How can I prevent maven from update manually added dependencies? Scope provided and system doesn't match my requirements - is there a way of doing in a other way? Thx alot --- Martin Ritz BTC AG - Geschäftseinheit Softwarelösungen mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - 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: Continuum 1.1.0-beta-2 UI performance
Hello, I set up Archiva 1.0-beta-1 with the same configuration, and performances are quite better than Continuum one (2-3s to display a page). How can I understand what happen to my Continuum instance ? Thanks Damien Lecan 2007/9/4, Emmanuel Venisse [EMAIL PROTECTED]: We know that 1.1 is a little slower than 1.0.3 because lot of new request and full security added but 25s for 17 modules isn't a normal perf result Emmanuel Mrinal Mukherjee a écrit : Same problem with me. Slow UI. I had this problem as soon as I upgraded to the newer version of continuum. I thought it was a problem in my system, but now I know its something to do with the new version of continuum. Mrinal -Original Message- From: Justin Deoliveira [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 5:49 PM To: [EMAIL PROTECTED] Subject: Re: Continuum 1.1.0-beta-2 UI performance I am using derby out of the box and noticed the same slowdown. I don't have any metrics to back it up but its definitely noticeably slower. -Justin Emmanuel Venisse wrote: Damien Lecan a écrit : Hello, I've just installed Continuum 1.1.0-beta-2 to replace my old Continuum 1.0.3 instance. I'm working with MySql instead of embbeded sql server and with Tomcat 5.5.17 Nice new features, but UI is very, very, very slow :( I followed http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+MySQL and http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+Tomcat for installation. Everything works fine, but very, very slowly. For example, each item on the left menu appears one after the other. Same thing when displaying project group information. Each module name appears one after the other (25s for a 17 modules project). 25s for 17 modules??? With embedded derby database we have better performance (http://maven.zones.apache.org/continuum/) and all appears at the same time Are you sure you use the right jdbc driver? MySql database is shared with other Java applications. They work fine, with expected performances. What can be the problem ? Thanks Damien Lecan !DSPAM:4007,46dd7d79203981439371379!
Re: AW:Re: AW: Question how to prevent maven from update manually add ed dependencies (detailed descr)
I presume that you have a dependency to a JAR, which in turn has a parent-POM. The problem for you is that maven wants to resolve this POM, no matter what you do. It is possible to create several (remote-)repositories in which you deploy such JARs that are needed for certain builds. In my company we have several of those, eg 'commercial', 'free', 'inhouse' (our own releases). Now, if you create such a repository, you can add it inside your POM and maven will look for the artifacts in that repository (where they will then actually be found) and not take so long anymore. I presume that the repository 'commons.ucalgary.ca' would be a good example of a location where to put the files. I am not completely sure though why maven checks for the POM, are you sure you have both the JAR and POM(s) for your dependency in your local repository? I hope this clarifies things, if not, just ask again... Just got back from vacation and the brain is still running on 20%... ;-) On Monday 10 September 2007 16:34, Ritz, Martin wrote: to use the offlien-mode is not an option for me cause I use actual Snapshots! Can you explain the other way a little bit more in detail? - Why add the pom to the repository ?- I don't understand this at all... Martin - You could use the offline-mode (-o), but this will also cut off any other dependencies from being resolved (if they are not available). The best solution will probably be to add the POM for that project in a company-wide repository and add that repo in your POM. On Monday 10 September 2007 16:10, Ritz, Martin wrote: It doesn't work. Another idea? Martin You can try setting the version in your dependency declaration to [1.0] which will lock down the version, and then Maven should realize that you already have those artifacts in your local repo cache, and it doesn't need to run out and look for updates. Wayne On 9/10/07, Ritz, Martin [EMAIL PROTECTED] wrote: Hallo, thx for the quick answer. Here a bit longer description: I have some dependencies which I added manually to my local repo because they are not available in the remote repository. Now everytime I build my project maven tries to update this dependency which is not availble in the remote repo. command line output: -- -- Downloading: http://commons.ucalgary.ca/pub/m2/***/***/***/1.0/***-1.0.pom Downloading: http://repo1.maven.org/maven2/***/***/***/1.0/***-1.0.pom -- -- This job is not necessary and costs time... so I want to prevent it. How can I force Maven to skip this check because I know for sure this dependency isn't in the remote repo. Martin __ __ Its not clear what you are trying to do and why. Please explain things better. In the meantime, you can use mvn -o ... for offline mode which will force Maven to use only the artifacts available on your machine for a given build. Wayne On 9/7/07, Ritz, Martin [EMAIL PROTECTED] wrote: Ho Maven Users, I searched a lot around but couldn't find the answer to my question: How can I prevent maven from update manually added dependencies? Scope provided and system doesn't match my requirements - is there a way of doing in a other way? Thx alot --- Martin Ritz BTC AG - Geschäftseinheit Softwarelösungen mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ot] Jasper report developer for 2 simple reports?
Sorry for the OT, but I have a last minute issue with converting 2 crystal reports to jasper as Crystal Reports does NOT work on HPUX. Is there anyone that would like to talk about a quick jasper conversion for 2 simple reports? Call me at (415) 808-6975 if so. I need this done this week btw... -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
Re: Continuum 1.1.0-beta-2 UI performance
Continuum can't be compared to Archiva because in Continuum pages we have lot of db queries. Emmanuel Damien Lecan a écrit : Hello, I set up Archiva 1.0-beta-1 with the same configuration, and performances are quite better than Continuum one (2-3s to display a page). How can I understand what happen to my Continuum instance ? Thanks Damien Lecan 2007/9/4, Emmanuel Venisse [EMAIL PROTECTED]: We know that 1.1 is a little slower than 1.0.3 because lot of new request and full security added but 25s for 17 modules isn't a normal perf result Emmanuel Mrinal Mukherjee a écrit : Same problem with me. Slow UI. I had this problem as soon as I upgraded to the newer version of continuum. I thought it was a problem in my system, but now I know its something to do with the new version of continuum. Mrinal -Original Message- From: Justin Deoliveira [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 5:49 PM To: [EMAIL PROTECTED] Subject: Re: Continuum 1.1.0-beta-2 UI performance I am using derby out of the box and noticed the same slowdown. I don't have any metrics to back it up but its definitely noticeably slower. -Justin Emmanuel Venisse wrote: Damien Lecan a écrit : Hello, I've just installed Continuum 1.1.0-beta-2 to replace my old Continuum 1.0.3 instance. I'm working with MySql instead of embbeded sql server and with Tomcat 5.5.17 Nice new features, but UI is very, very, very slow :( I followed http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+MySQL and http://docs.codehaus.org/display/CONTINUUMUSER/Continuum+on+Tomcat for installation. Everything works fine, but very, very slowly. For example, each item on the left menu appears one after the other. Same thing when displaying project group information. Each module name appears one after the other (25s for a 17 modules project). 25s for 17 modules??? With embedded derby database we have better performance (http://maven.zones.apache.org/continuum/) and all appears at the same time Are you sure you use the right jdbc driver? MySql database is shared with other Java applications. They work fine, with expected performances. What can be the problem ? Thanks Damien Lecan !DSPAM:4007,46dd7d79203981439371379!
Re: [ot] Jasper report developer for 2 simple reports?
2007/9/10, Mick Knutson [EMAIL PROTECTED]: Sorry for the OT, but I have a last minute issue with converting 2 crystal reports to jasper as Crystal Reports does NOT work on HPUX. Is there anyone that would like to talk about a quick jasper conversion for 2 simple reports? How much do you pay? :-) Seriously, don't you think that asking this question to a JasperReports-related forum is a better idea? Antonio
Re: Re: Maven plugin for Eclipse
it's a known issue with m2eclipse 0.0.10 http://jira.codehaus.org/browse/MNGECLIPSE-265 There's another Eclipse plugin Q4E http://code.google.com/p/q4e/ that me and other maven users are working on and doesn't have that bug. Feel free to check it out. On 9/10/07, De Vleeschauwer Nele [EMAIL PROTECTED] wrote: Hi, Even when I use the Refresh Settings option, Eclipse still tries to connect to the Internet Maven Repo instead of the mirror I defined in my maven settings.xml file. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Achim Abeling Sent: vrijdag 7 september 2007 8:41 To: users@maven.apache.org Subject: Re: Maven plugin for Eclipse Hi, did you refresh the settings in eclipse? It has to be done under Window-Preferences-Maven-Refresh Settings. Best regards Achim De Vleeschauwer Nele wrote: Hi, I have configured my settings.xml in this way and if I execute a maven command from a dos box, it is using our company's repository. But if I call a maven command out of Eclipse, it goes directly to the Maven Repo site. -Original Message- From: COPPENS, Fabien [mailto:[EMAIL PROTECTED] Sent: donderdag 6 september 2007 14:14 To: Maven Users List Subject: RE: Maven plugin for Eclipse I believe you can configure this in your maven settings.xml file via a profile : pluginRepositories pluginRepository idMyDevRepo/id url http://myrepository /url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories /profile -Message d'origine- De : De Vleeschauwer Nele [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 septembre 2007 14:11 À : Maven Users List Objet : Maven plugin for Eclipse Hi, For the moment I'm using version 3.3 of Eclipse with the Maven plugin installed. Each time when I execute a maven command in Eclipse, Eclipse tries to download the necessary artiftacts from the Maven Repo site (repo1.maven.org). How can I configure that Eclipse should use the company's central Maven Repository to download new artifacts instead of the one on the Maven site ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Visit our website! http://www.nbb.be DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Release-plugin 'add-on'
Hi everybody! I want to write a small 'add-on' to the release-plugin, which should be activated between the writing of the release-POM and next-iteration POM. At the moment I have to manually adjust my POMs after a release to change a property. It would be nice (and logical) to have the release-plugin do this. Now, I want to know if (and how) I can write a small add-on in the release-plugin. Or should I create my own version of the plugin to make this work? -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Subcommander 1.2.2.1
Hello, Anyone using Subcommander 1.2.2.1 that experiences intermittent locking issues (Windows Version). I have a user running subcommander in Windows that runs into locks on the repository that I do not have running subcommander under Linux. I figured I would post here as I am not sure if this is a subcommander issue or a subversion issue or just normal. If the user removes the files/folders under the working copy folder and checks out the code again to the working folder, the lock goes away. I am running Subversion 1.4.3 Regards, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question relating to dependencymanagement
Guys, Got a question relating to dependencyManagement..I have got 2 project A and B inheriting from a parent pom (containing dependencyManagement and other project wide attributes). Project A is further subdivided into 2 sub-projects A1 and A2. Now i am not able to inherit (or in other words refer) the dependencyManagement attributes (i.e. the version numbers in my case) defined in projects A's pom, though my project A1 and A2 poms both have project A set as its parent, because of this i get a version not defined error against a dependency defined in project A1, though if i move the same dependency at the very top-level project's dependencymanagement section it works fine. Is it because we can just have one dependencyManagement section (for all projects and its sub-projects as in my case) ? -- View this message in context: http://www.nabble.com/Question-relating-to-dependencymanagement-tf4417255s177.html#a12599330 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
command line compile crashes Eclipse
I'm not sure why this happens, but it seems to happen with both m4eclipse and q4e, or possibly its just an eclipse project generated with eclipse:eclipse, but either way, My system grinds to a halt when I compile from the command line with Eclipse running. Specifically, I'll do: mvn compile, while the same project is open in Eclipse. There are 3255 source files to compile. The system grinds to a halt, Eclipse 9and every other app) becomes unresponsive, and system/root user CPU usage spikes to 100%, while 'user' CPU usage plummets to nearly 0%. If I'm lucky, the process completes and I get my computer back. If I'm unlucky, eclipse crashes. What I think is happening is that Eclipse is monitoring changed files somehow using a kernel hook, which is causing 100% CPU usage by the system, which is preventing compiling from getting done. Or something like that. Anyone else seen this? -- Joshua ChaitinPollak Software Engineer Kiva Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Subcommander 1.2.2.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mark, I figured I would post here as I am not sure if this is a subcommander issue or a subversion issue or just normal. I guess you'd better ask the Subcommander guys or post your question to the Subversion user list instead of this Maven user mailing list... Regards Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkblj/4ACgkQQvObkgCcDe2xwgCfVsLOYwPSLuOe8IaxQvYsmPqP +/IAoJZgXHDSsHu2oEqWUCtGfUjV/sCv =YDuB -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Using Proximity Corporate Repository doesnt download plugins/dependencies
Hello I am trying to setup a corporate repository through proximity. Her's what I did Installed proximity on apache by deploying the px-webap. Now I can browse to the proximity site through apache http://localhost:8080/px-webap. I will be using this site to host my repository in a way like http://somednsname:8080/px-webapp/repository/inhouse and will use it as to access repository from poms and will be making this entry in the setting.xml here's what in my setting.xml !-Settings .xml-- settings localRepositoryc:\Java\maven-2.0.6\repository/localRepository !-- proxies | This is a list of proxies which can be used on this machine to connect to the network. | Unless otherwise specified (by system property or command-line switch), the first proxy | specification in this list marked as active will be used. |-- proxies !-I Intentionally commented proxy to not hit outside world -- !--proxy activetrue/active protocolhttp/protocol hostsingle-proxy.wachovia.net/host port8080/port /proxy -- /proxies //mirrored central to corporate repo mirrors mirror idCentralMirror/id nameProxied Central REPO/name urlhttp://somednsname:8080/px-webapp/repository/inhouse/url mirrorOfcentral/mirrorOf /mirror /mirrors profiles profile idSample/id repositories repository idCorporate/id nameLocal Corporate Repo/name url http://somednsname:8080/px-webapp/repository/inhouse /url snapshots enabledtrue/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idCorporate/id nameLocal Corporate Repo/name url http:// somednsname:8080/px-webapp/repository/inhouse /url releases enabledtrue/enabled updatePolicynever/updatePolicy /releases snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfileSample/activeProfile /activeProfiles /settings I am getting following output when running build + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] Building simpleWebService [INFO]task-segment: [clean, install] [INFO] [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from Corporate [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-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-clean-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1286) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack aging(DefaultLifecycleExecutor.java:1016) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java:980) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278)
Re: How to exclude the contents from WEB-INF/classes from being copied over?
Thanks for the reply! 1) When I left the eclipse output directory as target MyEclipse got very confused and I had a lot of issues, especially switching between eclipse and maven builds. 2) No, I have not changed the maven output directories. This still goes to the default target directories. We're keeping the built by maven output (target/classes and target/test-classes) and the built by eclipse (src/main/webapp/WEB-INF/classes) separate. 3) Yes, I have tried to get the exclude to work for the web resources, but with no success. All examples are for additional web resource folder, so I wonder if that's got anything to do with it. (??) Has anyone had any experience excluding files / directories from src/main/webapp? Here are some of the things that I have tried, none of which work. :-( plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration !-- excludes exclude**/WEB-INF/classes/**/exclude /excludes -- !-- webResources resource directorysrc/main/webapp//directory excludes exclude**/WEB-INF/classes/**/exclude /excludes /resource /webResources -- webResources resource directory src/main/webapp/WEB-INF/classes/ /directory excludes exclude**/exclude /excludes /resource /webResources /configuration /plugin Thanks for all your time and help! Jim On 9/10/07, Thorsten Heit [EMAIL PROTECTED] wrote: Hi, While using MyEclipse with maven, I have the eclipse plug-in keeping the output directory as WEB-INF/classes so that I can still work with hot deploys. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration outputDirectory src/main/webapp/WEB-INF/classes /outputDirectory plugin Eclipse copies the contents of both src/main and src/test to this location so the classes directory will contain *Test.java as well as *.java. When I do a mvn package on the war (outside of eclipse) maven copies everything in the webapp directory over, and then puts in all the non-test classes. However, since the WEB-INF/classes dir wasn't empty (because eclipse is using it) all my tests and test resources get copied over as well. Sure, because Maven treats them as web resources that have to be packaged into your WAR file... I've tried: 1) using the clean plug-in but that means when I switch back over to eclipse I have to do a full clean on that project 2) using an exclude filter for the war plug-in, but have not had any luck with that. Does anyone have a working solution to this? Not a solution, but some questions: 1) Why don't you just use the standard Maven directory for the compiled classes? This shouldn't prevent you from hot deploying changes... 2) Have you configured your desired output directory in your pom.xml so that Maven compiles your classes to the same directory? build ... outputDirectory.../outputDirectory testOutputDirectory.../testOutputDirectory /build 3) If you really need to compile to WEB-INF/classes, have you tried configuring the Maven WAR plugin to exclude that directory when packaging web resources? See [1] [1] http://maven.apache.org/plugins/maven-war-plugin/faq.html#webresourcesexclude Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Subcommander 1.2.2.1
Sorry everyone, I meant to post this to the Subversion Users List! Regards, Mark Thorsten Heit wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Mark, I figured I would post here as I am not sure if this is a subcommander issue or a subversion issue or just normal. I guess you'd better ask the Subcommander guys or post your question to the Subversion user list instead of this Maven user mailing list... Regards Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkblj/4ACgkQQvObkgCcDe2xwgCfVsLOYwPSLuOe8IaxQvYsmPqP +/IAoJZgXHDSsHu2oEqWUCtGfUjV/sCv =YDuB -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Merging javadocs
Following some recent post about javadoc aggregation, I tried to play with javadoc attachments and dependency unpacking with some success and it was quite easy. Here are the poms: For project exporting javadoc: ?xml version=1.0?project parent artifactIdmerging-javadoc/artifactId groupIdoqube.maven/groupId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdoqube.maven.javadoc/groupId artifactIdproject1/artifactId version1.0-SNAPSHOT/version build plugins plugin artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin /plugins /build /project For project importing javadoc: ?xml version=1.0?project parent artifactIdmerging-javadoc/artifactId groupIdoqube.maven/groupId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdoqube.maven.javadoc/groupId artifactIdaggregate/artifactId version1.0-SNAPSHOT/version build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idunpack/id phasepackage/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdoqube.maven.javadoc/groupId artifactIdproject1/artifactId version1.0-SNAPSHOT/version typejar/type classifierjavadoc/classifier overWritetrue/overWrite outputDirectory${project.build.directory}/site/project1-docs//outputDirectory /artifactItem artifactItem groupIdoqube.maven.javadoc/groupId artifactIdproject2/artifactId version1.0-SNAPSHOT/version classifierjavadoc/classifier typejar/type overWritetrue/overWrite outputDirectory${project.build.directory}/site/project2-docs//outputDirectory /artifactItem /artifactItems outputDirectory${project.build.directory}/site/project2-docs//outputDirectory /configuration /execution /executions /plugin /plugins /build/project It is then just a matter of adding links on site.xml: ?xml version=1.0 encoding=ISO-8859-1? project name=Javadoc aggregation test publishDate position=bottom format=dd-MM-/ body menu name=API Documentation item name=Project1 href=/project1-docs/index.html/ item name=Project2 href=/project2-docs/index.html/ /menu /body /project Of course, this is not **true** aggregation, but it works fine. One could achieve true aggregation using similar technique but with: - exporting sources - unpackgin source files and tweaking javadoc plugin to use these as inputs My 2 cts. -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly includes 'wrong' version of dependencies
I've created a jar-with-dependencies assembly and it appears to be including a different version of my dependencies compared to the output of mvn project-info-reports:dependencies or the versions I've defined in the dependencyManagement section of my pom. What am I missing? Doesn't the dependencyManagement section of my pom allow to the override the version of transitive dependencies I want to use? -- View this message in context: http://www.nabble.com/Assembly-includes-%27wrong%27-version-of-dependencies-tf4418650s177.html#a12603223 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to exclude the contents from WEB-INF/classes from being copied over?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, 1) When I left the eclipse output directory as target MyEclipse got very confused and I had a lot of issues, especially switching between eclipse and maven builds. Just for curiosity: What kind of errors? For testing purposes on one of our company's projects I let Eclipse compile the project stuff into the standard Maven output directory (target/classes), but never encountered any problems with that... 3) Yes, I have tried to get the exclude to work for the web resources, but with no success. All examples are for additional web resource folder, so I wonder if that's got anything to do with it. (??) Has anyone had any experience excluding files / directories from src/main/webapp? Here are some of the things that I have tried, none of which work. :-( plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration !-- excludes exclude**/WEB-INF/classes/**/exclude /excludes -- !-- webResources resource directorysrc/main/webapp//directory excludes exclude**/WEB-INF/classes/**/exclude /excludes /resource /webResources -- webResources resource directory src/main/webapp/WEB-INF/classes/ /directory excludes exclude**/exclude /excludes /resource /webResources /configuration /plugin According to the examples in [1] this looks correct. Can you try the following snippet and see whether that works? configuration webResources resource directory${basedir}/src/main/webapp/directory excludes excludeWEB-INF/classes/**/exclude /excludes /resource /webResources /configuration [1] http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html HTH Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkbltjEACgkQQvObkgCcDe1PAgCg9sZNyQ3mCyTgEkTAjc0L9V3d sKMAoIjIOH8ca9I/bsXQVl35BCIfGWaP =XigS -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to exclude the contents from WEB-INF/classes from being copied over?
Hi Thorsten! I'm trying to remember exactly what the issues that came up while having maven and eclipse build to the same location, but I can't remember specifics other than one tool or the other would get confused if the other changed the source. It was at least 6 months ago and I didn't document it. :-( Thanks for the code snip-it. I tried that and cannot get it to work even though it *looks* like it should. This is a snip of the debug output: [DEBUG] (s) warSourceDirectory = c:\path\to\war-project\src\main\webapp [DEBUG] (s) directory = c:\path\to\war-project/src/main/webapp [DEBUG] (s) excludes = [WEB-INF/classes/**] One thing that I did notice is that I had locked down to version 2.0 in some of my original tests. I removed the version/ tag but still no luck. :-( Thanks for your time! Jim On 9/10/07, Thorsten Heit [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, 1) When I left the eclipse output directory as target MyEclipse got very confused and I had a lot of issues, especially switching between eclipse and maven builds. Just for curiosity: What kind of errors? For testing purposes on one of our company's projects I let Eclipse compile the project stuff into the standard Maven output directory (target/classes), but never encountered any problems with that... 3) Yes, I have tried to get the exclude to work for the web resources, but with no success. All examples are for additional web resource folder, so I wonder if that's got anything to do with it. (??) Has anyone had any experience excluding files / directories from src/main/webapp? Here are some of the things that I have tried, none of which work. :-( plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration !-- excludes exclude**/WEB-INF/classes/**/exclude /excludes -- !-- webResources resource directorysrc/main/webapp//directory excludes exclude**/WEB-INF/classes/**/exclude /excludes /resource /webResources -- webResources resource directory src/main/webapp/WEB-INF/classes/ /directory excludes exclude**/exclude /excludes /resource /webResources /configuration /plugin According to the examples in [1] this looks correct. Can you try the following snippet and see whether that works? configuration webResources resource directory${basedir}/src/main/webapp/directory excludes excludeWEB-INF/classes/**/exclude /excludes /resource /webResources /configuration [1] http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html HTH Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkbltjEACgkQQvObkgCcDe1PAgCg9sZNyQ3mCyTgEkTAjc0L9V3d sKMAoIjIOH8ca9I/bsXQVl35BCIfGWaP =XigS -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with site generation i18n
Hello, I ran recently into a strange problem with site generation. When I add the locale fr, maven fails with the following error: java.lang.IllegalArgumentException: Unmatched braces in the pattern. at org.apache.maven.reporting.AbstractMavenReportRenderer.applyPattern(AbstractMavenReportRenderer.java:619) at org.apache.maven.reporting.AbstractMavenReportRenderer.linkPatternedText(AbstractMavenReportRenderer.java:353) at org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMavenReportRenderer.java:213) at org.apache.maven.reporting.AbstractMavenReportRenderer.tableCell(AbstractMavenReportRenderer.java:193) at org.apache.maven.reporting.AbstractMavenReportRenderer.tableRow(AbstractMavenReportRenderer.java:225) at org.apache.maven.report.projectinfo.MailingListsReport$MailingListsRenderer.renderBody(MailingListsReport.java:238) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65) at org.apache.maven.report.projectinfo.MailingListsReport.executeReport(MailingListsReport.java:65) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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) This does not happen with, say, de locale. I noticed that the fr locale is iso-8859-1 encoded whereas the de locale is utf-8 encoded. AFAIK, encoding of properties file should be latin-1 as per the PropertyResourceBundle reference in JDK. So one would expect better results with french locale :) The following does nothing: 1. adding -Dfile.encoding=iso8859-1 to MAVEN_OPTS 2. adding inputEncoding tag to maven-site-plugin Browsing Jira, I have seen several issues related to encoding in site plugin but could not determine the status of my problem in relationship with theses issues. Should I file some Jira issue and/or try to track the problem further (I did not try to check what's going on in site plugin) ? Regards, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: aspectj error
Hello, to get rid of the bad version number found warning, try to add the correct aspectjtools dependency to the aspectj-maven-plugin: plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId configuration ... /configuration executions ... /executions dependencies dependency groupIdaspectj/groupId artifactIdaspectjtools/artifactId version1.5.3/version scopecompile/scope /dependency /dependencies /plugin Hope this helps Michal Palicka -Original Message- From: Alessandro Di Bella [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 02:26 AM To: Maven Users List Subject: aspectj error Hi, I'm trying to compile using aspectj and I keep getting the following error: the parameter thisJoinPoint is not bound in [all branches of] pointcut at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) 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) The plugin is configured as follow: plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId executions execution goals goalcompile/goal goaltest-compile/goal /goals /execution /executions configuration source1.5/source target1.5/target /configuration /plugin and during the build I get this warning: [WARNING] bad version number found in /home/amabboni/.m2/repository/aspectj/aspectjrt/1.5.3/aspectjrt-1.5.3.jar expected 1.5.2a found 1.5.3 I tried with the 1.5.2a version but no luck neither. Any help would be greatly appreciated. Thanks Alessandro - 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: Release-plugin 'add-on'
We have had requests for the ability to do this easily, but there is nothing at the moment. If you are interested in helping with this functionality, please let us know. It may well be possible by redefining the components, but I haven't looked at this alternative yet. Cheers, Brett On 11/09/2007, Roland Asmann [EMAIL PROTECTED] wrote: Hi everybody! I want to write a small 'add-on' to the release-plugin, which should be activated between the writing of the release-POM and next-iteration POM. At the moment I have to manually adjust my POMs after a release to change a property. It would be nice (and logical) to have the release-plugin do this. Now, I want to know if (and how) I can write a small add-on in the release-plugin. Or should I create my own version of the plugin to make this work? -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to exclude the contents from WEB-INF/classes from being copied over?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jim, I'm trying to remember exactly what the issues that came up while having maven and eclipse build to the same location, but I can't remember specifics other than one tool or the other would get confused if the other changed the source. It was at least 6 months ago and I didn't document it. :-( *sigh* Thanks for the code snip-it. I tried that and cannot get it to work even though it *looks* like it should. This is a snip of the debug output: [DEBUG] (s) warSourceDirectory = c:\path\to\war-project\src\main\webapp [DEBUG] (s) directory = c:\path\to\war-project/src/main/webapp [DEBUG] (s) excludes = [WEB-INF/classes/**] One thing that I did notice is that I had locked down to version 2.0 in some of my original tests. I removed the version/ tag but still no luck. :-( Can you try version 2.0.2 of the WAR plugin? This is the newest version actually available on central repo... I just saw that there are a couple of issues in Jira for WAR plugin concerning resources: * http://jira.codehaus.org/browse/MWAR-29 * http://jira.codehaus.org/browse/MWAR-60 * http://jira.codehaus.org/browse/MWAR-109 Your problem seems to be similar to MWAR-60. So if version 2.0.2 doesn't work, what about giving 2.0.3-SNAPSHOT or 2.1-alpha-1-SNAPSHOT a try? HTH Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkblv0sACgkQQvObkgCcDe3H3ACgmNcvEbHFXTJrh1GIXG4D9Lwe BlQAoLNRY3alj3WSYauY7GmeJItd4jOQ =7CkR -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there a property for parent directory?
Hi, Is there a property or way to get parent directory in maven? Let's say I have this structure of my projects: Parent | pom.xml | child project 1 | |___ pom.xml | child project 2 |___ pom.xml Child project 1 and project 2 will inherit from parent 1. Now, when building children projects, is there a property in maven that can be used to refer to the actual directory of parent during build time? I know the notation of ${basedir}/../ might work in most cases, but what if child project is in another level down, i.e. Parent | pom.xml | children folder 1 | |___ child project 1 | | | | | |___ pom.xml | |___ child project 2 | |___ pom.xml | child project 3 |___ pom.xml Thanks Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I configure ant run plugin to run ant script with javac ant task with fork=false?
Hi I am trying to call javac ant task in an ant script from ant run plugin and getting the following error when the fork attribute is false in the javac task in my ant script. The workaround is to set fork to true, but how can I configure the ant run plugin so that it works with the javac ant task in the ant script with fork=false Error output [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [antrun:run {execution: my-compile}] [INFO] Executing tasks compile: [echo] env.JAVA_HOME d:/Java/jdk1.5.0_06 [javac] Compiling 10 source files to D:\chikkala\dev\mvn-plugin\MyBC2\build\classes [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: D:\chikkala\dev\mvn-plugin\MyBC2\build.xml:97: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK Here is my maven-antrun-plugin configuration - plugin artifactIdmaven-antrun-plugin/artifactId executions execution idmy-compile-id/id phasecompile/phase goalsgoalrun/goal/goals configuration tasks ant antfile=build.xml inheritAll=false target=compile /ant /tasks /configuration /execution /plugin Here is the ant script in the build.xml -- target name=compile property environment=env / echo message=env.JAVA_HOME ${env.JAVA_HOME} / property name=javac.classpath value= / property name=build.classes.dir location=build/classes / property name=src.dir location=src / mkdir dir=${build.classes.dir}/ javac fork=false srcdir=${src.dir} destdir=${build.classes.dir} debug=flase deprecation=false source=1.5 target=1.5 includeantruntime=false classpath path path=${javac.classpath}/ /classpath compilerarg line=/ /javac /target thanks, -- Srinivasan Chikkala Open ESB Community (http://open-esb.org) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on maven-buildnumber-plugin
Okay 0.9.6 is released and addresses this issue. http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/changes- report.html J On 29-Aug-07, at 1:45 PM, Kalle Korhonen wrote: I owe you one, Julian! The only thing wrong in Dennis' suggestion is that it's exactly what I wanted to avoid - and what others probably would like to avoid as well. Not that writing/compiling plugin is that much work, but there's overhead in maintaining, deploying and versioning anything you have to do yourself. Kalle On 8/29/07, Julian Wood [EMAIL PROTECTED] wrote: Seems reasonable. Look for it in 0.9.6. J On 28-Aug-07, at 3:00 PM, Kalle Korhonen wrote: I've been amazed myself by the fact that the plugin (nor any other one) doesn't just provide a straight-up timestamp. buildnumber plugin comes the closest, but if you want to use both svn version number and a timestamp, you are frustratingly out of luck. Looking at buildnumber plugin source, it'd be super simple to add the timestamp as different property rather than re-using buildNumber. Hey Julian, any chance you could add ${timestamp} in the next version? I'm sure a lot of people would be grateful for this, so that not everyone would need to create weird hacks or implement their plugin versions just for this. Kalle On 8/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm using the maven-buildnumber--plugin version 0.9.5 It works but I would like to have both a timestamp and the build number from svn? Is this possible? Regards Gunnar --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Julian Wood Web, E-Mail, and Middleware Services University of Calgary Information Technologies, 2500 University Drive, Calgary, Alberta, Canada T2N 1N4 (403) 220-5868 -- Julian Wood Web, E-Mail, and Middleware Services University of Calgary Information Technologies, 2500 University Drive, Calgary, Alberta, Canada T2N 1N4 (403) 220-5868
Can Maven 2 check its version and fail?
I am looking for some means (pom configuration) that makes the Maven build checking the Maven version and fails the build if the Maven version is less than expected. Somehow I think I saw that somewhere, but since my friend Google seems not to know as well I am not sure if I was just dreaming.
Re: Can Maven 2 check its version and fail?
prerequisites maven2.0.7/maven /prerequisites I think the Enforcer plugin can also do this. - Brett On 11/09/2007, Andreas Guther [EMAIL PROTECTED] wrote: I am looking for some means (pom configuration) that makes the Maven build checking the Maven version and fails the build if the Maven version is less than expected. Somehow I think I saw that somewhere, but since my friend Google seems not to know as well I am not sure if I was just dreaming. -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Maven 2 check its version and fail?
Add: prerequisites maven2.0.6/maven /prerequisites to your pom.xml. Kalle On 9/10/07, Andreas Guther [EMAIL PROTECTED] wrote: I am looking for some means (pom configuration) that makes the Maven build checking the Maven version and fails the build if the Maven version is less than expected. Somehow I think I saw that somewhere, but since my friend Google seems not to know as well I am not sure if I was just dreaming.
RE: Can Maven 2 check its version and fail?
The prereq will work but isn't inherited since it's meant for tools. The enforcer (http://maven.apache.org/plugins/maven-enforcer-plugin) is a more flexible solution. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, September 10, 2007 8:38 PM To: Maven Users List Subject: Re: Can Maven 2 check its version and fail? prerequisites maven2.0.7/maven /prerequisites I think the Enforcer plugin can also do this. - Brett On 11/09/2007, Andreas Guther [EMAIL PROTECTED] wrote: I am looking for some means (pom configuration) that makes the Maven build checking the Maven version and fails the build if the Maven version is less than expected. Somehow I think I saw that somewhere, but since my friend Google seems not to know as well I am not sure if I was just dreaming. -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - 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: Can Maven 2 check its version and fail?
On 9/10/07, Kalle Korhonen [EMAIL PROTECTED] wrote: Add: prerequisites maven2.0.6/maven /prerequisites to your pom.xml. AFAIK, this only applies to plugins. If you put a prerequesite in a plugin pom, then a Maven version earlier than the one specified will not see that plugin. Does it really prevent a normal project from building with an earlier version of Maven? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can Maven 2 check its version and fail?
On 11/09/2007, Wendy Smoak [EMAIL PROTECTED] wrote: Does it really prevent a normal project from building with an earlier version of Maven? Yes - but as Brian said, the enforcer is a better solution. - Brett -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot deploy a parent 'tar.gz' assembly
Hi, Is there anyway to control or influence the reactor build order? If the parent-as-dependent feature is intentional (and not a bug) then perhaps the parent element could have an attribute or child element that allowed you to specify whether you wished the parent to be built first or last. Of course, I am just thinking out loud because the work-around you mentioned is not intuitive and more than a little messy. Certainly it seemed that way when I explained it to others here. Thanks for all your help Tim, I really could not see what I was doing wrong and I now understand how to read Maven (logging output) a little better. I am just hoping that the reactor build order is a bug and if not then perhaps it can be influenced. Cheers, Evan. Tim Kettler wrote: Hi, just did a quick test. The difference is, that wih the parent element present, the build order of the projects change: Without Parent: [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Unnamed - my-test-group:suba:jar:1.0-SNAPSHOT [INFO] Unnamed - my-test-group:subb:jar:1.0-SNAPSHOT [INFO] Unnamed - my-test-group:parent:pom:1.0-SNAPSHOT With Parent: [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Unnamed - my-test-group:parent:pom:1.0-SNAPSHOT [INFO] Unnamed - my-test-group:suba:jar:1.0-SNAPSHOT [INFO] Unnamed - my-test-group:subb:jar:1.0-SNAPSHOT It seems, the parent/ relationship is handled like a dependency between the projects and thus the parent is build before the childs. I have no time now, but I will ask on the dev-list later today why exactly it is handled this way. For the time being, the proper way of handling this situation would be to create a parent pom separate from the top-level pom. The childs inherit from the parent and the assembly is build in the top-level pom: . |-- pom.xml Top-Level building assembly |-- src | `-- main | `-- assembly | `-- developer-assembly.xml |-- parent | `-- pom.xml Child inherit from this |-- suba | |-- pom.xml | `-- src | `-- main | `-- java | `-- TestClass.java `-- subb |-- pom.xml `-- src `-- main `-- java `-- TestClass.java -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on maven-buildnumber-plugin
Wonderful, thanks a lot! Owe you one, works perfectly. Kalle On 9/10/07, Julian Wood [EMAIL PROTECTED] wrote: Okay 0.9.6 is released and addresses this issue. http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/changes- report.html J On 29-Aug-07, at 1:45 PM, Kalle Korhonen wrote: I owe you one, Julian! The only thing wrong in Dennis' suggestion is that it's exactly what I wanted to avoid - and what others probably would like to avoid as well. Not that writing/compiling plugin is that much work, but there's overhead in maintaining, deploying and versioning anything you have to do yourself. Kalle On 8/29/07, Julian Wood [EMAIL PROTECTED] wrote: Seems reasonable. Look for it in 0.9.6. J On 28-Aug-07, at 3:00 PM, Kalle Korhonen wrote: I've been amazed myself by the fact that the plugin (nor any other one) doesn't just provide a straight-up timestamp. buildnumber plugin comes the closest, but if you want to use both svn version number and a timestamp, you are frustratingly out of luck. Looking at buildnumber plugin source, it'd be super simple to add the timestamp as different property rather than re-using buildNumber. Hey Julian, any chance you could add ${timestamp} in the next version? I'm sure a lot of people would be grateful for this, so that not everyone would need to create weird hacks or implement their plugin versions just for this. Kalle On 8/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm using the maven-buildnumber--plugin version 0.9.5 It works but I would like to have both a timestamp and the build number from svn? Is this possible? Regards Gunnar --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Julian Wood Web, E-Mail, and Middleware Services University of Calgary Information Technologies, 2500 University Drive, Calgary, Alberta, Canada T2N 1N4 (403) 220-5868 -- Julian Wood Web, E-Mail, and Middleware Services University of Calgary Information Technologies, 2500 University Drive, Calgary, Alberta, Canada T2N 1N4 (403) 220-5868
Re: command line compile crashes Eclipse
Dunno. Did you ask the Eclipse folks? Wayne On 9/10/07, Joshua ChaitinPollak [EMAIL PROTECTED] wrote: I'm not sure why this happens, but it seems to happen with both m4eclipse and q4e, or possibly its just an eclipse project generated with eclipse:eclipse, but either way, My system grinds to a halt when I compile from the command line with Eclipse running. Specifically, I'll do: mvn compile, while the same project is open in Eclipse. There are 3255 source files to compile. The system grinds to a halt, Eclipse 9and every other app) becomes unresponsive, and system/root user CPU usage spikes to 100%, while 'user' CPU usage plummets to nearly 0%. If I'm lucky, the process completes and I get my computer back. If I'm unlucky, eclipse crashes. What I think is happening is that Eclipse is monitoring changed files somehow using a kernel hook, which is causing 100% CPU usage by the system, which is preventing compiling from getting done. Or something like that. Anyone else seen this? -- Joshua ChaitinPollak Software Engineer Kiva Systems - 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: FW: Using Proximity Corporate Repository doesnt download plugins/dependencies
Perhaps Tamas will reply. I know he had a hardware failure and so the normal Proximity support channels are not available. Wayne On 9/10/07, Sonar, Nishant [EMAIL PROTECTED] wrote: Hello I am trying to setup a corporate repository through proximity. Her's what I did Installed proximity on apache by deploying the px-webap. Now I can browse to the proximity site through apache http://localhost:8080/px-webap. I will be using this site to host my repository in a way like http://somednsname:8080/px-webapp/repository/inhouse and will use it as to access repository from poms and will be making this entry in the setting.xml here's what in my setting.xml !-Settings .xml-- settings localRepositoryc:\Java\maven-2.0.6\repository/localRepository !-- proxies | This is a list of proxies which can be used on this machine to connect to the network. | Unless otherwise specified (by system property or command-line switch), the first proxy | specification in this list marked as active will be used. |-- proxies !-I Intentionally commented proxy to not hit outside world -- !--proxy activetrue/active protocolhttp/protocol hostsingle-proxy.wachovia.net/host port8080/port /proxy -- /proxies //mirrored central to corporate repo mirrors mirror idCentralMirror/id nameProxied Central REPO/name urlhttp://somednsname:8080/px-webapp/repository/inhouse/url mirrorOfcentral/mirrorOf /mirror /mirrors profiles profile idSample/id repositories repository idCorporate/id nameLocal Corporate Repo/name url http://somednsname:8080/px-webapp/repository/inhouse /url snapshots enabledtrue/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idCorporate/id nameLocal Corporate Repo/name url http:// somednsname:8080/px-webapp/repository/inhouse /url releases enabledtrue/enabled updatePolicynever/updatePolicy /releases snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfileSample/activeProfile /activeProfiles /settings I am getting following output when running build + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] Building simpleWebService [INFO]task-segment: [clean, install] [INFO] [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from Corporate [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-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-clean-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1286) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack aging(DefaultLifecycleExecutor.java:1016) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java:980) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:458) at
Re: Is there a property for parent directory?
Why do you need to do this? There may be a better way to do the same thing that does not involve a ${parent} tag at all. Wayne On 9/10/07, Huang, Yan [EMAIL PROTECTED] wrote: Hi, Is there a property or way to get parent directory in maven? Let's say I have this structure of my projects: Parent | pom.xml | child project 1 | |___ pom.xml | child project 2 |___ pom.xml Child project 1 and project 2 will inherit from parent 1. Now, when building children projects, is there a property in maven that can be used to refer to the actual directory of parent during build time? I know the notation of ${basedir}/../ might work in most cases, but what if child project is in another level down, i.e. Parent | pom.xml | children folder 1 | |___ child project 1 | | | | | |___ pom.xml | |___ child project 2 | |___ pom.xml | child project 3 |___ pom.xml Thanks Yan - 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: command line compile crashes Eclipse
do you mean that you do the mvn compile outside of eclipse? I didn' t think that eclipse pick up external changes if you don' t explicitly do a refresh On 9/10/07, Joshua ChaitinPollak [EMAIL PROTECTED] wrote: I'm not sure why this happens, but it seems to happen with both m4eclipse and q4e, or possibly its just an eclipse project generated with eclipse:eclipse, but either way, My system grinds to a halt when I compile from the command line with Eclipse running. Specifically, I'll do: mvn compile, while the same project is open in Eclipse. There are 3255 source files to compile. The system grinds to a halt, Eclipse 9and every other app) becomes unresponsive, and system/root user CPU usage spikes to 100%, while 'user' CPU usage plummets to nearly 0%. If I'm lucky, the process completes and I get my computer back. If I'm unlucky, eclipse crashes. What I think is happening is that Eclipse is monitoring changed files somehow using a kernel hook, which is causing 100% CPU usage by the system, which is preventing compiling from getting done. Or something like that. Anyone else seen this? -- Joshua ChaitinPollak Software Engineer Kiva Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Finding Elapsed Time of a Build
In order to find the elapsed time of a build in seconds, is it correct to subtract SA.BUILDRESULT.START_TIME from SA.BUILDRESULT.END_TIME and divide by 3600? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: command line compile crashes Eclipse
On 9/11/07, Carlos Sanchez [EMAIL PROTECTED] wrote: do you mean that you do the mvn compile outside of eclipse? I didn' t think that eclipse pick up external changes if you don' t explicitly do a refresh It doesn't, unless you turn that feature on yourself. (Windows - Preferences - General - Workspace - Refresh automatically) But its a bad idea to turn this on as you could be in the middle of a compile when Eclipse tries to refresh and everything will get out of sync. You are better to manually refreshing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: command line compile crashes Eclipse
On Sep 10, 2007, at 10:30 PM, Carlos Sanchez wrote: do you mean that you do the mvn compile outside of eclipse? I didn' t think that eclipse pick up external changes if you don' t explicitly do a refresh Yes, sometimes, but not always, when I compile outside of eclipse, my computer grinds to a halt and the compile takes forever, (30 minutes instead of 5). Then, sometimes Eclipse crashes. Eclipse is not doing a refresh during this period, and 'auto refresh' is off. I didn't report this to the Eclipse project because it appears to be maven related, possibly with one of the 3 ways of integrating Eclipse with Maven. I know this doesn't happen when I use our deprecated ant build system. -Josh -- Joshua ChaitinPollak Software Engineer Kiva Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ot] Jasper report developer for 2 simple reports?
Only f or running JasperReports with maven2 i can provide you some tips/hints. Antonio Petrelli-3 wrote: 2007/9/10, Mick Knutson [EMAIL PROTECTED]: Sorry for the OT, but I have a last minute issue with converting 2 crystal reports to jasper as Crystal Reports does NOT work on HPUX. Is there anyone that would like to talk about a quick jasper conversion for 2 simple reports? How much do you pay? :-) Seriously, don't you think that asking this question to a JasperReports-related forum is a better idea? Antonio -- View this message in context: http://www.nabble.com/-ot--Jasper-report-developer-for-2-simple-reports--tf4415897s177.html#a12607990 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]