Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 91030 invoked from network); 5 Sep 2006 07:18:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2006 07:18:20 -0000 Received: (qmail 72810 invoked by uid 500); 5 Sep 2006 07:18:19 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 72780 invoked by uid 500); 5 Sep 2006 07:18:19 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 72758 invoked by uid 99); 5 Sep 2006 07:18:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 00:18:18 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of feniksenator@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 00:18:17 -0700 Received: by nf-out-0910.google.com with SMTP id l23so1345171nfc for ; Tue, 05 Sep 2006 00:17:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=mrKvKLmdhx5e7xCBDcFXJQxBOxVFP+87c0s5lb3bLL2b94f1MIExW8tBSuhVuXEuNHJ4IYmZVUeq8bx07bDIjowLnWcRTXpMXaDg7o8x42SAUmrXlH2zhfOmc1HjLGJAAn/b0aizL9/BvrnAbeogR4MBWmS1EuPE7pVFF8IgrEU= Received: by 10.49.26.18 with SMTP id d18mr7446132nfj; Tue, 05 Sep 2006 00:17:55 -0700 (PDT) Received: by 10.49.28.13 with HTTP; Tue, 5 Sep 2006 00:17:55 -0700 (PDT) Message-ID: <79a72e520609050017i225c8473gba7cb210c5887cdd@mail.gmail.com> Date: Tue, 5 Sep 2006 09:17:55 +0200 From: "Feniks Nator" To: continuum-users@maven.apache.org Subject: continuum and settings.xml MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_164893_22923663.1157440675580" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_164893_22923663.1157440675580 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I'd like to know how continuum (possibly maven) detect it's settings.xml. As I understand continuum prints out the location of settings.xml. This comes from our log file: INFO | jvm 1 | 2006/09/05 08:54:34 | 2006-09-05 08:54:34,033 [WrapperSimpleAppMain] DEBUG MavenSettingsBuilder - Building Maven global-level settings from: 'D:\javadev\tools\continuum\continuum- 1.0.3\bin\win32\conf\settings.xml' INFO | jvm 1 | 2006/09/05 08:54:34 | 2006-09-05 08:54:34,033 [WrapperSimpleAppMain] DEBUG MavenSettingsBuilder - Building Maven user-level settings from: 'C:\Documents and Settings\continuum\.m2\settings.xml' If the files are present or not, these lines arein the log files. Because I had some trouble I tried out following combinations: Location of settings.xml %MAVEN_HOME%\conf %CONTINUUM_HOME%\bin\win32\conf (1) not present not present (2) not present present (3) present not present (4) present present 1,2 and 3 result in errors. 4 does not. So it seems the the settings.xmlfile must be present at both locations...? The errors (part of) are listed below. For your info: there is one master project, containing several modules. The modules have the master as parent POM, the master uses a company wide parent POM. The local repository is empty, this is tested with a clean installation of maven/continuum. (1) No settings.xml specified. Continuum Error Cannot build maven project from s:\TEMP\system\continuum\viewcvs\checkout\myproject\master\pom.xml (Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT). INFO | jvm 1 | 2006/09/01 15:47:17 | 2006-09-01 15:47:17,345 [WrapperSimpleAppMain] DEBUG MavenSettingsBuilder - Building Maven global-level settings from: 'D:\javadev\tools\continuum\continuum- 1.0.3\bin\win32\conf\settings.xml' INFO | jvm 1 | 2006/09/01 15:47:17 | 2006-09-01 15:47:17,345 [WrapperSimpleAppMain] DEBUG MavenSettingsBuilder - Building Maven user-level settings from: 'C:\Documents and Settings\continuum\.m2\settings.xml' INFO | jvm 1 | 2006/09/01 15:51:55 | 2006-09-01 15:51:55,704 [SocketListener0-1] ERROR MavenBuilderHelper - Cannot build maven project from s:\TEMP\system\continuum\viewcvs\checkout\myproject\master\pom.xml (Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT). INFO | jvm 1 | 2006/09/01 15:51:55 | INFO | jvm 1 | 2006/09/01 15:51:55 | org.apache.maven.project.ProjectBuildingException: Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT INFO | jvm 1 | 2006/09/01 15:51:55 | at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1161) INFO | jvm 1 | 2006/09/01 15:51:55 | at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal( DefaultMavenProjectBuilder.java:674) INFO | jvm 1 | 2006/09/01 15:51:55 | at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal (DefaultMavenProjectBuilder.java:416) INFO | jvm 1 | 2006/09/01 15:51:55 | at org.apache.maven.project.DefaultMavenProjectBuilder.build( DefaultMavenProjectBuilder.java:201) INFO | jvm 1 | 2006/09/01 15:51:55 | at org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject (DefaultMavenBuilderHelper.java:306) INFO | jvm 1 | 2006/09/01 15:51:55 | at org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.readModules (MavenTwoContinuumProjectBuilder.java:99) INFO | jvm 1 | 2006/09/01 15:51:55 | Caused by: org.apache.maven.project.ProjectBuildingException: Error getting POM for ' mycompany.common:common-masterpom' from the repository: Error transferring file INFO | jvm 1 | 2006/09/01 15:51:55 | mycompany.common:common-masterpom:pom:1.0.0 INFO | jvm 1 | 2006/09/01 15:51:55 | INFO | jvm 1 | 2006/09/01 15:51:55 | from the specified remote repositories: INFO | jvm 1 | 2006/09/01 15:51:55 | central ( http://repo1.maven.org/maven2) <-- I think this is normal, default maven settings when nothing else specified. (2) settings.xml present in %CONTINUUM_HOME%\bin\win32\conf I this case adding the master project results in all projects being added to continuum. However the master project can not be built because the parent POM is not found. Apparently the settings from settings.xml are not taken into account. Our settings.xml overrides central so that our projects go to our internal (company) repository. But continuum seems to go to repo1.maven.org Error: INFO | jvm 1 | 2006/09/01 16:06:02 | [INFO] Scanning for projects... INFO | jvm 1 | 2006/09/01 16:06:02 | Downloading: http://repo1.maven.org /maven2/mycompany/common/common-masterpom/1.0.0/common-masterpom-1.0.0.pom INFO | jvm 1 | 2006/09/01 16:06:02 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2006/09/01 16:06:02 | [ERROR] FATAL ERROR INFO | jvm 1 | 2006/09/01 16:06:02 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2006/09/01 16:06:02 | [INFO] Error building POM (may not be this project's POM). INFO | jvm 1 | 2006/09/01 16:06:02 | INFO | jvm 1 | 2006/09/01 16:06:02 | INFO | jvm 1 | 2006/09/01 16:06:02 | Project ID: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT INFO | jvm 1 | 2006/09/01 16:06:02 | INFO | jvm 1 | 2006/09/01 16:06:02 | Reason: Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT INFO | jvm 1 | 2006/09/01 16:06:02 | INFO | jvm 1 | 2006/09/01 16:06:02 | INFO | jvm 1 | 2006/09/01 16:06:02 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2006/09/01 16:06:02 | [INFO] Trace INFO | jvm 1 | 2006/09/01 16:06:02 | org.apache.maven.reactor.MavenExecutionException: Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT INFO | jvm 1 | 2006/09/01 16:06:02 | at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) (3) settings.xml only present in %MAVEN_HOME%\conf I think in this case the modules were not added to continuum. INFO | jvm 1 | 2006/09/01 16:23:37 | 2006-09-01 16:23:37,345 [SocketListener0-0] ERROR MavenBuilderHelper - Cannot build maven project from s:\TEMP\system\continuum\viewcvs\checkout\myproject\master\pom.xml (Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT). INFO | jvm 1 | 2006/09/01 16:23:37 | INFO | jvm 1 | 2006/09/01 16:23:37 | org.apache.maven.project.ProjectBuildingException: Cannot find parent: mycompany.common:common-masterpom for project: mycompany.myproject:myproject-master:pom:2.5-SNAPSHOT INFO | jvm 1 | 2006/09/01 16:23:37 | at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1161) INFO | jvm 1 | 2006/09/01 16:23:37 | at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal( DefaultMavenProjectBuilder.java:674) INFO | jvm 1 | 2006/09/01 16:23:37 | at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal (DefaultMavenProjectBuilder.java:416) INFO | jvm 1 | 2006/09/01 16:23:37 | at org.apache.maven.project.DefaultMavenProjectBuilder.build( DefaultMavenProjectBuilder.java:201) (4) settings.xml present in both locations. Adding the master project works fine, all modules are also added, our internal repository is used. Conclusion: settings.xml (the same) must be present at both locations: %MAVEN_HOME%\conf and %CONTINUUM_HOME%\bin\win32\conf ?? Anyone who can explain/confirm this? Thanks ------=_Part_164893_22923663.1157440675580--