[build] generate connector yaml config only when building a release
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distro-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <attach>true</attach>
+ <tarLongFileMode>posix</tarLongFileMode>
+ <finalName>apache-pulsar-io-connectors-${project.version}</finalName>
+ <descriptors>
+ <descriptor>src/assemble/io.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>generator-connector-config</id>
+ <activation>
+ <property>
+ <name>release</name>
+ </property>
+ </activation>
<build>
<plugins>
<plugin>
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>distro-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <attach>true</attach>
- <tarLongFileMode>posix</tarLongFileMode>
- <finalName>apache-pulsar-io-connectors-${project.version}</finalName>
- <descriptors>
- <descriptor>src/assemble/io.xml</descriptor>
- </descriptors>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
+ </profile>
+ </profiles>
+
</project>
