TYCHO build OSGI component, an error

24 views
Skip to first unread message

meng.zh...@zte.com.cn

unread,
Dec 6, 2010, 12:36:25 AM12/6/10
to akka...@googlegroups.com
tycho http://tycho.sonatype.org/ Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGI bundles with Maven. 

Reason:

We POM file depends akka-osgi-dependencies-bundle components (jar), transfer dependence, akka-osgi-dependencies-bundle dependency akka-kernel components, akka-kernel depends akka-persistence, and akka-persistence type is not a jar but the pom. Judgement errors led to tycho transfer dependence.


Proposed solutions

   akka-kernel directly dependent on the dependence of persistence-related components, such as akka-persistence-common, etc., do not rely on pom type


Have a question
  akka-osgi-dependencies-bundle should rely akka-kernel?  as I understand it should be akka-kernel depends akka-osgi-dependencies-bundle, but now the opposite

Detailed logs:



[ERROR] Internal error: java.lang.RuntimeException: Could not resolve project dependencies: Missing:
[ERROR] ----------
[ERROR] 1) se.scalablesolutions.akka:akka-persistence:jar:1.0-RC1
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=se.scalablesolutions.akka -DartifactId=akka-persistence -Dversion=1.0-RC1 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=se.scalablesolutions.akka -DartifactId=akka-persistence -Dversion=1.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[u
rl] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:

[ERROR] 2) se.scalablesolutions.akka:akka-osgi-dependencies-bundle:jar:1.0-RC1
[ERROR] 3) se.scalablesolutions.akka:akka-kernel:jar:1.0-RC1
[ERROR] 4) se.scalablesolutions.akka:akka-persistence:jar:1.0-RC1




[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve project dependencies
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:163)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: Could not resolve project dependencies
        at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:198)
        at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:105)
        at org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:268)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
        ... 11 more
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) se.scalablesolutions.akka:akka-persistence:jar:1.0-RC1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=se.scalablesolutions.akka -DartifactId=akka-persistence -Dversion=1.0-RC1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=se.scalablesolutions.akka -DartifactId=akka-persistence -Dversion=1.0-RC1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url
] -DrepositoryId=[id]

  Path to dependency:
        1) com.zte.ums.aos.web.components.business.dm:aos-dm-business:pom:5.10.11.I4-SNAPSHOT
        2) se.scalablesolutions.akka:akka-osgi-dependencies-bundle:jar:1.0-RC1
        3) se.scalablesolutions.akka:akka-kernel:jar:1.0-RC1
        4) se.scalablesolutions.akka:akka-persistence:jar:1.0-RC1

----------
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.

√iktor Klang

unread,
Dec 6, 2010, 3:55:38 AM12/6/10
to akka...@googlegroups.com
On Mon, Dec 6, 2010 at 6:36 AM, <meng.zh...@zte.com.cn> wrote:
tycho http://tycho.sonatype.org/ Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGI bundles with Maven. 

Reason:

We POM file depends akka-osgi-dependencies-bundle components (jar), transfer dependence, akka-osgi-dependencies-bundle dependency akka-kernel components, akka-kernel depends akka-persistence, and akka-persistence type is not a jar but the pom. Judgement errors led to tycho transfer dependence.


Proposed solutions

   akka-kernel directly dependent on the dependence of persistence-related components, such as akka-persistence-common, etc., do not rely on pom type

And this means that we have to do what, in practice?
 

--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.



--
Viktor Klang,
Code Connoisseur
Work:   Scalable Solutions
Code:   github.com/viktorklang
Follow: twitter.com/viktorklang
Read:   klangism.tumblr.com

meng.zh...@zte.com.cn

unread,
Dec 6, 2010, 4:28:58 AM12/6/10
to akka...@googlegroups.com, akka...@googlegroups.com
1 I do not know akka-osgi-dependencies-bundle dependency akka-kernel and akka-jta reasonable? I understand should be akka-kernel/akka-jta dependent akka-osgi-dependencies-bundle.

http://www.scalablesolutions.se/akka/repository/se/scalablesolutions/akka/akka-osgi-dependencies-bundle/1.0-RC1/akka-osgi-dependencies-bundle-1.0-RC1.pom
    <dependencies>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-kernel</artifactId>
           <version>1.0-RC1</version>
           <scope>compile</scope>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-jta</artifactId>
           <version>1.0-RC1</version>
           <scope>compile</scope>
       </dependency>
   </dependencies>


2 akka-kernel
http://www.scalablesolutions.se/akka/repository/se/scalablesolutions/akka/akka-kernel/1.0-RC1/akka-kernel-1.0-RC1.pom
        <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence</artifactId>
           <version>1.0-RC1</version>
           <scope>compile</scope>
       </dependency>


Should be

        <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-voldemort</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-mongo</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-memcached</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-couchdb</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-common</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-redis</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-riak</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-simpledb</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-cassandra</artifactId>
           <version>1.0-RC1</version>
       </dependency>
       <dependency>
           <groupId>se.scalablesolutions.akka</groupId>
           <artifactId>akka-persistence-hbase</artifactId>
           <version>1.0-RC1</version>

        </dependency>



√iktor Klang <viktor...@gmail.com>
发件人:  akka...@googlegroups.com

2010-12-06 16:55


收件人
akka...@googlegroups.com
抄送
主题
Re: [akka-user] TYCHO build OSGI component, an error


meng.zh...@zte.com.cn

unread,
Dec 6, 2010, 5:06:51 AM12/6/10
to akka...@googlegroups.com, akka...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages