You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Lasantha Ranaweera <la...@opensource.lk> on 2006/08/30 15:27:41 UTC

M2 Build Error

Hi All,

Last few days I have been trying to build Geronimo from source code. I 
have been following the document "Building Apache Geronimo with Maven 2" 
in Geronimo documentation.

Every time build has failed when it tries to build "OpenEJB Deployer" 
component. It can't find out "openejb - 2.2-SNAPSHOT"  related 
dependencies. Can anyone help me on this regard? :-\
 
 

Thanks,
Lasantha Ranaweera

Re: M2 Build Error

Posted by Bill Dudney <bd...@apache.org>.
Hi Lasantha,

Did you run the bootsrap script in the root of the geronimo src folder?

The 2.2-SNAPSHOT for openejb should be guild by the bootstrap so it  
appears from the errors here that you are not getting the open ejb  
build.

http://cwiki.apache.org/GMOxDEV/building-apache-geronimo-with- 
maven-2.html

has more complete instructions.

Specifically if it fails look in server/target/openejb for the open  
ejb src. If its there try mvn install from that directory and see if  
it helps.

Good luck!

-bd-

On Sep 1, 2006, at 7:48 AM, Lasantha Ranaweera wrote:

> Hi Bill,
>
> This error happened in a Linux (Kubuntu) environment.
>
> Following is the stack trace. It looks openejb-builder can't  
> repository to download dependencies (2.2-SNAPSHOT of openejb).   
> Following are the list of repositories visible to the maven build.   
> I couldn't find the  2.2-SNAPSHOT of openejb either in those  
> repositories either.
> central (http://repo1.maven.org/maven2),
> apache.snapshots (http://people.apache.org/maven-snapshot-repository),
> codehaus (http://repository.codehaus.org),
> apache-snapshots (http://people.apache.org/repo/m2-snapshot- 
> repository),
> codehaus-snapshots (http://snapshots.repository.codehaus.org),
> apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot- 
> repository)
>
> When I search on the Internet I found following repository with  
> openejb 2.2 snapshots. But this repository stores jars with some  
> out of ordinary pattern.
>
> http://snapshots.dist.codehaus.org/openejb/jars/
> If I can give this link in maven  it might solve my problem. Anyway  
> I am not that good at Maven. Hope somebody can help me in this  
> matter. I have given the stack trace of the error below.
>
> Regards,
>
> Lasantha Ranaweera
>
> [ERROR] BUILD ERROR
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-pkgen-builder \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
> 2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-builder \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
> 3) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-core \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
> ----------
> 3 required artifacts are missing.
>
> for artifact:
>  org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://people.apache.org/maven-snapshot- 
> repository),
>  codehaus (http://repository.codehaus.org),
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot- 
> repository),
>  codehaus-snapshots (http://snapshots.repository.codehaus.org),
>  apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot- 
> repository)
>
>
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
> ----------
> 1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-pkgen-builder \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
> 2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-builder \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
> 3) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-core \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
> ----------
> 3 required artifacts are missing.
>
> for artifact:
>  org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://people.apache.org/maven-snapshot- 
> repository),
>  codehaus (http://repository.codehaus.org),
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot- 
> repository),
>  codehaus-snapshots (http://snapshots.repository.codehaus.org),
>  apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot- 
> repository)
>
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
> (DefaultLifecycleExecutor.java:551)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif 
> ecycle(DefaultLifecycleExecutor.java:475)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
> (DefaultLifecycleExecutor.java:454)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
> leFailures(DefaultLifecycleExecutor.java:306)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
> s(DefaultLifecycleExecutor.java:273)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
> (DefaultLifecycleExecutor.java:140)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 
> 322)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>        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:324)
>        at org.codehaus.classworlds.Launcher.launchEnhanced 
> (Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at org.codehaus.classworlds.Launcher.mainWithExitCode 
> (Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by:  
> org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: 
>  Missing:
> ----------
> 1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-pkgen-builder \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
> 2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-builder \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
> 3) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.openejb - 
> DartifactId=openejb-core \
>          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>  Path to dependency:
>        1) org.apache.geronimo.configs:openejb-deployer:car:1.2- 
> SNAPSHOT
>        2) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
> ----------
> 3 required artifacts are missing.
>
> for artifact:
>  org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://people.apache.org/maven-snapshot- 
> repository),
>  codehaus (http://repository.codehaus.org),
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot- 
> repository),
>  codehaus-snapshots (http://snapshots.repository.codehaus.org),
>  apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot- 
> repository)
>
>        at  
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTran 
> sitively(DefaultArtifactResolver.java:244)
>        at  
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTran 
> sitively(DefaultArtifactResolver.java:211)
>        at  
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTran 
> sitively(DefaultArtifactResolver.java:182)
>        at  
> org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependen 
> cies(DefaultPluginManager.java:1117)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
> (DefaultPluginManager.java:366)
>        at  
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
> (DefaultLifecycleExecutor.java:534)
>        ... 16 more
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Total time: 3 minutes 14 seconds
> [INFO] Finished at: Fri Sep 01 19:45:20 LKT 2006
> [INFO] Final Memory: 19M/35M
> [INFO]  
> ---------------------------------------------------------------------- 
> --
>
>
>
>
> Dudney wrote:
>> Hi Lasantha,
>>
>> Could you post some more detail (stack trace from mvn -e) and I'd  
>> be glad to try to help.
>>
>> Also if you could relate what platform you are on that might also  
>> provide some hints to the problem.
>>
>> TTFN,
>>
>> -bd-
>>
>> On Aug 30, 2006, at 7:27 AM, Lasantha Ranaweera wrote:
>>
>>> Hi All,
>>>
>>> Last few days I have been trying to build Geronimo from source  
>>> code. I have been following the document "Building Apache  
>>> Geronimo with Maven 2" in Geronimo documentation.
>>>
>>> Every time build has failed when it tries to build "OpenEJB  
>>> Deployer" component. It can't find out "openejb - 2.2-SNAPSHOT"   
>>> related dependencies. Can anyone help me on this regard? :-\
>>>
>>> Thanks,
>>> Lasantha Ranaweera
>>
>>
>


Re: M2 Build Error

Posted by Sergey Elin <el...@gmail.com>.
That's because build of openejb2 has failed for you.
You must build it manually with
cd <GERONIMO_SRC_HOME>\target\external\openejb2 && mvn -
Dmaven.skip.test=true install


2006/9/1, Lasantha Ranaweera <la...@opensource.lk>:
>
> Hi Bill,
>
> This error happened in a Linux (Kubuntu) environment.
>
> Following is the stack trace. It looks openejb-builder can't repository
> to download dependencies (2.2-SNAPSHOT of openejb).  Following are the
> list of repositories visible to the maven build.  I couldn't find the
> 2.2-SNAPSHOT of openejb either in those repositories either.
>
> central (http://repo1.maven.org/maven2),
> apache.snapshots (http://people.apache.org/maven-snapshot-repository),
> codehaus (http://repository.codehaus.org),
> apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
> codehaus-snapshots (http://snapshots.repository.codehaus.org),
> apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot-repository)
>
> When I search on the Internet I found following repository with openejb
> 2.2 snapshots. But this repository stores jars with some out of ordinary
> pattern.
>
> http://snapshots.dist.codehaus.org/openejb/jars/
>
> If I can give this link in maven  it might solve my problem. Anyway I am
> not that good at Maven. Hope somebody can help me in this matter. I have
> given the stack trace of the error below.
>
> Regards,
>
> Lasantha Ranaweera
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-pkgen-builder \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
> 2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-builder \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
> 3) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-core \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
> ----------
> 3 required artifacts are missing.
>
> for artifact:
>   org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://people.apache.org/maven-snapshot-repository),
>   codehaus (http://repository.codehaus.org),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-snapshots-m1 (
> http://people.apache.org/repo/m1-snapshot-repository)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
> ----------
> 1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-pkgen-builder \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
> 2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-builder \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
> 3) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-core \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
> ----------
> 3 required artifacts are missing.
>
> for artifact:
>   org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://people.apache.org/maven-snapshot-repository),
>   codehaus (http://repository.codehaus.org),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-snapshots-m1 (
> http://people.apache.org/repo/m1-snapshot-repository)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:551)
>         at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:475)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:454)
>         at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:306)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         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:324)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by:
> org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
> Missing:
> ----------
> 1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-pkgen-builder \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT
>
> 2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-builder \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT
>
> 3) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.openejb
> -DartifactId=openejb-core \
>           -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
>   Path to dependency:
>         1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>         2) org.openejb:openejb-core:jar:2.2-SNAPSHOT
>
> ----------
> 3 required artifacts are missing.
>
> for artifact:
>   org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
>
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://people.apache.org/maven-snapshot-repository),
>   codehaus (http://repository.codehaus.org),
>   apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   codehaus-snapshots (http://snapshots.repository.codehaus.org),
>   apache-snapshots-m1 (
> http://people.apache.org/repo/m1-snapshot-repository)
>
>         at
>
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
> (DefaultArtifactResolver.java:244)
>         at
>
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
> (DefaultArtifactResolver.java:211)
>         at
>
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively
> (DefaultArtifactResolver.java:182)
>         at
> org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies
> (DefaultPluginManager.java:1117)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:366)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:534)
>         ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 14 seconds
> [INFO] Finished at: Fri Sep 01 19:45:20 LKT 2006
> [INFO] Final Memory: 19M/35M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> Dudney wrote:
> > Hi Lasantha,
> >
> > Could you post some more detail (stack trace from mvn -e) and I'd be
> > glad to try to help.
> >
> > Also if you could relate what platform you are on that might also
> > provide some hints to the problem.
> >
> > TTFN,
> >
> > -bd-
> >
> > On Aug 30, 2006, at 7:27 AM, Lasantha Ranaweera wrote:
> >
> >> Hi All,
> >>
> >> Last few days I have been trying to build Geronimo from source code.
> >> I have been following the document "Building Apache Geronimo with
> >> Maven 2" in Geronimo documentation.
> >>
> >> Every time build has failed when it tries to build "OpenEJB Deployer"
> >> component. It can't find out "openejb - 2.2-SNAPSHOT"  related
> >> dependencies. Can anyone help me on this regard? :-\
> >>
> >> Thanks,
> >> Lasantha Ranaweera
> >
> >
>
>

Re: M2 Build Error

Posted by Lasantha Ranaweera <la...@opensource.lk>.
Hi Bill,

This error happened in a Linux (Kubuntu) environment.

Following is the stack trace. It looks openejb-builder can't repository 
to download dependencies (2.2-SNAPSHOT of openejb).  Following are the 
list of repositories visible to the maven build.  I couldn't find the  
2.2-SNAPSHOT of openejb either in those repositories either.
 
central (http://repo1.maven.org/maven2),
apache.snapshots (http://people.apache.org/maven-snapshot-repository),
codehaus (http://repository.codehaus.org),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
codehaus-snapshots (http://snapshots.repository.codehaus.org),
apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot-repository)

When I search on the Internet I found following repository with openejb 
2.2 snapshots. But this repository stores jars with some out of ordinary 
pattern.

http://snapshots.dist.codehaus.org/openejb/jars/
 
If I can give this link in maven  it might solve my problem. Anyway I am 
not that good at Maven. Hope somebody can help me in this matter. I have 
given the stack trace of the error below.

Regards,

Lasantha Ranaweera

[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-pkgen-builder \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT

2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-builder \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT

3) org.openejb:openejb-core:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-core \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-core:jar:2.2-SNAPSHOT

----------
3 required artifacts are missing.

for artifact:
  org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/maven-snapshot-repository),
  codehaus (http://repository.codehaus.org),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot-repository)


[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-pkgen-builder \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT

2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-builder \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT

3) org.openejb:openejb-core:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-core \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-core:jar:2.2-SNAPSHOT

----------
3 required artifacts are missing.

for artifact:
  org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/maven-snapshot-repository),
  codehaus (http://repository.codehaus.org),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot-repository)

        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:551)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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:324)
        at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: 
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: 
Missing:
----------
1) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-pkgen-builder \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-pkgen-builder:jar:2.2-SNAPSHOT

2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-builder \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-builder:jar:2.2-SNAPSHOT

3) org.openejb:openejb-core:jar:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.openejb 
-DartifactId=openejb-core \
          -Dversion=2.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT
        2) org.openejb:openejb-core:jar:2.2-SNAPSHOT

----------
3 required artifacts are missing.

for artifact:
  org.apache.geronimo.configs:openejb-deployer:car:1.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://people.apache.org/maven-snapshot-repository),
  codehaus (http://repository.codehaus.org),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-snapshots-m1 (http://people.apache.org/repo/m1-snapshot-repository)

        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:244)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:211)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:182)
        at 
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1117)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:366)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 14 seconds
[INFO] Finished at: Fri Sep 01 19:45:20 LKT 2006
[INFO] Final Memory: 19M/35M
[INFO] 
------------------------------------------------------------------------




Dudney wrote:
> Hi Lasantha,
>
> Could you post some more detail (stack trace from mvn -e) and I'd be 
> glad to try to help.
>
> Also if you could relate what platform you are on that might also 
> provide some hints to the problem.
>
> TTFN,
>
> -bd-
>
> On Aug 30, 2006, at 7:27 AM, Lasantha Ranaweera wrote:
>
>> Hi All,
>>
>> Last few days I have been trying to build Geronimo from source code. 
>> I have been following the document "Building Apache Geronimo with 
>> Maven 2" in Geronimo documentation.
>>
>> Every time build has failed when it tries to build "OpenEJB Deployer" 
>> component. It can't find out "openejb - 2.2-SNAPSHOT"  related 
>> dependencies. Can anyone help me on this regard? :-\
>>
>> Thanks,
>> Lasantha Ranaweera
>
>


Re: M2 Build Error

Posted by Bill Dudney <bd...@apache.org>.
Hi Lasantha,

Could you post some more detail (stack trace from mvn -e) and I'd be  
glad to try to help.

Also if you could relate what platform you are on that might also  
provide some hints to the problem.

TTFN,

-bd-

On Aug 30, 2006, at 7:27 AM, Lasantha Ranaweera wrote:

> Hi All,
>
> Last few days I have been trying to build Geronimo from source  
> code. I have been following the document "Building Apache Geronimo  
> with Maven 2" in Geronimo documentation.
>
> Every time build has failed when it tries to build "OpenEJB  
> Deployer" component. It can't find out "openejb - 2.2-SNAPSHOT"   
> related dependencies. Can anyone help me on this regard? :-\
>
> Thanks,
> Lasantha Ranaweera


Re: M2 Build Error

Posted by Joe Bohn <jo...@earthlink.net>.
Lasantha,

If this is the same problem I had then the steps I provided should have 
gotten you past it.  It's also confusing that the openejb2 "mvn 
-Dmaven.test.skip=true" worked (or at least you didn't say it failed) 
but the "mvn clean install" from root after that failed because of a 
missing openejb dependency.

Can you please provide the output you receive when you issued the "mvn 
-Dmaven.test.skip=true" in <root>\target\openejb2 and the details of the 
failure that you're seeing on the subsequent "mvn clean install" from 
<root>?

Thanks,
Joe


Lasantha Ranaweera wrote:
> Hi Joe,
> 
> I think scenario looks same here. So I follow the steps you have 
> mentioned was a work around. But it did fail in the last step (mvn clean 
> install) as same in the bootstrap.
> 
> I suspected this is a problem in integrating openejb code with  
> Geronimo. So I  checkout the fresh code from openejb repository and try 
> to build it independently too. But it was not successful either. It 
> needs some stuff from Geronimo.
> 
> 
> Thanks,
> Lasantha Ranaweera
> 
> 
> 
> Joe Bohn wrote:
> 
>> Lasantha,
>>
>> I've been hitting this same problem.   I think I can help you work 
>> around it but we don't have a fix yet (or at least I don't have one).  
>> I did some experiments with this and posted this note but haven't 
>> received a response yet:
>>
>> http://marc.theaimsgroup.com/?l=geronimo-dev&m=115680051431478&w=2
>>
>> I'm assuming you're seeing this on a bootstrap build.
>> So, what I think you can do is the following:
>> - run "bootstrap" from the root install location.
>> - Ignore the fact that it tells you works ... it always lies. :-(
>> You'll see a failure a few lines up on the openejb2 problem.
>> - cd to target\external\openejb2
>> - "mvn -Dmaven.test.skip=true"
>> - cd back to root
>> - "mvn clean install"
>>
>> This should at least produce the assemblies but skips the tests.   
>> I've done something like this in the past and I'm confirming the 
>> directions now myself.   If I've forgotten something I'll post again.
>>
>> Joe
>>
>>
>> Lasantha Ranaweera wrote:
>>
>>> Hi All,
>>>
>>> Last few days I have been trying to build Geronimo from source code. 
>>> I have been following the document "Building Apache Geronimo with 
>>> Maven 2" in Geronimo documentation.
>>>
>>> Every time build has failed when it tries to build "OpenEJB Deployer" 
>>> component. It can't find out "openejb - 2.2-SNAPSHOT"  related 
>>> dependencies. Can anyone help me on this regard? :-\
>>>
>>>
>>>
>>> Thanks,
>>> Lasantha Ranaweera
>>>
>>>
>>
>>
> 
> 
> 

Re: M2 Build Error

Posted by Lasantha Ranaweera <la...@opensource.lk>.
Hi Joe,

I think scenario looks same here. So I follow the steps you have 
mentioned was a work around. But it did fail in the last step (mvn clean 
install) as same in the bootstrap.

I suspected this is a problem in integrating openejb code with  
Geronimo. So I  checkout the fresh code from openejb repository and try 
to build it independently too. But it was not successful either. It 
needs some stuff from Geronimo.


Thanks,
Lasantha Ranaweera



Joe Bohn wrote:
> Lasantha,
>
> I've been hitting this same problem.   I think I can help you work 
> around it but we don't have a fix yet (or at least I don't have one).  
> I did some experiments with this and posted this note but haven't 
> received a response yet:
>
> http://marc.theaimsgroup.com/?l=geronimo-dev&m=115680051431478&w=2
>
> I'm assuming you're seeing this on a bootstrap build.
> So, what I think you can do is the following:
> - run "bootstrap" from the root install location.
> - Ignore the fact that it tells you works ... it always lies. :-(
> You'll see a failure a few lines up on the openejb2 problem.
> - cd to target\external\openejb2
> - "mvn -Dmaven.test.skip=true"
> - cd back to root
> - "mvn clean install"
>
> This should at least produce the assemblies but skips the tests.   
> I've done something like this in the past and I'm confirming the 
> directions now myself.   If I've forgotten something I'll post again.
>
> Joe
>
>
> Lasantha Ranaweera wrote:
>> Hi All,
>>
>> Last few days I have been trying to build Geronimo from source code. 
>> I have been following the document "Building Apache Geronimo with 
>> Maven 2" in Geronimo documentation.
>>
>> Every time build has failed when it tries to build "OpenEJB Deployer" 
>> component. It can't find out "openejb - 2.2-SNAPSHOT"  related 
>> dependencies. Can anyone help me on this regard? :-\
>>
>>
>>
>> Thanks,
>> Lasantha Ranaweera
>>
>>
>
>


Re: M2 Build Error

Posted by Joe Bohn <jo...@earthlink.net>.
Lasantha,

I've been hitting this same problem.   I think I can help you work 
around it but we don't have a fix yet (or at least I don't have one).  I 
did some experiments with this and posted this note but haven't received 
a response yet:

http://marc.theaimsgroup.com/?l=geronimo-dev&m=115680051431478&w=2

I'm assuming you're seeing this on a bootstrap build.
So, what I think you can do is the following:
- run "bootstrap" from the root install location.
- Ignore the fact that it tells you works ... it always lies. :-(
You'll see a failure a few lines up on the openejb2 problem.
- cd to target\external\openejb2
- "mvn -Dmaven.test.skip=true"
- cd back to root
- "mvn clean install"

This should at least produce the assemblies but skips the tests.   I've 
done something like this in the past and I'm confirming the directions 
now myself.   If I've forgotten something I'll post again.

Joe


Lasantha Ranaweera wrote:
> Hi All,
> 
> Last few days I have been trying to build Geronimo from source code. I 
> have been following the document "Building Apache Geronimo with Maven 2" 
> in Geronimo documentation.
> 
> Every time build has failed when it tries to build "OpenEJB Deployer" 
> component. It can't find out "openejb - 2.2-SNAPSHOT"  related 
> dependencies. Can anyone help me on this regard? :-\
> 
> 
> 
> Thanks,
> Lasantha Ranaweera
> 
> 


Re: M2 Build Error

Posted by Joe Bohn <jo...@earthlink.net>.
Lasantha,

I've been hitting this same problem.   I think I can help you work 
around it but we don't have a fix yet (or at least I don't have one).  I 
did some experiments with this and posted this note but haven't received 
a response yet:

http://marc.theaimsgroup.com/?l=geronimo-dev&m=115680051431478&w=2

I'm assuming you're seeing this on a bootstrap build.
So, what I think you can do is the following:
- run "bootstrap" from the root install location.
- Ignore the fact that it tells you works ... it always lies. :-(
You'll see a failure a few lines up on the openejb2 problem.
- cd to target\external\openejb2
- "mvn -Dmaven.test.skip=true"
- cd back to root
- "mvn clean install"

This should at least produce the assemblies but skips the tests.   I've 
done something like this in the past and I'm confirming the directions 
now myself.   If I've forgotten something I'll post again.

Joe


Lasantha Ranaweera wrote:
> Hi All,
> 
> Last few days I have been trying to build Geronimo from source code. I 
> have been following the document "Building Apache Geronimo with Maven 2" 
> in Geronimo documentation.
> 
> Every time build has failed when it tries to build "OpenEJB Deployer" 
> component. It can't find out "openejb - 2.2-SNAPSHOT"  related 
> dependencies. Can anyone help me on this regard? :-\
> 
> 
> 
> Thanks,
> Lasantha Ranaweera
> 
>