Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] pom-first dependency not being resolved

There is a typo in your parent pom (see the diff below).

Generally, though, I try to avoid such hard coupling between code that
runs inside Eclipse and Maven. It is common to have different
configuration format between different versions of Maven plugins, i.e.
new versions introduce new configuration parameters, but Eclipse will
have only one configuration parser, which may or may not tolerate
unknown configuration elements.


diff --git a/pom.xml b/pom.xml
index 2c2af2e..8070a50 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,7 +86,7 @@
       </plugin>
       <plugin>
         <groupId>org.eclipse.tycho</groupId>
-        <artifactId>tycho-platform-configuration</artifactId>
+        <artifactId>target-platform-configuration</artifactId>
         <configuration>
           <pomDependencies>consider</pomDependencies>
         </configuration>
@@ -123,4 +123,4 @@
     </repository>
   </repositories>

-</project>
\ No newline at end of file
+</project>



--
Regards,
Igor

On 11-08-25 5:28 AM, Stevo Slavić wrote:
Hello tycho users,

I'm trying to build a m2e connector for cxf-codegen-plugin, first for
it's wsdl2java goal. Sources of the connector so far are at
https://github.com/sslavic/m2e-cxf-codegen-connector As can be seen,
I've used another connector as starting point.

Besides some primitives cxf-codegen-plugin uses custom object model
for configuration. To be able to make build decisions in connector
based on plugin execution configuration and current state in local
workspace, I needed to import package with cxf-codegen-plugin
configuration model classes. cxf-codegen-plugin neither has that model
as separate module nor is the cxf-codegen-plugin OSGi bundle. After
searching for workaround, I've found and followed instructions (see
here https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts
and https://github.com/sonatype/sonatype-tycho/tree/master/tycho-demo/itp02
) for mixed pom-first manifest-first approach with tycho. Problem is
that I can not get eclipse-plugin to resolve the classes from exported
package of wrapped jar OSGi bundle, neither within eclipse nor on
command line. I build the shared pom first, than in separate build
wrapped jar, and then in third build the eclipse-plugin.

Can someone please take a look at sources on github and advise me on
what am I doing wrong?

Regards,
Stevo.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top