Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Sometimes wrong result of tycho-packaging-plugin

Hi,

I found something strange in my build results and hope that someone has an idea:

All my plugins have an about.mappings file with the follwing content:

0=${build.id}
1=${git.branch}
2=${git.commit}

The POMs of all plugins have this:

  <build>
    <resources>
      <resource>
        <directory>.</directory>
        <filtering>true</filtering>
        <includes>
          <include>about.mappings</include>
        </includes>
      </resource>
    </resources>
  </build>

For most of these plugins my Tycho build produces plugin jars with proper values in this file, e.g.:

0=788
1=master
2=0e8636a292085da5325ace92cfb3728dd26c7cc8

But for all my "...doc" plugins the resulting plugin jars contain the file *without* replaced values. The build log always shows the same lines, no matter what plugin is built (see attached snippets log1 and log2).

For the "bad" plugins the copied file under org.eclipse.oomph.setup.doc/target/classes is still correct (values replaced), but, as mentioned above, the jars that are built of them have the unreplaced/source versions of this file in it.

Does someone have a clue what's going on? Am I overlooking a configuration somewhere?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.oomph.setup.workingsets.edit 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] Deleting /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.workingsets.edit/target
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:build-qualifier (default-build-qualifier) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] The project's OSGi version is 1.0.0.v20150114-0702
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:validate-id (default-validate-id) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:validate-version (default-validate-version) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- tycho-compiler-plugin:0.21.0:compile (default-compile) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] Compiling 3 source files to /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.workingsets.edit/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.workingsets.edit/src/test/resources
[INFO] 
[INFO] --- target-platform-configuration:0.21.0:target-platform (default-target-platform) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:package-plugin (default-package-plugin) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] Building jar: /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.workingsets.edit/target/org.eclipse.oomph.setup.workingsets.edit-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.21.0:p2-metadata-default (default-p2-metadata-default) @ org.eclipse.oomph.setup.workingsets.edit ---
[INFO] ------------------------------------------------------------------------
[INFO] Building org.eclipse.oomph.setup.doc 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ org.eclipse.oomph.setup.doc ---
[INFO] Deleting /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.doc/target
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:build-qualifier (default-build-qualifier) @ org.eclipse.oomph.setup.doc ---
[INFO] The project's OSGi version is 1.0.0.v20150114-0702
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:validate-id (default-validate-id) @ org.eclipse.oomph.setup.doc ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:validate-version (default-validate-version) @ org.eclipse.oomph.setup.doc ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.eclipse.oomph.setup.doc ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- tycho-compiler-plugin:0.21.0:compile (default-compile) @ org.eclipse.oomph.setup.doc ---
[INFO] Compiling 30 source files to /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.doc/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.eclipse.oomph.setup.doc ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.doc/src/test/resources
[INFO] 
[INFO] --- target-platform-configuration:0.21.0:target-platform (default-target-platform) @ org.eclipse.oomph.setup.doc ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.21.0:package-plugin (default-package-plugin) @ org.eclipse.oomph.setup.doc ---
[INFO] Building jar: /jobs/genie.tools.oomph/integration/workspace/git/plugins/org.eclipse.oomph.setup.doc/target/org.eclipse.oomph.setup.doc-1.0.0-SNAPSHOT.jar
[INFO] 
[INFO] --- tycho-p2-plugin:0.21.0:p2-metadata-default (default-p2-metadata-default) @ org.eclipse.oomph.setup.doc ---

Back to the top