continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: Problems adding eclipse RPC project (Error:No bean named 'artifactRepositoryLayout#p2' is defined)
Date Tue, 20 Sep 2011 02:38:33 GMT
Unfortunately, Continuum doesn't load plugin extensions, so it fails to understand the p2 repository
type. You are welcome to file a bug for it to do that, or at least ignore it with a warning.

In the mean time, I'd suggest moving that repository out of the POM and proxying it via Nexus,
or otherwise putting it in a profile that you can enable at build time that Continuum won't
enable when trying to load the project to add it.

Thanks,
Brett

On 20/09/2011, at 3:49 AM, Bardino, Tobias wrote:

> I have created a RPC project in eclipse. Using Tycho, the project should
> be able to build/deploy using Maven
> 
> Using a clean "new Hello-World RPC plug-in project"-template in eclipse
> and adding the following pom.xml, the project should be ready
> build/install/deploy:
> http://samso.star2.dk/~tbb/pom.xml
> 
> (My ~/.m2/settings.xml is here: http://samso.star2.dk/~tbb/settings.xml)
> 
> 
> In commandline (manual checkout) everything works fine...
> ---
> continuum@samso:~> svn co
> http://localhost:8000/repos/star3/modules/test11
> A    test11/.classpath
> A    test11/META-INF
> A    test11/META-INF/MANIFEST.MF
> A    test11/.project
> A    test11/src
> A    test11/src/test11
> A    test11/src/test11/Activator.java
> A    test11/build.properties
> A    test11/pom.xml
> A    test11/.settings
> A    test11/.settings/org.eclipse.jdt.core.prefs
> A    test11/.settings/org.eclipse.pde.core.prefs
> Checked out revision 5.
> continuum@samso:~> cd test11/
> continuum@samso:~/test11> mvn install
> [INFO] Scanning for projects...
> [INFO] Resolving target platform for project MavenProject:
> dk.kruger.star3.modules:test11:0.0.1-SNAPSHOT @
> /home/continuum/test11/pom.xml
> [INFO] Adding repository http://download.eclipse.org/releases/indigo
> [INFO] Adding repository http://download.eclipse.org/releases/indigo
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building STAR3 module test09 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.12.0:build-qualifier
> (default-build-qualifier) @ test11 ---
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.12.0:validate-version
> (default-validate-version) @ test11 ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> test11 ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/continuum/test11/src/main/resources
> [INFO]
> [INFO] --- tycho-compiler-plugin:0.12.0:compile (default-compile) @
> test11 ---
> [INFO] Using compile source roots from build.properties
> [INFO] Compiling 1 source file to /home/continuum/test11/target/classes
> 
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:testResources
> (default-testResources) @ test11 ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /home/continuum/test11/src/test/resources
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.12.0:package-plugin
> (default-package-plugin) @ test11 ---
> [INFO] Building jar:
> /home/continuum/test11/target/test11-0.0.1-SNAPSHOT.jar
> [INFO]
> [INFO] --- tycho-p2-plugin:0.12.0:p2-metadata (default-p2-metadata) @
> test11 ---
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ test11
> ---
> [INFO] Installing
> /home/continuum/test11/target/test11-0.0.1-SNAPSHOT.jar to
> /home/continuum/.m2/repository/dk/kruger/star3/modules/test11/0.0.1-SNAP
> SHOT/test11-0.0.1-SNAPSHOT.jar
> [INFO] Installing /home/continuum/test11/pom.xml to
> /home/continuum/.m2/repository/dk/kruger/star3/modules/test11/0.0.1-SNAP
> SHOT/test11-0.0.1-SNAPSHOT.pom
> [INFO] Installing /home/continuum/test11/target/p2content.xml to
> /home/continuum/.m2/repository/dk/kruger/star3/modules/test11/0.0.1-SNAP
> SHOT/test11-0.0.1-SNAPSHOT-p2metadata.xml
> [INFO] Installing /home/continuum/test11/target/p2artifacts.xml to
> /home/continuum/.m2/repository/dk/kruger/star3/modules/test11/0.0.1-SNAP
> SHOT/test11-0.0.1-SNAPSHOT-p2artifacts.xml
> [INFO]
> [INFO] --- tycho-p2-plugin:0.12.0:update-local-index
> (default-update-local-index) @ test11 ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 24.606s
> [INFO] Finished at: Mon Sep 19 18:26:45 CEST 2011
> [INFO] Final Memory: 26M/62M
> [INFO]
> ------------------------------------------------------------------------
> ---
> 
> (Everything works fine, even if I do "mvn deploy")
> 
> 
> If I try to add the project to Continuum, using POM Url:
> http://localhost:8000/repos/star3/modules/test11/pom.xml and pressing
> the "Add"-button the following error-message appears in red:
> "Unknown error trying to build POM."
> 
> This is the output from
> "samso:/usr/local/install/continuum/continuum/logs # tail -f *":
> ---
> ==> 2011_09_19.request.log <==
> 0:0:0:0:0:0:0:1 -  -  [19/Sep/2011:16:31:40 +0000] "POST
> /continuum/addMavenTwoProject.action HTTP/1.1" 200 12892
> "http://localhost:48489/continuum/addMavenTwoProjectInput!input.action"
> "Mozilla/5.0 (Windows NT 6. ; WOW64; rv:6.0.2) Gecko/20100101
> Firefox/6.0.2"
> 
> ==> continuum-audit.log <==
> 2011-09-19 18:31:40 - admin - PROJECT
> http://localhost:8000/repos/star3/modules/test11/pom.xml - Failed Adding
> M2 Project
> 
> ==> continuum.log <==
> 2011-09-19 18:31:40,826 [btpool0-4] INFO
> org.apache.struts2.dispatcher.Dispatcher  - Unable to find
> 'struts.multipart.saveDir' property setting. Defaulting to
> javax.servlet.context.tempdir
> 2011-09-19 18:31:40,842 [addMavenTwoProjectBackgroundThread] INFO
> action#create-projects-from-metadata  - checking for settings auth setup
> 2011-09-19 18:31:40,843 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjec
> tBuilder  - Downloading
> http://localhost:8000/repos/star3/modules/test11/p m.xml
> 2011-09-19 18:31:40,886 [addMavenTwoProjectBackgroundThread] ERROR
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper
> - Cannot build maven project from
> /usr/local/install/continuum/apache-con
> inuum-1.3.8/tmp/continuum/repos/star3/modules/test11/pom.xml (No bean
> named 'artifactRepositoryLayout#p2' is defined).
> 2011-09-19 18:31:40,886 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - Created 0 projects.
> 2011-09-19 18:31:40,886 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - Created 0 project groups.
> 2011-09-19 18:31:40,886 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - 1 errors.
> 2011-09-19 18:31:40,886 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - 1 errors during project
> add:
> 2011-09-19 18:31:40,886 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - No bean named
> 'artifactRepositoryLayout#p2' is defined
> 
> 2011-09-19 18:31:40,949 [btpool0-4] WARN
> org.apache.struts2.components.Form  - No configuration found for the
> specified action: 'addMavenTwoProject.action' in namespace: '/'. Form
> action defaulting to 'action' at ribute's literal value.
> 2011-09-19 18:31:40,958 [btpool0-4] WARN
> org.apache.struts2.components.Form  - No configuration found for the
> specified action: 'addMavenTwoProject.action' in namespace: '/'. Form
> action defaulting to 'action' at ribute's literal value.
> ---
> 
> As a final note I have tried to create a standard Maven project in
> eclipse, added it to subversion and added it to continuum. This was
> successful with just a complaint about no provider in SCM.
> ---
> 2011-09-19 18:42:04,609 [btpool0-7] INFO
> org.apache.struts2.dispatcher.Dispatcher  - Unable to find
> 'struts.multipart.saveDir' property setting. Defaulting to
> javax.servlet.context.tempdir
> 2011-09-19 18:42:04,633 [addMavenTwoProjectBackgroundThread] INFO
> action#create-projects-from-metadata  - checking for settings auth setup
> 2011-09-19 18:42:04,634 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjec
> tBuilder  - Downloading
> http://localhost:8000/repos/star3/modules/maven02/p
> om.xml
> 2011-09-19 18:42:04,698 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - Created 1 projects.
> 2011-09-19 18:42:04,698 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - Created 1 project groups.
> 2011-09-19 18:42:04,698 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.maven.continuum.DefaultContinuum  - 0 errors.
> 2011-09-19 18:42:04,808 [addMavenTwoProjectBackgroundThread] INFO
> org.apache.continuum.buildmanager.ParallelBuildsManager  - Project
> 'maven02' added to overall build queue 'DEFAULT_BUILD_QUEUE'.
> 2011-09-19 18:42:04,833 [pool-2-thread-1] INFO
> org.apache.maven.continuum.scm.queue.CheckOutTaskExecutor  - Checkout
> task executor..
> 2011-09-19 18:42:04,917 [pool-2-thread-1] INFO  action#checkout-project
> - Checking out project: 'maven02', id: '1' to
> '/usr/local/install/continuum/apache-continuum-1.3.8/data/working-direct
> ory/1'.
> 2011-09-19 18:42:04,918 [pool-2-thread-1] ERROR action#checkout-project
> - No such provider: ''.
> org.apache.maven.scm.manager.NoSuchScmProviderException: No such
> provider: ''.
>        at
> org.apache.maven.scm.manager.AbstractScmManager.getProviderByType(Abstra
> ctScmManager.java:158)
>        at
> org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(Abstra
> ctScmManager.java:188)
>        at
> org.apache.continuum.scm.DefaultContinuumScm.getScmRepository(DefaultCon
> tinuumScm.java:173)
>        at
> org.apache.continuum.scm.DefaultContinuumScm.checkout(DefaultContinuumSc
> m.java:65)
>        at
> org.apache.maven.continuum.core.action.CheckoutProjectContinuumAction.ex
> ecute(CheckoutProjectContinuumAction.java:118)
>        at
> org.apache.maven.continuum.scm.queue.CheckOutTaskExecutor.executeTask(Ch
> eckOutTaskExecutor.java:101)
>        at
> org.apache.continuum.taskqueueexecutor.ParallelBuildsThreadedTaskQueueEx
> ecutor$ExecutorRunnable$1.run(ParallelBuildsThreadedTaskQueueExecutor.ja
> va:120)
>        at
> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter
> .call(Executors.java:442)
>        at
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask
> .java:176)
>        at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor
> ker(ThreadPoolExecutor.java:987)
>        at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
> .run(ThreadPoolExecutor.java:528)
>        at java.lang.Thread.run(Thread.java:662)
> ---
> 
> 
> 
> /Tobias
> 
> 
> 
> 
> *************************************************************************
> This e-mail message and any attachments to it are intended only for the 
> named recipients and may contain confidential information. If you are not
> one of the intended recipients, please do not duplicate or forward this
> e-mail message and immediately delete it from your computer. If you 
> received this email in error, please notify postmaster@veoliawater.com
> *************************************************************************
> 
> 
> 
> 
> 
> 

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter





Mime
View raw message