Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Generating POMs for pomless build fails for category.xml

Thanks, that last one is actually what I need. I think I need individual POMs as I need to customize the target platform inclusions for tests.

-Dpolyglot.dump.pom=pom.xml

is the trick.

On Mon, 31 May 2021 at 20:14, Christoph Läubrich <laeubi@xxxxxxxxxxxxxx> wrote:
I fear that tycho-pomgenerator-plugin is of less use today and so it
might be outdated and is not optimized to run *together* with
pomless-build, so you should at least disable the pomless extension if
you like to use poms instead.

If you want to keep your pomless build, you should be able to configure
what is required in the parent-pom. If you still like to get the
generated poms form the pomless-build as a starting point, you should be
able to run the pomlessbuild with

-Dpolyglot.dump.pom=pom.xml

Am 31.05.21 um 10:48 schrieb Jörn Guy Süß:
> Hi!
>
> I have a pom-less build going and now need to tweak some test settings,
> adding implicit plugin dependencies.
>
> To materialize the POMs I need, I wanted to use the POM generator.
>
> https://www.eclipse.org/tycho/sitedocs/tycho-pomgenerator-plugin/generate-poms-mojo.html
> <https://www.eclipse.org/tycho/sitedocs/tycho-pomgenerator-plugin/generate-poms-mojo.html>
>
> Despite the assertion in the documentation that its aim is to:
>
> "Traverse the current directory to find eclipse-plugin/bundle, feature,
> update site (site.xml) or *p2 repository (category.xml) projects* and
> generate corresponding pom.xml's. "
>
> it breaks with the error below, when I command:
>
> mvn org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms in the
> root directory of the parent project.
>
> 6919 [ERROR] Failed to execute goal
> org.eclipse.tycho:tycho-pomgenerator-plugin:2.3.0:generate-poms
> (default-cli) on project botlearn-lib: groupId parameter is required to
> generate pom.xml for Eclipse Repository project
> com.codebots.botlearn.lib -> [Help 1]
>
> The category file is trivial:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <site>
>     <feature id="com.codebots.botlearn.lib">
>        <category name="runtime"/>
>     </feature>
>     <category-def name="runtime" label="runtime"/>
> </site>
>
> Note that my pomless build works fine, including tests and P2
> materialisation. I take that as a reasonable validation from the POV of
> Tycho that my build is reasonably sane.
>
> Has anyone ever seen something like this? Could it be a bug?
>
> Best,
> JG
>
>
> --
>
> 730 Hawkesbury Road
> Anstead, QLD 4070
> Australia
>
> email: jgsuess@xxxxxxxxx <mailto:jgsuess@xxxxxxxxx>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user


--

730 Hawkesbury Road
Anstead, QLD 4070
Australia
 

email: jgsuess@xxxxxxxxx


Back to the top