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:
Mark Payne 2015-01-23 12:12:30 -05:00
commit cd3094d54f
9 changed files with 55 additions and 46 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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;

View File

@ -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;

View File

@ -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>