Sometimes my Talend Open Studio components have resources, but not Java sources (they are purely metadata components). I need to disable JAR file generation in this case.
I configured maven-jar-plugin this way:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <configuration> <forceCreation>false</forceCreation> <skipIfEmpty>true</skipIfEmpty> <useDefaultManifestFile>false</useDefaultManifestFile> </configuration> </plugin>
but I still get the $ {project.name} .jar file with pom.properties, pom.cml, a manifest, and an empty App.class file containing only "class {}"
Although I can disable all maven elements using this:
<archive> <addMavenDescriptor>false</addMavenDescriptor> </archive>
I am still getting a JAR with a manifest file inside it
Are there any configuration options that I configured incorrectly?
source share