Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem with Version format for builded jars.

If you are writing a maven plugin, then
MavenProject.getArtifact().getFile() is the correct way to access main
project artifact.

I you want to access file on filesystem directory, beware that artifact
filename under target/ folder is not part of tycho API and can change
with future version of Tycho. Currently, it uses Maven naming
convention, which is <artifactId>-<version>-<classifier>.<extension>.

--
Regards,
Igor

On 11-05-17 05:59 AM, vincent bonnier wrote:
Hello Tycho users !
I'm still working on an OSGI project using RAP.
I use Tycho in order to build my project. The compilation works fine.
However I can't use the standard packaging goals provided by tycho
since we are using RAP and we would like to build a war from the
warpduct file format defined by libra project.

So we tried to build the war manually by parsing the warproduct file
and by picking the jar files from the tycho build process target
folders.
The problem is that the bundle jar names format in those folders are:
bundlename-<major>.<minor>.<micro>-<qualifier>.jar when osgi standard
expects bundlename_<major>.<minor>.<micro>.<qualifier>.jar

I can't figure out how to force the names of my bundle jars I tried
using the following in my pom but it doesn't seem to change a thing:

  <plugin>
       <groupId>org.sonatype.tycho</groupId>
       <artifactId>maven-osgi-packaging-plugin</artifactId>
       <version>0.11.0</version>
       <configuration>
          <format>'v'yyyyMMdd-HHmm</format>
          <archiveSite>true</archiveSite>
       </configuration>
     </plugin>

I tried many times with differents format string beetween<format>  and
</format>  but nothing change.
What is the classic way to manage the versions in tycho environment ??

Maybe I'm not running the packaging phase ? that's the only lead I
have, but I don't really believe in it.
Further the command i use to build with tycho :

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\ mvn  clean integration-test -fae install       /
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Hope somebody could help me.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top