Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] org.sonatype.tycho:maven-tycho-plugin:generate-poms outdated?

Generally, you are expected to generate pom.xml once but commit them to
your project's source control system and treat them as any other source
file. You are not expected to generate pom.xml files before each build.

To solve the immediate problem you see, try specifying full tycho
version you want to use

org.sonatype.tycho:maven-tycho-plugin:<your-tycho-version>:generate-poms


--
Regards,
Igor


--
Regards,
Igor

On 12-04-25 4:25 PM, Moritz Maisel wrote:
Hi,

for a project that wasn't touched a long time I used to call

mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms
-DgroupId=[GROUP] -Dtycho.targetPlatform=[TARGET]

for generation of the poms. Today I wanted to build the project on a
new machine and got "Guice provision errors" (see below).
I assume this is due to the move of the project to eclipse. Is that
correct? I did a lot of searching and trying since then (e.g. with the
"tycho-pomgenerator-plugin"), but didn't get it to work ...

Does anyone know the "updated" version of the above command?
That would be a great help, as I'm now pretty stuck with the project. :-/

Greetings,
Moritz

----------8<----------*snip*----------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-tycho-plugin:0.11.1:generate-poms (default-cli) @
standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.352s
[INFO] Finished at: Wed Apr 25 21:22:56 CEST 2012
[INFO] Final Memory: 5M/14M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.sonatype.tycho:maven-tycho-plugin:0.11.1:generate-poms
(default-cli) on project standalone-pom: Execution default-cli of goal
org.sonatype.tycho:maven-tycho-plugin:0.11.1:generate-poms failed:
Unable to load the mojo 'generate-poms' (or one of its required
components) from the plugin
'org.sonatype.tycho:maven-tycho-plugin:0.11.1':
com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting: org.codehaus.tycho.GeneratePomsMojo
  at ClassRealm[plugin>org.sonatype.tycho:maven-tycho-plugin:0.11.1,
parent: ClassRealm[maven.api, parent: null]]
  while locating org.apache.maven.plugin.Mojo annotated with
@com.google.inject.name.Named(value=org.sonatype.tycho:maven-tycho-plugin:0.11.1:generate-poms)

1 error
      role: org.apache.maven.plugin.Mojo
  roleHint: org.sonatype.tycho:maven-tycho-plugin:0.11.1:generate-poms:
Guice provision errors:

1) No implementation for org.codehaus.plexus.logging.Logger was bound.
  at ClassRealm[plugin>org.sonatype.tycho:maven-tycho-plugin:0.11.1,
parent: ClassRealm[maven.api, parent: null]]
  while locating org.codehaus.tycho.osgitools.EquinoxResolver
  while locating org.codehaus.tycho.GeneratePomsMojo

1 error
->  [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
----------8<----------*snip*----------



Back to the top