Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Let the casc plugin run during TASKS phase to allow to update capabil…
Browse files Browse the repository at this point in the history
…ities
  • Loading branch information
Sven Tschui committed Oct 9, 2019
1 parent a00abff commit b5f564c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ Dockerfile
.dockerignore
*.iml
.idea/
.data/

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea/
*.iml
target/

.data/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN mvn clean compile

ADD src ./src

RUN mvn verify
RUN mvn verify -T1C

FROM sonatype/nexus3:3.18.1

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/ch/sventschui/nexus/casc/NexusCascPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

@Named("cascPlugin")
@Description("Casc Plugin")
@ManagedLifecycle(phase = ManagedLifecycle.Phase.CAPABILITIES)
// Plugin must run after CAPABILITIES phase as otherwise we can not load/patch existing capabilities
@ManagedLifecycle(phase = ManagedLifecycle.Phase.TASKS)
@Singleton
public class NexusCascPlugin extends StateGuardLifecycleSupport {
private final CoreApi coreApi;
Expand Down

0 comments on commit b5f564c

Please sign in to comment.