Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build extension not configured when running before package phase

maybe p2-installable-unit is a better way to achieve the same thing


On 06/11/15 19:26, "tycho-user-bounces@xxxxxxxxxxx on behalf of Carsten Reckord" <tycho-user-bounces@xxxxxxxxxxx on behalf of reckord@xxxxxxxx> wrote:

>I am trying to build an eclipse-repository project and process the 
>generated metadata in between build steps.
>Since I want to edit the repository's own p2content.xml before the site 
>gets assembled (in order do some processing on the categories) as well 
>as the final content.xml (in order to add repository references and do 
>some more processing), I would like to move the 
>tycho-p2-publisher-plugin to an earlier phase to get the execution order 
>for my processing right.
>But something like
>          <plugin>
>             <groupId>org.eclipse.tycho</groupId>
>             <artifactId>tycho-p2-publisher-plugin</artifactId>
>             <executions>
>                <execution>
>                   <id>publish-categories</id>
>                   <phase>process-resources</phase>
>                   <goals>
>                      <goal>publish-categories</goal>
>                   </goals>
>                </execution>
>             </executions>
>          </plugin>
>with any phase earlier than package leads to
>> LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.22.0:publish-categories (publish-metadata):
> > Execution publish-metadata of goal 
>failed: Tycho build extension not configured for MavenProject
>Judging by the exception, it seems the target platform is not available 
>at this point:
>> Caused by: java.lang.IllegalStateException: Tycho build extension not configured for MavenProject
>>         at org.eclipse.tycho.core.utils.TychoProjectUtils.getTargetPlatform(
>>         at org.eclipse.tycho.p2.facade.RepositoryReferenceTool.addTargetPlatformRepository(
>>         at org.eclipse.tycho.p2.facade.RepositoryReferenceTool.getVisibleRepositories(
>>         at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.createPublisherService(
>>         at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(
>>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
>>         ... 20 more
>Is there any way around this?
>tycho-user mailing list
>To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top