You know there’s code in there for running segments of the lifecycle Igor put 
in there about 18 months ago?

> On Jul 30, 2016, at 11:25 AM, Karl Heinz Marbaise <khmarba...@gmx.de> wrote:
> 
> Hi,
> 
> currently I've written a PoC to define a life cycle range on command line 
> like this:
> 
> mvn generate-sources..generate-resources
> 
> which will run only the life cycle phases from generate-sources (incl.) to 
> generate-resources (incl.)...
> 
> This works so far:
> 
> $ mvn pre-integration-test..post-integration-test -Prun-its
> 
> [INFO] Scanning for projects...
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building The MultiEnv Maven Plugin 0.3.0-SNAPSHOT
> [INFO] 
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- mrm-maven-plugin:1.0.0:start (default) @ multienv-maven-plugin ---
> [INFO] Configuring Mock Repository Manager...
> [INFO]   Mock content (source: 
> /Users/kama/ws-git/multienv-maven-plugin/src/it-repo)
> [INFO]   Proxy (source: this Maven session)
> [INFO] Starting Mock Repository Manager
> [INFO] Logging to Logger[org.mortbay.log]@1378737388 via 
> org.mortbay.log.Slf4jLog
> [INFO] jetty-6.1.5
> [INFO] Started SocketConnector@0.0.0.0:52355
> [INFO] Mock Repository Manager http://localhost:52355 is started.
> [INFO] Setting property 'repository.proxy.url' to 'http://localhost:52355'.
> [INFO]
> [INFO] --- maven-invoker-plugin:2.0.0:install (pre-integration-tests) @ 
> multienv-maven-plugin ---
> [INFO] Installing /Users/kama/ws-git/multienv-maven-plugin/pom.xml to 
> /Users/kama/ws-git/multienv-maven-plugin/target/local-repo/com/soebes/maven/plugins/multienv-maven-plugin/0.3.0-SNAPSHOT/multienv-maven-plugin-0.3.0-SNAPSHOT.pom
> [INFO]
> [INFO] --- maven-invoker-plugin:2.0.0:run (integration-tests) @ 
> multienv-maven-plugin ---
> [INFO] Building: setup/pom.xml
> [INFO] ..SUCCESS (2.0 s)
> [INFO] Building: basicConfigurationTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.5 s)
> [INFO] Building: basicConfigurationZipTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.0 s)
> [INFO] Building: basicTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.1 s)
> [INFO] Building: filteringTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (3.8 s)
> [INFO] Building: jarTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (3.7 s)
> [INFO] Building: noDebugTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.0 s)
> [INFO] Building: supplementalFolderTest/pom.xml
> [INFO] run script verify.groovy
> [INFO] ..SUCCESS (4.0 s)
> [INFO] -------------------------------------------------
> [INFO] Build Summary:
> [INFO]   Passed: 8, Failed: 0, Errors: 0, Skipped: 0
> [INFO] -------------------------------------------------
> [INFO]
> [INFO] --- mrm-maven-plugin:1.0.0:stop (default) @ multienv-maven-plugin ---
> [INFO] Stopping Mock Repository Manager on http://localhost:52355
> [INFO] Mock Repository Manager http://localhost:52355 is stopped.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 32.422 s
> [INFO] Finished at: 2016-07-30T17:12:35+02:00
> [INFO] Final Memory: 23M/449M
> [INFO] 
> ------------------------------------------------------------------------
> 
> Also it looks like working to do things like this:
> 
> mvn package..install
> 
> But what does not work is:
> 
> mvn install..deploy
> 
> cause Maven complains like this.
> 
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) 
> on project assembly: The packaging for this project did not assign a file to 
> the build artifact -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the...
> 
> Cause the package phase did add artifacts to the projects...
> 
> So the question comes up: How can this be prevented...
> 
> The following works:
> 
> mvn package..deploy
> 
> 
> Furthermore I'm thinking about doing things like this:
> 
> mvn [test]
> 
> To run only the life cycle phase test ...without the preliminary phases...
> 
> WDYT ?
> 
> Kind regards
> Karl Heinz Marbaise
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder, Takari and Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to