[
https://issues.apache.org/jira/browse/AMBARI-18051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529906#comment-15529906
]
Doroszlai, Attila commented on AMBARI-18051:
--------------------------------------------
Hi [~Tim Thorpe],
This change causes build failure when running unit tests with Maven without
{{clean}} if any tests need recompilation. This makes running specific unit
tests after changes more expensive in terms of time, since we need to clean,
too.
{noformat}
$ mvn -pl ambari-server -DskipPythonTests -Dtest=ServiceModuleTest clean test
...
[INFO] BUILD SUCCESS
[INFO] Total time: 33.124 s
...
$ mvn -pl ambari-server -DskipPythonTests -Dtest=ServiceModuleTest test
...
[INFO] BUILD SUCCESS
[INFO] Total time: 16.026 s
...
$ touch
ambari-server/src/test/java/org/apache/ambari/server/stack/ServiceModuleTest.java
$ mvn -pl ambari-server -DskipPythonTests -Dtest=ServiceModuleTest test
...
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:3.0.2:test-jar
(create-sample-upgrade-check-jar) on project ambari-server: Error assembling
JAR: A zip file cannot include itself
...
$ touch
ambari-server/src/test/java/org/apache/ambari/server/stack/ServiceModuleTest.java
$ mvn -pl ambari-server clean process-test-classes
...
[INFO] BUILD SUCCESS
...
{noformat}
Could you please check? Thanks.
> Services should be able to provide their own pre-req checks by supplying a
> jar file
> -----------------------------------------------------------------------------------
>
> Key: AMBARI-18051
> URL: https://issues.apache.org/jira/browse/AMBARI-18051
> Project: Ambari
> Issue Type: New Feature
> Components: ambari-server
> Affects Versions: trunk
> Reporter: Tim Thorpe
> Assignee: Tim Thorpe
> Attachments: AMBARI-18051.patch
>
>
> Services should be able to provide their own pre-req checks by supplying a
> jar file.
> This would allow custom services to supply their own jar files to handle
> pre-req checks rather than forcing third party developers to make changes to
> ambari-server code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)