Skip to content

Commit 6134c04

Browse files
committed
Re-add dependencies required by mbi-pdc to work
Also make PDC fail if no MOJOs were discrovered to protect against dependency removal in the future.
1 parent bc4ed91 commit 6134c04

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

mbi/pdc/src/org/fedoraproject/mbi/tool/pdc/PdcTool.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ public void execute()
101101
container.dispose();
102102
}
103103

104+
if ( pluginDescriptor.getMojos().isEmpty() )
105+
{
106+
throw new RuntimeException( "No MOJOs were discovered by PDC for module " + getModule().getName() );
107+
}
108+
104109
PluginDescriptorFilesGenerator generator = new PluginDescriptorFilesGenerator();
105110
generator.execute( getClassesDir().resolve( "META-INF/maven" ).toFile(), request );
106111
}

project/mbi.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<dependency>plexus-utils</dependency>
8888
<dependency>sisu-plexus</dependency>
8989
<dependency>plexus-classworlds</dependency>
90+
<dependency>maven-resolver</dependency>
9091
<dependency>sisu-inject</dependency>
9192
<dependency>guice</dependency>
9293
<dependency>injection-api</dependency>
@@ -95,14 +96,21 @@
9596
<dependency>plexus-interpolation</dependency>
9697
<dependency>slf4j</dependency>
9798
<dependency>commons-lang</dependency>
99+
<dependency>asm</dependency>
100+
<dependency>asm-util</dependency>
98101
<dependency>maven-core</dependency>
99102
<dependency>maven-plugin-api</dependency>
100103
<dependency>maven-model</dependency>
101104
<dependency>maven-model-builder</dependency>
102105
<dependency>maven-resolver-provider</dependency>
103106
<dependency>maven-builder-support</dependency>
107+
<dependency>maven-repository-metadata</dependency>
104108
<dependency>maven-artifact</dependency>
109+
<dependency>maven-settings</dependency>
110+
<dependency>qdox</dependency>
111+
<dependency>plexus-archiver</dependency>
105112
<dependency>plexus-io</dependency>
113+
<dependency>jsoup</dependency>
106114
<build>
107115
<compiler>
108116
<addSourceRoot>src</addSourceRoot>

0 commit comments

Comments
 (0)