[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] building a repository deletes target/ after running

Removing the maven-source-plugin may also be an option, but this is really a bug in Tycho â the default lifecycle should not include clean.

 

Unfortunately, we donât have a bug report for this yet. You would help us if you could open a bug report and attach a minimal example project that reproduces the problem. Can you do this?

 

Cheers

Tobias

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of iulian dragos
Sent: Donnerstag, 6. September 2012 15:18
To: Tycho user list
Subject: Re: [tycho-user] building a repository deletes target/ after running

 

 

On Thu, Sep 6, 2012 at 2:53 PM, <e92-330cd@xxxxxxxxx> wrote:

how do you build that? with CLI command or with some build machine? I guess you dont have somewhere clean command after the mvn package , right?

 

command line. I nailed it down to having configured the `maven-source-plugin` in the parent pom. Somehow, this plugin triggered another lifecycle run, and `clean` is bound to phase `initialize` by the tycho packaging plugin. Once I removed the source plugin, it all builds fine!

 

thanks,

iulian

 


D.


> ------------ PÅvodnà zprÃva ------------
> Od: iulian dragos <jaguarul@xxxxxxxxx>
> PÅedmÄt: [tycho-user] building a repository deletes target/ after running
> Datum: 06.9.2012 14:45:33
> ----------------------------------------

> Hi all,
>
> I'm trying to build a product (based on Eclipse, with my feature
> pre-installed). I am stuck in building the repository. For some reason it
> always runs `clean` after building the product, so I am left without a
> `target/` directory at the end of my build. I run `mvn package`, and I see
> 'building zip file', then cleaning everything. Googling didn't help..
>
> What am I doing wrong? Here's my pom file:

> https://gist.github.com/3655814(it has a parent file defining a few

> plugins, like the build-number
> plugin).
>
> Here's my output:
>
> thanks,
> iulian
>
>
> INFO] --- tycho-p2-repository-plugin:0.15.0:archive-repository
> (default-archive-repository) @ scalaide ---
> [INFO] Building zip:
> /Users/dragos/workspace/git/plugin/dragos-scala-ide/org.scala-ide.product/target/scalaide-2.1.0-SNAPSHOT.zip
> [INFO]
> [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ scalaide >>>
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.15.0:build-qualifier
> (default-build-qualifier) @ scalaide ---
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ scalaide ---
> [INFO] Checking for local modifications: skipped.
> [INFO] Updating project files from SCM: skipped.
> [INFO] ShortRevision tag detected. The value is '7'.
> [INFO] Executing: /bin/sh -c cd
> /Users/dragos/workspace/git/plugin/dragos-scala-ide/org.scala-ide.product
> && git rev-parse --verify --short=7 HEAD
> [INFO] Working directory:
> /Users/dragos/workspace/git/plugin/dragos-scala-ide/org.scala-ide.product
> [INFO] Storing buildNumber: 0a279a5 at timestamp: 1346934877292
> [INFO] ShortRevision tag detected. The value is '7'.
> [INFO] Executing: /bin/sh -c cd
> /Users/dragos/workspace/git/plugin/dragos-scala-ide/org.scala-ide.product
> && git rev-parse --verify --short=7 HEAD
> [INFO] Working directory:
> /Users/dragos/workspace/git/plugin/dragos-scala-ide/org.scala-ide.product
> [INFO] Storing buildScmBranch: UNKNOWN
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ scalaide ---
> [INFO] Deleting
> /Users/dragos/workspace/git/plugin/dragos-scala-ide/org.scala-ide.product/target
> [INFO]
> [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ scalaide <<<
> [INFO]
> [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ scalaide ---
> [INFO] No sources in project. Archive not created.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 33.925s
> [INFO] Finished at: Thu Sep 06 14:34:37 CEST 2012
> [INFO] Final Memory: 60M/123M
> [INFO]
> ------------------------------------------------------------------------
>
>
> --
> Â Je dÃteste la montagne, Ãa cache le paysage Â
> Alphonse Allais
>
>
>

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



 

--
 Je dÃteste la montagne, Ãa cache le paysage Â
Alphonse Allais