Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho version gone wrong

(added tycho-user@xxxxxxxxxxx back to cc list, I assume it was an accidental omission and others may have a better answer) 

When compiling Eclipse plugins with Tycho the source and target setting for maven-compiler are not used, but instead those settings in the manifest.mf, .classpath and project settings (or some  combination, they should all match and you can generally  make them match if they have become out of sync by right-clicking in project -> plugin tools -> update classpath). 

If you have a complicated setup with multiple versions of jdk needed you may need to do a little more so tycho knows where each jdk is https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#useJDK

HTH 
Jonah 



On 14 Mar 2017 7:42 p.m., "khady lo seck" <khady.engineering@xxxxxxxxx> wrote:
Would this also be another configuration error?

Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile (default-compile) on project com.company.bbcode.parser: Compilation failure: Compilation failure:
...
 Lambda expressions are allowed only at source level 1.8 or above

In my POM I mentioned as one of the plugins
<plugin>
<groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
   <version>3.5.1</version>
   <configuration>
          <source>1.8</source>
          <target>1.8</target>
     <compilerId>groovy-eclipse-compiler</compilerId>
     <verbose>true</verbose>   
     <fork>true</fork> 
     <compilerArguments>
       <javaAgentClass>lombok.launch.Agent</javaAgentClass>
     </compilerArguments>
   </configuration>
   <dependencies>
       <dependency>
           <groupId>org.codehaus.groovy</groupId>
           <artifactId>groovy-eclipse-compiler</artifactId>
           <version>2.9.1-01</version>
       </dependency>
       <!-- for 2.8.0-01 and later you must have an explicit dependency on groovy-eclipse-batch -->
       <dependency>
           <groupId>org.codehaus.groovy</groupId>
           <artifactId>groovy-eclipse-batch</artifactId>
           <version>2.3.7-01</version>
       </dependency>
       <dependency>
           <groupId>com.company.lombok</groupId>
           <artifactId>lombok</artifactId>
           <version>1.16.8</version>
       </dependency>
   </dependencies>
</plugin>

On Tue, Mar 14, 2017 at 10:14 AM, khady lo seck <khady.engineering@xxxxxxxxx> wrote:
That worked thank you.

On Tue, Mar 14, 2017 at 1:10 PM, Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi, 

Tge problem looks like your pom.xml and MANIFEST.MF have different versions in com.company.bbcode.parser.  They should match. 

BTW Tycho 1.0.0 has now been released, so you may want to consider upgrading anyway, bit that is not your problem here. 

Jonah


On 14 Mar 2017 5:06 p.m., "khady lo seck" <khady.engineering@xxxxxxxxx> wrote:
Hello, 

I have started working on a my old maven tycho transition project and realized it is complaining abou1 the tycho versioning not being 0.26.0. Have we updated Tycho to 0.27.0 yet? Or do I have some other problem.


] Building com.company.bbcode.parser 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- tycho-packaging-plugin:0.26.0:build-qualifier (default-build-qualifier) @ com.company.bbcode.parser ---
[INFO] The project's OSGi version is 0.0.1.201703141651
[INFO]
[INFO] --- tycho-packaging-plugin:0.26.0:validate-id (default-validate-id) @ com.company.bbcode.parser ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.26.0:validate-version (default-validate-version) @ com.company.bbcode.parser ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.562 s
[INFO] Finished at: 2017-03-14T09:51:57-07:00
[INFO] Final Memory: 68M/163M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.26.0:validate-version (default-validate-version) on project com.company.bbcode.parser: Unqualified OSGi version 1.0.0.qualifier must match unqualified Maven version 0.0.1-SNAPSHOT for SNAPSHOT builds -> [Help 1]




--
Best regards, 

Khady L. Seck
Full Stack Java Developer

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Best regards, 

Khady L. Seck
Full Stack Java Developer



--
Best regards, 

Khady L. Seck
Full Stack Java Developer


Back to the top