Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Lack of persistence of the product target directory.

I have been able to narrow down where the delete occurs during the build.  The build message in red is where the 'target' directory gets damaged.

I was even able to reduce, but not eliminate, the number of directories and files that get deleted.  Changing the goal from 'test' to 'integration-test' reduced
, but not eliminate, the number of directories and files that get deleted under the 'target' directory. 

Another interesting note.  There are fewer steps in the build when
'integration-test' is added as goal, which is counter intuitive.


========== with integration-test ===========
[INFO] ------------------------------------------------------------------------
[INFO] Building Usque - application product 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ software.usque.app.product ---
[INFO] Deleting C:\gitUsque02Repo\products\software.usque.app.product\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.25.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ software.usque.app.product ---
[INFO] The project's OSGi version is 0.0.1.201606230039
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ software.usque.app.product ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ software.usque.app.product ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\gitUsque02Repo\products\software.usque.app.product\src\main\resources
[INFO]
[INFO] --- target-platform-configuration:0.25.0:target-platform (default-target-platform) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-products (default-publish-products) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-categories (default-publish-categories) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:attach-artifacts (default-attach-artifacts) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:assemble-repository (default-assemble-repository) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:archive-repository (default-archive-repository) @ software.usque.app.product ---
[INFO] Building zip: C:\gitUsque02Repo\products\software.usque.app.product\target\software.usque.app.product-0.0.1-SNAPSHOT.zip
[INFO]
[INFO] --- tycho-p2-director-plugin:0.25.0:materialize-products (materialize-products) @ software.usque.app.product ---
[INFO] Installing product software.usque.app-product for environment win32/win32/x86_64 to C:\gitUsque02Repo\products\software.usque.app.product\target\products\software.usque.app-product\win32\win32\x86_64
Installing software.usque.app-product 1.0.0.
Operation completed in 11913 ms.
[INFO]
[INFO] --- tycho-p2-director-plugin:0.25.0:archive-products (archive-products) @ software.usque.app.product ---
[INFO] Building zip: C:\gitUsque02Repo\products\software.usque.app.product\target\products\software.usque.app-product-win32.win32.x86_64.zip
[INFO]
[INFO] --- tycho-packaging-plugin:0.25.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ software.usque.app.product ---
[INFO] The project's OSGi version is 0.0.1.201606230039
[INFO]

[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ software.usque.app.product ---
[INFO] Deleting C:\gitUsque02Repo\products\software.usque.app.product\target

[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ software.usque.app.product ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\gitUsque02Repo\products\software.usque.app.product\src\main\resources
[INFO]
[INFO] --- target-platform-configuration:0.25.0:target-platform (default-target-platform) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-products (default-publish-products) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-categories (default-publish-categories) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:attach-artifacts (default-attach-artifacts) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:assemble-repository (default-assemble-repository) @ software.usque.app.product ---

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] software.usque.root ................................ SUCCESS [  0.144 s]
.
.
.



========== without integration-test ===========
[INFO] ------------------------------------------------------------------------
[INFO] Building Usque - application product 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ software.usque.app.product ---
[INFO] Deleting C:\gitUsque02Repo\products\software.usque.app.product\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.25.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ software.usque.app.product ---
[INFO] The project's OSGi version is 0.0.1.201606230053
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ software.usque.app.product ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ software.usque.app.product ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\gitUsque02Repo\products\software.usque.app.product\src\main\resources
[INFO]
[INFO] --- target-platform-configuration:0.25.0:target-platform (default-target-platform) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-products (default-publish-products) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-categories (default-publish-categories) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:attach-artifacts (default-attach-artifacts) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:assemble-repository (default-assemble-repository) @ software.usque.app.product ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:archive-repository (default-archive-repository) @ software.usque.app.product ---
[INFO] Building zip: C:\gitUsque02Repo\products\software.usque.app.product\target\software.usque.app.product-0.0.1-SNAPSHOT.zip
[INFO]
[INFO] --- tycho-p2-director-plugin:0.25.0:materialize-products (materialize-products) @ software.usque.app.product ---
[INFO] Installing product software.usque.app-product for environment win32/win32/x86_64 to C:\gitUsque02Repo\products\software.usque.app.product\target\products\software.usque.app-product\win32\win32\x86_64
Installing software.usque.app-product 1.0.0.
Operation completed in 11784 ms.
[INFO]
[INFO] --- tycho-p2-director-plugin:0.25.0:archive-products (archive-products) @ software.usque.app.product ---
[INFO] Building zip: C:\gitUsque02Repo\products\software.usque.app.product\target\products\software.usque.app-product-win32.win32.x86_64.zip
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building software.usque.site 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ software.usque.site ---
[INFO] Deleting C:\gitUsque02Repo\sites\software.usque.site\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.25.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ software.usque.site ---
[INFO] The project's OSGi version is 0.0.1.201606230053
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ software.usque.site ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ software.usque.site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\gitUsque02Repo\sites\software.usque.site\src\main\resources
[INFO]
[INFO] --- target-platform-configuration:0.25.0:target-platform (default-target-platform) @ software.usque.site ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-products (default-publish-products) @ software.usque.site ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:publish-categories (default-publish-categories) @ software.usque.site ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.25.0:attach-artifacts (default-attach-artifacts) @ software.usque.site ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:assemble-repository (default-assemble-repository) @ software.usque.site ---
[INFO]
[INFO] --- tycho-p2-repository-plugin:0.25.0:archive-repository (default-archive-repository) @ software.usque.site ---
[INFO] Building zip: C:\gitUsque02Repo\sites\software.usque.site\target\software.usque.site-0.0.1-SNAPSHOT.zip
[INFO]
[INFO] --- tycho-p2-director-plugin:0.25.0:materialize-products (materialize-products) @ software.usque.site ---
[INFO] No product definitions found. Nothing to do.
[INFO]
[INFO] --- tycho-p2-director-plugin:0.25.0:archive-products (archive-products) @ software.usque.site ---
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building software.usque.releng 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ software.usque.releng ---
[INFO] Deleting C:\gitUsque02Repo\releng\software.usque.releng\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ software.usque.releng ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\gitUsque02Repo\releng\software.usque.releng\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ software.usque.releng ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ software.usque.releng ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\gitUsque02Repo\releng\software.usque.releng\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ software.usque.releng ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ software.usque.releng ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ software.usque.releng ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\gitUsque02Repo\releng\software.usque.releng\target\software.usque.releng-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources (copy-and-filter-allatori-config) @ software.usque.releng ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (run-allatori) @ software.usque.releng ---

################################################
#                                              #
#        ## #   #    ## ### ### ##  ###        #
#       # # #   #   # #  #  # # # #  #         #
#       ### #   #   ###  #  # # ##   #         #
#       # # ### ### # #  #  ### # # ###        #
#                                              #
#                DEMO VERSION!                 #
#           NOT FOR COMMERCIAL USE!            #
#                                              #
#       Demo version adds System.out's         #
#       and gives 'ALLATORI_DEMO' name         #
#       to some fields and methods.            #
#                                              #
#                                              #
# Obfuscation by Allatori Obfuscator v5.7 DEMO #
#                                              #
#           http://www.allatori.com            #
#                                              #
################################################

[INFO] Obfuscation completed. Writing log file...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] software.usque.root ................................ SUCCESS [  0.137 s]



On 6/22/2016 3:13 AM, Sievers, Jan wrote:
you may have hit 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399756

if so, check for other maven plugins in your build which invoke a forked maven lifecycle.

Jan

On 21/06/16 22:43, "tycho-user-bounces@xxxxxxxxxxx on behalf of paul" <tycho-user-bounces@xxxxxxxxxxx on behalf of paul@xxxxxxxxxxxx> wrote:

I have a high degree of confidence I caused this issue with some type of configuration change.  But since the project is new, I did not have a nightly build running yet.  So I was
 able to get the target directory built with a working e4 RCP application.  Now a week or two later I got the time to setup the nightly build.  Much to my dismay the 
 producttargetdirectory will not persist.  Some step deletes the whole producttargetdirectory.  In summary the question is as follows. 



Why does the producttargetdirectory get created and properly populated (correctly from what little amount of time I can look)
during a Tycho build only to have the
target directory completely deleted seconds later in the Tycho build process? 
The target directory gets properly populated roughly at the

[INFO] ------------------------------------------------------------------------
[INFO] Building software.usque.site 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
step of the Tycho build. 
The target directory gets completely deleted roughly at the
[INFO] ------------------------------------------------------------------------
[INFO] Building Usque - application product 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
step of the Tycho build.


Can someone give a clue where to look.  I have exhausted all my guesses.  Which is not a lot since I am new to Eclipe & Tycho.




Lack of persistence of the product target directory.


_______________________________________________
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


--
“Consider, you who love money, the one who hanged himself for the sake of it. Shun the insatiate heart that could dare such a deed against the Teacher.” - Unknown

Back to the top