The only activity for the embedder is on trunk. I have yet to merge anything back because to be useful in an embedded situation many changes have been made. All the IDE integration pieces are using trunk and the first official and usable release will most likely be 2.1-alpha-1.

Jason.

On 11 Mar 07, at 8:34 PM 11 Mar 07, Shane Isbell wrote:

Does the MavenEmbedder support the use of custom life cycle configurations?
To explain a little of my situation: I have a components.xmlfile
configuring phases for the component
org.apache.maven.lifecycle.mapping.LifecycleMapping (using 'library' as a role hint). I have a class invoking the MavenEmbedder.execute method, which is installing an artifact using a pom.xml file that has packaging type of 'library'. When I instantiate my class, I see the following log message
(abridged):

[ maven embedder DEBUG] Nonexistent component:
org.apache.maven.lifecycle.mapping.LifecycleMappinglibrary
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot find
lifecycle mapping for packaging: 'library'.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLif ecycle
(DefaultLifecycleExecutor.java:1066)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPa ckaging
(DefaultLifecycleExecutor.java:992)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycle Mappings
(DefaultLifecycleExecutor.java:975)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:453)
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.embedder.MavenEmbedder.execute (MavenEmbedder.java:441) at org.apache.maven.embedder.MavenEmbedder.execute (MavenEmbedder.java:382)

This exception occurs using maven-embedder 2.0.4 and indicates that
MavenEmbedder is not finding the 'library' configuration for the lifecycle
mapping.

Thanks,
Shane


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to