You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jörg Schaible <Jo...@Elsag-Solutions.com> on 2007/04/05 11:04:00 UTC

M206 Regression: Build is broken

Hi folks,

after some hours testing M206 and looking for solutions, I am quite helpless with our build that is broken if I run a multi-project build. Part of this build is the creation of an ejb-client jar and another artifact that is dependend on it. Unfortunately the dependent artifact cannot be compiled, because the classes from the ejb-client are misssing.

Culprit seems to be indicated by the line from the resources:resources goal, where the ejb-client is listed with a scope of "null":

[DEBUG]   ip.evtmon:ip-evtmon-ejb:ejb-client:client:2.2.2-SNAPSHOT (selected for null)

and therefore it seems consequently omitted compiling the classes, since it is not part of the classpath anymore. If I build the module locally there's no problem, the scope is "compile", but not when running in a multi-project build. I already tried to introduce a dependencyManagment section in the local POM where I declare this artifacts again with explicit scope "compile". Any idea what might cause this?

- Jörg


=================== %< ======================
...
[INFO] ----------------------------------------------------------------------------
[INFO] Building eIP EventMonitor Client Commons
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory = D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@934e3a83
[DEBUG]   (f) resources = [org.apache.maven.model.Resource@1c6cc9c]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] ip.evtmon:ip-evtmon-client-commons:jar:2.2.1-SNAPSHOT (selected for null)
[DEBUG]   active project artifact:
        artifact = ip.commons:ip-commons:jar:2.2.5-SNAPSHOT:compile;
        project: org.apache.maven.project.MavenProject@2cd5f4b2 (selected for compile)
[DEBUG]     commons-lang:commons-lang:jar:2.1:compile (selected for compile)
[DEBUG]     com.elsagsolutions.commons:es-commons-lang:jar:2.0.7:compile (selected for compile)
[DEBUG]     commons-collections:commons-collections:jar:3.2:runtime (selected for runtime)
[DEBUG]     commons-id:commons-id:jar:20060125.092202:compile (selected for compile)
[DEBUG]     commons-beanutils:commons-beanutils:jar:1.7.0:compile (selected for compile)
[DEBUG]       commons-logging:commons-logging:jar:1.0.3:compile (applying version: 1.1)
[DEBUG]       commons-logging:commons-logging:jar:1.1:compile (selected for compile)
[DEBUG]     com.thoughtworks.xstream:xstream:jar:1.2.1:compile (selected for compile)
[DEBUG]       xpp3:xpp3_min:jar:1.1.3.4.O:compile (selected for compile)
[DEBUG]     com.elsagsolutions.commons:es-commons-j2ee:jar:2.0.0:compile (selected for compile)
[DEBUG]   javax.ejb:ejb:jar:2.0:provided (selected for provided)
[DEBUG]   active project artifact:
        artifact = ip.evtmon:ip-evtmon-commons:jar:2.2.2-SNAPSHOT:compile;
        project: org.apache.maven.project.MavenProject@3cd94fb0 (selected for compile)
[DEBUG]   com.elsagsolutions.commons:es-commons-j2ee:jar:2.0.0:compile (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.1:compile (selected for compile)
[DEBUG]   ip.evtmon:ip-evtmon-ejb:ejb-client:client:2.2.2-SNAPSHOT (selected for null)
[DEBUG]     com.elsagsolutions.commons:es-commons-test:jar:2.0.11:test (selected for test)
[DEBUG]       commons-io:commons-io:jar:1.3:test (selected for test)
[DEBUG]       commons-configuration:commons-configuration:jar:1.2:test (selected for test)
[DEBUG]         commons-collections:commons-collections:jar:3.1:test (applying version: 3.2)
[DEBUG]         xalan:xalan:jar:2.7.0:test (applying scope: runtime)
[DEBUG]         xalan:xalan:jar:2.7.0:runtime (selected for runtime)
[DEBUG]       jmock:jmock:jar:1.1.0:test (selected for test)
[DEBUG]         junit:junit:jar:3.8.1:test (selected for test)
[DEBUG]       cglib:cglib-nodep:jar:2.1_3:test (selected for test)
[DEBUG]       javax.xml:jaxp-api:jar:1.3.2:test (selected for test)
[DEBUG]       xalan:xalan:jar:2.7.0:test (applying scope: runtime)
[DEBUG]       xalan:xalan:jar:2.7.0:runtime (selected for runtime)
[DEBUG]     com.elsagsolutions.commons:es-commons-configuration:jar:2.0.2:compile (selected for compile)
[DEBUG]       commons-configuration:commons-configuration:jar:1.2:test (setting scope to: compile)
[DEBUG]       commons-configuration:commons-configuration:jar:1.2:compile (selected for compile)
[DEBUG]         commons-collections:commons-collections:jar:3.1:compile (applying version: 3.2)
[DEBUG]         commons-collections:commons-collections:jar:3.2:runtime (setting scope to: compile)
[DEBUG]         commons-collections:commons-collections:jar:3.2:compile (selected for compile)
[DEBUG]         xalan:xalan:jar:2.7.0:compile (applying scope: runtime)
[DEBUG]       com.elsagsolutions.commons:es-commons-lang:jar:2.0.6:compile (applying version: 2.0.7)
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' -->
[DEBUG]   (f) basedir = D:\work\standard\eIP\EventMonitor\client-commons-jar
[DEBUG]   (f) buildDirectory = D:\work\standard\eIP\EventMonitor\client-commons-jar\target
[DEBUG]   (f) classpathElements = [D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes, d:\repository\m2\com\elsagsolutions\commons\es-commons-j2ee\2.0.0\es-commons-j2ee-2.0.0.jar, d:\repository\m2\commons-logging\commons-logging\1.1\commons-logging-1.1.jar, D:\work\standard\eIP\EventMonitor\commons-jar\target\classes, d:\repository\m2\commons-id\commons-id\20060125.092202\commons-id-20060125.092202.jar, d:\repository\m2\commons-lang\commons-lang\2.1\commons-lang-2.1.jar, D:\work\standard\eIP\commons-jar\target\classes, d:\repository\m2\commons-configuration\commons-configuration\1.2\commons-configuration-1.2.jar, d:\repository\m2\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0
.jar, d:\repository\m2\commons-collections\commons-collections\3.2\commons-collections-3.2.jar, d:\repository\m2\javax\ejb\ejb\2.0\ejb-2.0.jar, d:\repository\m2\com\elsagsolutions\commons\es-commons-lang\2.0.7\es-commons-lang-2.0.7.jar, d:\repository\m2\com\thoughtworks\xstream\xstream\1.2.1\xstream-1.2.1.jar, d:\repository\m2\xpp3\xpp3_min\1.1.3.4.O\xpp3_min-1.1.3.4.O.jar, d:\repository\m2\com\elsagsolutions\commons\es-commons-configuration\2.0.2\es-commons-configuration-2.0.2.jar]
[DEBUG]   (f) compileSourceRoots = [D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) encoding = iso-8859-1
[DEBUG]   (f) failOnError = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory = D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes
[DEBUG]   (f) outputFileName = ip-evtmon-client-commons-2.2.1-SNAPSHOT
[DEBUG]   (f) projectArtifact = ip.evtmon:ip-evtmon-client-commons:jar:2.2.1-SNAPSHOT
[DEBUG]   (f) showDeprecation = true
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.4
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.4
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java]
[DEBUG] Classpath: [D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes
 d:\repository\m2\com\elsagsolutions\commons\es-commons-j2ee\2.0.0\es-commons-j2ee-2.0.0.jar
 d:\repository\m2\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
 D:\work\standard\eIP\EventMonitor\commons-jar\target\classes
 d:\repository\m2\commons-id\commons-id\20060125.092202\commons-id-20060125.092202.jar
 d:\repository\m2\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
 D:\work\standard\eIP\commons-jar\target\classes
 d:\repository\m2\commons-configuration\commons-configuration\1.2\commons-configuration-1.2.jar
 d:\repository\m2\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar
 d:\repository\m2\commons-collections\commons-collections\3.2\commons-collections-3.2.jar
 d:\repository\m2\javax\ejb\ejb\2.0\ejb-2.0.jar
 d:\repository\m2\com\elsagsolutions\commons\es-commons-lang\2.0.7\es-commons-lang-2.0.7.jar
 d:\repository\m2\com\thoughtworks\xstream\xstream\1.2.1\xstream-1.2.1.jar
 d:\repository\m2\xpp3\xpp3_min\1.1.3.4.O\xpp3_min-1.1.3.4.O.jar
 d:\repository\m2\com\elsagsolutions\commons\es-commons-configuration\2.0.2\es-commons-configuration-2.0.2.jar]
[DEBUG] Output directory: D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes
[DEBUG] Classpath:
[DEBUG]  D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes
[DEBUG]  d:\repository\m2\com\elsagsolutions\commons\es-commons-j2ee\2.0.0\es-commons-j2ee-2.0.0.jar
[DEBUG]  d:\repository\m2\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
[DEBUG]  D:\work\standard\eIP\EventMonitor\commons-jar\target\classes
[DEBUG]  d:\repository\m2\commons-id\commons-id\20060125.092202\commons-id-20060125.092202.jar
[DEBUG]  d:\repository\m2\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
[DEBUG]  D:\work\standard\eIP\commons-jar\target\classes
[DEBUG]  d:\repository\m2\commons-configuration\commons-configuration\1.2\commons-configuration-1.2.jar
[DEBUG]  d:\repository\m2\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar
[DEBUG]  d:\repository\m2\commons-collections\commons-collections\3.2\commons-collections-3.2.jar
[DEBUG]  d:\repository\m2\javax\ejb\ejb\2.0\ejb-2.0.jar
[DEBUG]  d:\repository\m2\com\elsagsolutions\commons\es-commons-lang\2.0.7\es-commons-lang-2.0.7.jar
[DEBUG]  d:\repository\m2\com\thoughtworks\xstream\xstream\1.2.1\xstream-1.2.1.jar
[DEBUG]  d:\repository\m2\xpp3\xpp3_min\1.1.3.4.O\xpp3_min-1.1.3.4.O.jar
[DEBUG]  d:\repository\m2\com\elsagsolutions\commons\es-commons-configuration\2.0.2\es-commons-configuration-2.0.2.jar
[DEBUG] Source roots:
[DEBUG]  D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java
[INFO] Compiling 1 source file to D:\work\standard\eIP\EventMonitor\client-commons-jar\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java\ip\evtmon\client\commons\bd\EventMonitorDelegate.java:[24,28] package ip.evtmon.server.ejb does not exist

D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java\ip\evtmon\client\commons\bd\EventMonitorDelegate.java:[25,28] package ip.evtmon.server.ejb does not exist

D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java\ip\evtmon\client\commons\bd\EventMonitorDelegate.java:[137,16] cannot resolve symbol
symbol  : class EventMonitorService 
location: class ip.evtmon.client.commons.bd.EventMonitorDelegate
...
=================== %< ======================

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: M206 Regression: Build is broken

Posted by Jason van Zyl <ja...@maven.org>.
It's unfortunate you didn't try this with one of the staged versions  
that were available for over a week.

Make me a test project that displays the problem and I will track it  
down.

Jason.

On 5 Apr 07, at 5:04 AM 5 Apr 07, Jörg Schaible wrote:

> Hi folks,
>
> after some hours testing M206 and looking for solutions, I am quite  
> helpless with our build that is broken if I run a multi-project  
> build. Part of this build is the creation of an ejb-client jar and  
> another artifact that is dependend on it. Unfortunately the  
> dependent artifact cannot be compiled, because the classes from the  
> ejb-client are misssing.
>
> Culprit seems to be indicated by the line from the  
> resources:resources goal, where the ejb-client is listed with a  
> scope of "null":
>
> [DEBUG]   ip.evtmon:ip-evtmon-ejb:ejb-client:client:2.2.2-SNAPSHOT  
> (selected for null)
>
> and therefore it seems consequently omitted compiling the classes,  
> since it is not part of the classpath anymore. If I build the  
> module locally there's no problem, the scope is "compile", but not  
> when running in a multi-project build. I already tried to introduce  
> a dependencyManagment section in the local POM where I declare this  
> artifacts again with explicit scope "compile". Any idea what might  
> cause this?
>
> - Jörg
>
>
> =================== %< ======================
> ...
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building eIP EventMonitor Client Commons
> [INFO]    task-segment: [install]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources- 
> plugin:2.2:resources' -->
> [DEBUG]   (f) filters = []
> [DEBUG]   (f) outputDirectory = D:\work\standard\eIP\EventMonitor 
> \client-commons-jar\target\classes
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@934e3a83
> [DEBUG]   (f) resources = [org.apache.maven.model.Resource@1c6cc9c]
> [DEBUG] -- end configuration --
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] ip.evtmon:ip-evtmon-client-commons:jar:2.2.1-SNAPSHOT  
> (selected for null)
> [DEBUG]   active project artifact:
>         artifact = ip.commons:ip-commons:jar:2.2.5-SNAPSHOT:compile;
>         project: org.apache.maven.project.MavenProject@2cd5f4b2  
> (selected for compile)
> [DEBUG]     commons-lang:commons-lang:jar:2.1:compile (selected for  
> compile)
> [DEBUG]     com.elsagsolutions.commons:es-commons-lang:jar: 
> 2.0.7:compile (selected for compile)
> [DEBUG]     commons-collections:commons-collections:jar:3.2:runtime  
> (selected for runtime)
> [DEBUG]     commons-id:commons-id:jar:20060125.092202:compile  
> (selected for compile)
> [DEBUG]     commons-beanutils:commons-beanutils:jar:1.7.0:compile  
> (selected for compile)
> [DEBUG]       commons-logging:commons-logging:jar:1.0.3:compile  
> (applying version: 1.1)
> [DEBUG]       commons-logging:commons-logging:jar:1.1:compile  
> (selected for compile)
> [DEBUG]     com.thoughtworks.xstream:xstream:jar:1.2.1:compile  
> (selected for compile)
> [DEBUG]       xpp3:xpp3_min:jar:1.1.3.4.O:compile (selected for  
> compile)
> [DEBUG]     com.elsagsolutions.commons:es-commons-j2ee:jar: 
> 2.0.0:compile (selected for compile)
> [DEBUG]   javax.ejb:ejb:jar:2.0:provided (selected for provided)
> [DEBUG]   active project artifact:
>         artifact = ip.evtmon:ip-evtmon-commons:jar:2.2.2- 
> SNAPSHOT:compile;
>         project: org.apache.maven.project.MavenProject@3cd94fb0  
> (selected for compile)
> [DEBUG]   com.elsagsolutions.commons:es-commons-j2ee:jar: 
> 2.0.0:compile (selected for compile)
> [DEBUG]     commons-logging:commons-logging:jar:1.1:compile  
> (selected for compile)
> [DEBUG]   ip.evtmon:ip-evtmon-ejb:ejb-client:client:2.2.2-SNAPSHOT  
> (selected for null)
> [DEBUG]     com.elsagsolutions.commons:es-commons-test:jar: 
> 2.0.11:test (selected for test)
> [DEBUG]       commons-io:commons-io:jar:1.3:test (selected for test)
> [DEBUG]       commons-configuration:commons-configuration:jar: 
> 1.2:test (selected for test)
> [DEBUG]         commons-collections:commons-collections:jar: 
> 3.1:test (applying version: 3.2)
> [DEBUG]         xalan:xalan:jar:2.7.0:test (applying scope: runtime)
> [DEBUG]         xalan:xalan:jar:2.7.0:runtime (selected for runtime)
> [DEBUG]       jmock:jmock:jar:1.1.0:test (selected for test)
> [DEBUG]         junit:junit:jar:3.8.1:test (selected for test)
> [DEBUG]       cglib:cglib-nodep:jar:2.1_3:test (selected for test)
> [DEBUG]       javax.xml:jaxp-api:jar:1.3.2:test (selected for test)
> [DEBUG]       xalan:xalan:jar:2.7.0:test (applying scope: runtime)
> [DEBUG]       xalan:xalan:jar:2.7.0:runtime (selected for runtime)
> [DEBUG]     com.elsagsolutions.commons:es-commons-configuration:jar: 
> 2.0.2:compile (selected for compile)
> [DEBUG]       commons-configuration:commons-configuration:jar: 
> 1.2:test (setting scope to: compile)
> [DEBUG]       commons-configuration:commons-configuration:jar: 
> 1.2:compile (selected for compile)
> [DEBUG]         commons-collections:commons-collections:jar: 
> 3.1:compile (applying version: 3.2)
> [DEBUG]         commons-collections:commons-collections:jar: 
> 3.2:runtime (setting scope to: compile)
> [DEBUG]         commons-collections:commons-collections:jar: 
> 3.2:compile (selected for compile)
> [DEBUG]         xalan:xalan:jar:2.7.0:compile (applying scope:  
> runtime)
> [DEBUG]       com.elsagsolutions.commons:es-commons-lang:jar: 
> 2.0.6:compile (applying version: 2.0.7)
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler- 
> plugin:2.0.2:compile' -->
> [DEBUG]   (f) basedir = D:\work\standard\eIP\EventMonitor\client- 
> commons-jar
> [DEBUG]   (f) buildDirectory = D:\work\standard\eIP\EventMonitor 
> \client-commons-jar\target
> [DEBUG]   (f) classpathElements = [D:\work\standard\eIP\EventMonitor 
> \client-commons-jar\target\classes, d:\repository\m2\com 
> \elsagsolutions\commons\es-commons-j2ee\2.0.0\es-commons- 
> j2ee-2.0.0.jar, d:\repository\m2\commons-logging\commons-logging\1.1 
> \commons-logging-1.1.jar, D:\work\standard\eIP\EventMonitor\commons- 
> jar\target\classes, d:\repository\m2\commons-id\commons-id 
> \20060125.092202\commons-id-20060125.092202.jar, d:\repository\m2 
> \commons-lang\commons-lang\2.1\commons-lang-2.1.jar, D:\work 
> \standard\eIP\commons-jar\target\classes, d:\repository\m2\commons- 
> configuration\commons-configuration\1.2\commons- 
> configuration-1.2.jar, d:\repository\m2\commons-beanutils\commons- 
> beanutils\1.7.0\commons-beanutils-1.7.0
> .jar, d:\repository\m2\commons-collections\commons-collections\3.2 
> \commons-collections-3.2.jar, d:\repository\m2\javax\ejb\ejb\2.0 
> \ejb-2.0.jar, d:\repository\m2\com\elsagsolutions\commons\es- 
> commons-lang\2.0.7\es-commons-lang-2.0.7.jar, d:\repository\m2\com 
> \thoughtworks\xstream\xstream\1.2.1\xstream-1.2.1.jar, d:\repository 
> \m2\xpp3\xpp3_min\1.1.3.4.O\xpp3_min-1.1.3.4.O.jar, d:\repository\m2 
> \com\elsagsolutions\commons\es-commons-configuration\2.0.2\es- 
> commons-configuration-2.0.2.jar]
> [DEBUG]   (f) compileSourceRoots = [D:\work\standard\eIP 
> \EventMonitor\client-commons-jar\src\main\java]
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) encoding = iso-8859-1
> [DEBUG]   (f) failOnError = true
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory = D:\work\standard\eIP\EventMonitor 
> \client-commons-jar\target\classes
> [DEBUG]   (f) outputFileName = ip-evtmon-client-commons-2.2.1-SNAPSHOT
> [DEBUG]   (f) projectArtifact = ip.evtmon:ip-evtmon-client- 
> commons:jar:2.2.1-SNAPSHOT
> [DEBUG]   (f) showDeprecation = true
> [DEBUG]   (f) showWarnings = false
> [DEBUG]   (f) source = 1.4
> [DEBUG]   (f) staleMillis = 0
> [DEBUG]   (f) target = 1.4
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:compile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories: [D:\work\standard\eIP\EventMonitor 
> \client-commons-jar\src\main\java]
> [DEBUG] Classpath: [D:\work\standard\eIP\EventMonitor\client- 
> commons-jar\target\classes
>  d:\repository\m2\com\elsagsolutions\commons\es-commons-j2ee\2.0.0 
> \es-commons-j2ee-2.0.0.jar
>  d:\repository\m2\commons-logging\commons-logging\1.1\commons- 
> logging-1.1.jar
>  D:\work\standard\eIP\EventMonitor\commons-jar\target\classes
>  d:\repository\m2\commons-id\commons-id\20060125.092202\commons- 
> id-20060125.092202.jar
>  d:\repository\m2\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
>  D:\work\standard\eIP\commons-jar\target\classes
>  d:\repository\m2\commons-configuration\commons-configuration\1.2 
> \commons-configuration-1.2.jar
>  d:\repository\m2\commons-beanutils\commons-beanutils\1.7.0\commons- 
> beanutils-1.7.0.jar
>  d:\repository\m2\commons-collections\commons-collections\3.2 
> \commons-collections-3.2.jar
>  d:\repository\m2\javax\ejb\ejb\2.0\ejb-2.0.jar
>  d:\repository\m2\com\elsagsolutions\commons\es-commons-lang\2.0.7 
> \es-commons-lang-2.0.7.jar
>  d:\repository\m2\com\thoughtworks\xstream\xstream\1.2.1 
> \xstream-1.2.1.jar
>  d:\repository\m2\xpp3\xpp3_min\1.1.3.4.O\xpp3_min-1.1.3.4.O.jar
>  d:\repository\m2\com\elsagsolutions\commons\es-commons- 
> configuration\2.0.2\es-commons-configuration-2.0.2.jar]
> [DEBUG] Output directory: D:\work\standard\eIP\EventMonitor\client- 
> commons-jar\target\classes
> [DEBUG] Classpath:
> [DEBUG]  D:\work\standard\eIP\EventMonitor\client-commons-jar\target 
> \classes
> [DEBUG]  d:\repository\m2\com\elsagsolutions\commons\es-commons-j2ee 
> \2.0.0\es-commons-j2ee-2.0.0.jar
> [DEBUG]  d:\repository\m2\commons-logging\commons-logging\1.1 
> \commons-logging-1.1.jar
> [DEBUG]  D:\work\standard\eIP\EventMonitor\commons-jar\target\classes
> [DEBUG]  d:\repository\m2\commons-id\commons-id\20060125.092202 
> \commons-id-20060125.092202.jar
> [DEBUG]  d:\repository\m2\commons-lang\commons-lang\2.1\commons- 
> lang-2.1.jar
> [DEBUG]  D:\work\standard\eIP\commons-jar\target\classes
> [DEBUG]  d:\repository\m2\commons-configuration\commons- 
> configuration\1.2\commons-configuration-1.2.jar
> [DEBUG]  d:\repository\m2\commons-beanutils\commons-beanutils\1.7.0 
> \commons-beanutils-1.7.0.jar
> [DEBUG]  d:\repository\m2\commons-collections\commons-collections 
> \3.2\commons-collections-3.2.jar
> [DEBUG]  d:\repository\m2\javax\ejb\ejb\2.0\ejb-2.0.jar
> [DEBUG]  d:\repository\m2\com\elsagsolutions\commons\es-commons-lang 
> \2.0.7\es-commons-lang-2.0.7.jar
> [DEBUG]  d:\repository\m2\com\thoughtworks\xstream\xstream\1.2.1 
> \xstream-1.2.1.jar
> [DEBUG]  d:\repository\m2\xpp3\xpp3_min\1.1.3.4.O 
> \xpp3_min-1.1.3.4.O.jar
> [DEBUG]  d:\repository\m2\com\elsagsolutions\commons\es-commons- 
> configuration\2.0.2\es-commons-configuration-2.0.2.jar
> [DEBUG] Source roots:
> [DEBUG]  D:\work\standard\eIP\EventMonitor\client-commons-jar\src 
> \main\java
> [INFO] Compiling 1 source file to D:\work\standard\eIP\EventMonitor 
> \client-commons-jar\target\classes
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [ERROR] BUILD FAILURE
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Compilation failure
>
> D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java 
> \ip\evtmon\client\commons\bd\EventMonitorDelegate.java:[24,28]  
> package ip.evtmon.server.ejb does not exist
>
> D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java 
> \ip\evtmon\client\commons\bd\EventMonitorDelegate.java:[25,28]  
> package ip.evtmon.server.ejb does not exist
>
> D:\work\standard\eIP\EventMonitor\client-commons-jar\src\main\java 
> \ip\evtmon\client\commons\bd\EventMonitorDelegate.java:[137,16]  
> cannot resolve symbol
> symbol  : class EventMonitorService
> location: class ip.evtmon.client.commons.bd.EventMonitorDelegate
> ...
> =================== %< ======================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: M206 Regression: Build is broken

Posted by Piotr Tabor <pt...@newitech.com>.
Piotr Tabor napisał(a):
> David J. M. Karlsen napisał(a):
>   
>> Hi - I expirience the same - but only when running a multiproject:
>>
>> parent
>>  -ejb-project (generating ejb and ejb-client)
>>  -client-project (using ejb-client)
>>
>> If I try a multibuild it fails, if I cd into client-project and do mvn
>> clean install it succeeds.
>>
>>     

Hello,

I think I have found the bug.
Proposition of the patch (and test) is attached to
http://jira.codehaus.org/browse/MNG-2921.

The problem was MavenProject.replaceWithActiveArtifact method, which was
replacing  given artifact with
an another artifact during the dependency resolution process.  The
problem is "scope" that was replaced by
activeProjectArtifact scope (null).

I think that the scope should be copied (protected) from the original
artifact instead of copying the active project artifact's scope.

The bug must be resolved in 2.0.7 - it's critical.

Thanks,
Piotr Tabor

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: M206 Regression: Build is broken

Posted by Piotr Tabor <pt...@newitech.com>.
David J. M. Karlsen napisał(a):
> Hi - I expirience the same - but only when running a multiproject:
>
> parent
>  -ejb-project (generating ejb and ejb-client)
>  -client-project (using ejb-client)
>
> If I try a multibuild it fails, if I cd into client-project and do mvn
> clean install it succeeds.
>

Hi,

I can't repeat Jörg's problem. Could you, David, send any test project?

BTW: Could any "guru" comment http://jira.codehaus.org/browse/MNG-2871 ?
The simple test case is provided and place to correct in source code is
localized.
I can work on the issue - by I need the opinion if there exists more
general solution then
my workaround.

Thanks,
Piotr Tabor

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: M206 Regression: Build is broken

Posted by "David J. M. Karlsen" <da...@davidkarlsen.com>.
Jörg Schaible wrote:
> Hi folks,
>
> after some hours testing M206 and looking for solutions, I am quite helpless with our build that is broken if I run a multi-project build. Part of this build is the creation of an ejb-client jar and another artifact that is dependend on it. Unfortunately the dependent artifact cannot be compiled, because the classes from the ejb-client are misssing.
>
> Culprit seems to be indicated by the line from the resources:resources goal, where the ejb-client is listed with a scope of "null":
>
> [DEBUG]   ip.evtmon:ip-evtmon-ejb:ejb-client:client:2.2.2-SNAPSHOT (selected for null)
>
> and therefore it seems consequently omitted compiling the classes, since it is not part of the classpath anymore. If I build the module locally there's no problem, the scope is "compile", but not when running in a multi-project build. I already tried to introduce a dependencyManagment section in the local POM where I declare this artifacts again with explicit scope "compile". Any idea what might cause this?
>
> - Jörg
>   
Hi - I expirience the same - but only when running a multiproject:

parent
  -ejb-project (generating ejb and ejb-client)
  -client-project (using ejb-client)

If I try a multibuild it fails, if I cd into client-project and do mvn 
clean install it succeeds.

-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org