Martin Peřina has uploaded a new change for review. Change subject: core: Adds dependency list generation ......................................................................
core: Adds dependency list generation Adds dependency list generation during project build. It's turned on by default in maven, but it can be disabled by adding -DskipDependencyList to maven parameters. If you are using development environment, the dependency list generation is turned off by default. Change-Id: I78d7facefe4e4fc6bb3144b5b658dcfc5e412ed1 Signed-off-by: Martin Perina <[email protected]> --- M Makefile M README.developer M pom.xml 3 files changed, 34 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/85/19785/1 diff --git a/Makefile b/Makefile index 47b0184..46c32a7 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ BUILD_LOCALES=0 BUILD_DEV=0 BUILD_UT=1 +BUILD_DL=0 EXTRA_BUILD_FLAGS= DEV_REBUILD=1 DEV_BUILD_GWT_DRAFT=0 @@ -101,6 +102,9 @@ ifeq ($(BUILD_UT),0) BUILD_FLAGS:=$(BUILD_FLAGS) -D skipTests endif +ifeq ($(BUILD_DL),0) +BUILD_FLAGS:=$(BUILD_FLAGS) -D skipDependencyList +endif ifneq ($(BUILD_DEV),0) BUILD_FLAGS:=$(BUILD_FLAGS) $(DEV_BUILD_FLAGS) endif diff --git a/README.developer b/README.developer index 6c95040..4a370f82 100644 --- a/README.developer +++ b/README.developer @@ -108,6 +108,9 @@ BUILD_UT [0] Perform unit tests during build. +BUILD_DL [0] + Generate project's dependency list during build. + DEV_BUILD_GWT_DRAFT [0] Build draft gwt application without optimizations. diff --git a/pom.xml b/pom.xml index befc2a5..6dd18e2 100644 --- a/pom.xml +++ b/pom.xml @@ -692,6 +692,33 @@ </pluginManagement> </build> </profile> + <profile> + <id>list-dependencies</id> + <activation> + <property><name>!skipDependencyList</name></property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>list-dependencies</id> + <phase>generate-sources</phase> + <goals> + <goal>resolve</goal> + </goals> + <configuration> + <outputFile>${session.executionRootDirectory}/target/dependencies.txt</outputFile> + <appendOutput>true</appendOutput> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> <!-- ====================================================================== --> <!-- Needed for MEAD, which runs 'mvn deploy -DaltDeploymentRepository=..' --> -- To view, visit http://gerrit.ovirt.org/19785 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I78d7facefe4e4fc6bb3144b5b658dcfc5e412ed1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Peřina <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
