mirror of https://github.com/apache/nifi.git
NIFI-272: Updated pom.xml to be more consistent by removing 'name' tag and not including the default 'properties' tag
This commit is contained in:
commit
cd3094d54f
|
@ -22,5 +22,28 @@
|
|||
<artifactId>nifi-maven-archetypes</artifactId>
|
||||
<version>0.0.1-incubating-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>nifi-processor-bundle-archetype</artifactId>
|
||||
<packaging>maven-archetype</packaging>
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.archetype</groupId>
|
||||
<artifactId>archetype-packaging</artifactId>
|
||||
<version>2.2</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-archetype-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -13,42 +13,28 @@
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<archetype-descriptor name="nifi-${artifactId}-bundle">
|
||||
<archetype-descriptor name="${artifactId}">
|
||||
<requiredProperties>
|
||||
<requiredProperty key="artifactBaseName" />
|
||||
<requiredProperty key="nifiVersion" >
|
||||
<defaultValue>0.0.1-incubating-SNAPSHOT</defaultValue>
|
||||
</requiredProperty>
|
||||
</requiredProperties>
|
||||
<modules>
|
||||
<module id="nifi-${rootArtifactId}-processors" dir="nifi-__rootArtifactId__-processors" name="nifi-${rootArtifactId}-processors">
|
||||
<fileSets>
|
||||
<fileSet filtered="true" packaged="false" encoding="UTF-8">
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
<directory>nifi-__artifactBaseName__-processors</directory>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet encoding="UTF-8">
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.Processor</include>
|
||||
<include>**/index.html</include>
|
||||
</includes>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>nifi-__artifactBaseName__-processors/src/main/java</directory>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" packaged="true" encoding="UTF-8">
|
||||
<directory>nifi-__artifactBaseName__-processors/src/test/java</directory>
|
||||
</fileSet>
|
||||
<fileSet filtered="true" packaged="false" encoding="UTF-8">
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**/*.java</include>
|
||||
</includes>
|
||||
<directory>nifi-__artifactBaseName__-nar</directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</module>
|
||||
<module id="nifi-${rootArtifactId}-nar" dir="nifi-__rootArtifactId__-nar" name="nifi-${rootArtifactId}-nar">
|
||||
<fileSets>
|
||||
<fileSet encoding="UTF-8">
|
||||
<directory></directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</module>
|
||||
</modules>
|
||||
</archetype-descriptor>
|
|
@ -18,18 +18,18 @@
|
|||
|
||||
<parent>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>nifi-${rootArtifactId}-bundle</artifactId>
|
||||
<artifactId>${rootArtifactId}</artifactId>
|
||||
<version>${version}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<artifactId>nifi-${artifactBaseName}-nar</artifactId>
|
||||
<version>${version}</version>
|
||||
<packaging>nar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>nifi-${rootArtifactId}-processors</artifactId>
|
||||
<artifactId>nifi-${artifactBaseName}-processors</artifactId>
|
||||
<version>${version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
|
@ -18,11 +18,11 @@
|
|||
|
||||
<parent>
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>nifi-${rootArtifactId}-bundle</artifactId>
|
||||
<artifactId>${rootArtifactId}</artifactId>
|
||||
<version>${version}</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<artifactId>nifi-${artifactBaseName}-processors</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.nifi.processors;
|
||||
package ${package};
|
||||
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
import org.apache.nifi.components.PropertyValue;
|
|
@ -12,4 +12,4 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
org.apache.nifi.processors.MyProcessor
|
||||
${package}.MyProcessor
|
|
@ -14,7 +14,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.nifi.processors;
|
||||
package ${package};
|
||||
|
||||
import org.apache.nifi.util.TestRunner;
|
||||
import org.apache.nifi.util.TestRunners;
|
|
@ -23,13 +23,13 @@
|
|||
</parent>
|
||||
|
||||
<groupId>${groupId}</groupId>
|
||||
<artifactId>nifi-${artifactId}-bundle</artifactId>
|
||||
<artifactId>${artifactId}</artifactId>
|
||||
<version>${version}</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<module>nifi-${rootArtifactId}-processors</module>
|
||||
<module>nifi-${rootArtifactId}-nar</module>
|
||||
<module>nifi-${artifactBaseName}-processors</module>
|
||||
<module>nifi-${artifactBaseName}-nar</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue