I'm using Maven 3.0.3. I have a project that inherits from a parent …

```
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.myco.util.ant</groupId>
    <artifactId>selenium-framework</artifactId>
    <packaging>jar</packaging>
    <name>Myco Selenium Utils</name>
    <parent>
            <groupId>com.nna</groupId>
            <artifactId>parent</artifactId>
            <version>1.2-SNAPSHOT</version>
            <relativePath>../parent</relativePath>
    </parent>

```

In my parent pom I have the below profile. However, I only want this profile to be active if someone is doing a build on the parent pom, as opposed to one of its children. Does anyone know how I can adjust the below so that it won't be activated if someone is doing a build of a child project?

```
            <profile>
                    <id>deploy-snapshot</id>
                    <build>
                            <plugins>
                                    <plugin>
                                            <artifactId>maven-antrun-plugin</artifactId>
                                            <version>1.6</version>
                                            <executions>
                                                    <execution>
                                                            <phase>deploy</phase>
                                                            <configuration>
                                                                    <target>
                                                                            <condition property="is-release">
                                                                                    <not>
                                                                                            <contains string="${project.version}" substring="SNAPSHOT" />
                                                                                    </not>
                                                                            </condition>
                                                                            <fail if="is-release" message="You can only deploy snapshot versions of this project." />
                                                                    </target>
                                                            </configuration>
                                                            <goals>
                                                                    <goal>run</goal>
                                                            </goals>
                                                    </execution>
                                            </executions>
                                    </plugin>
                            </plugins>
                    </build>
                    <activation>
                            <activeByDefault>true</activeByDefault>
                    </activation>
            </profile>

```

Thanks, - Dave