maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago Moreira (timba)" <tmoreira2...@gmail.com>
Subject Problems with release:prepare on the resolution of a dependency with "test" classifier
Date Mon, 26 Jan 2009 06:33:06 GMT
  Hi there,

  I have a multi module project and one of the sub modules produce two
artifacts: temp-1.2.3.jar and temp-1.2.3-*test*.jar the last one is built
using this configuration:

              <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

  This second artifact is referenced in another sub module as a compile
dependency. It works fine for all my development BUT it doesn't work when
I'm trying to release it. Because the release:prepare goal only executes the
"clean verify" goals not the install one.

  I configured the maven-release-plugin on the parent project as:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <preparationGoals>clean verify</preparationGoals>
                </configuration>
            </plugin>

  and on the sub module as:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <preparationGoals>install</preparationGoals>
                </configuration>
            </plugin>

  But still not working. Am I missing something?

 Cheers

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message