Hi,
thanks for you answer....

Ok....the following is the output of my integration (failsafe report):

Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 4.667 sec
<<< FAILURE!
commandWorkspaceCreateTest(com.oneandone.devel.modules.pws.cli.PustefixWorkspaceCLIWorkspaceIT)
 
Time elapsed: 0.931 sec  <<< FAILURE!
java.lang.IllegalStateException:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting:
org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
  at ClassRealm[plexus.core, parent: null]
  at ClassRealm[plexus.core, parent: null]
  while locating org.apache.maven.execution.MavenExecutionRequestPopulator
1 error
      role: org.apache.maven.execution.MavenExecutionRequestPopulator
  roleHint: 
        at
com.oneandone.devel.modules.pws.pwsp.embedder.MavenEmulator.(MavenEmulator.java:144)
        at
com.oneandone.devel.modules.pws.pwsp.PustefixWorkspaceMavenPluginReplacement.openWorkspace(PustefixWorkspaceMavenPluginReplacement.java:75)
        at
com.oneandone.devel.modules.pws.core.Workspace.doCreate(Workspace.java:100)
        at
com.oneandone.devel.modules.pws.cli.PustefixWorkspaceCLI.workspaceCreateCommand(PustefixWorkspaceCLI.java:384)
        at
com.oneandone.devel.modules.pws.cli.PustefixWorkspaceCLI.run(PustefixWorkspaceCLI.java:129)
        at com.oneandone.devel.modules.pws.cli.CLI.(CLI.java:35)
        at
com.oneandone.devel.modules.pws.cli.PustefixWorkspaceCLIWorkspaceIT.commandWorkspaceCreateTest(PustefixWorkspaceCLIWorkspaceIT.java:149)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting:
org.apache.maven.execution.DefaultMavenExecutionRequestPopulator
  at ClassRealm[plexus.core, parent: null]
  at ClassRealm[plexus.core, parent: null]
  while locating org.apache.maven.execution.MavenExecutionRequestPopulator
1 error
      role: org.apache.maven.execution.MavenExecutionRequestPopulator
  roleHint: 
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:251)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:233)
        at
com.oneandone.devel.modules.pws.pwsp.embedder.MavenEmulator.buildMavenExecutionRequest(MavenEmulator.java:167)
        at
com.oneandone.devel.modules.pws.pwsp.embedder.MavenEmulator.(MavenEmulator.java:114)
        ... 62 more

I have put the code which i'm currently using here:
https://gist.github.com/870717

The initialization is how i call the MavenEmulator and of course the
MavenEmulator itself...

My intention is to call the execute() of the Mojo to integrate the code of a
Maven Plugin smoothly into my java application without calling Maven
itself...

Kind regards
Karl Heinz Marbaise

-----
Kind regards
Karl Heinz Marbaise
----
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: 
http://maven.40175.n5.nabble.com/Integrate-Maven-Plugin-Code-Mojo-s-into-Application-tp3397120p3704449.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to