Hi.

I am using the assembly plugin to create several distributables.  One of them 
is a tar file that includes some output created during the site phase.   I 
attached the assembly plugin to the site phase and it seemed to work just fine 
- in particular it would upload the output assembled file into the repo.  This 
behavior suddenly seemed to stop working today.   I am running the same set of 
commands (mvn clean deploy site-deploy) and the site deploy works fine, but my 
the assembled target is not getting uploaded (it does exist in the target 
directory).

Did something change in the last week?  Does anyone have a better 
recommendation?  

Here is how my pom looked:
.
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.1</version>
        <executions>
        .               
          <execution>
            <id>tutorial</id>
            <phase>site</phase>
            <goals>
              <goal>assembly</goal>
            </goals>
            <configuration>
              <descriptors>
                <descriptor>src/assembly/tutorial.xml</descriptor>
              </descriptors>
            </configuration>
          </execution>                
        </executions>
      </plugin>
.

What this used to do is execute the tutorial assembly plugin during the site 
phase.  Since the assembly would add the assembled file as an artifact, it 
would get uploaded into the repo during the site-deploy phase (exactly what I 
wanted).

Today I tried this strategy and it does not work.

I temporarily fixed it by changing the phase setting to be package.  But this 
doesn't really work, in the past I could run:

> mvn clean deploy site-deploy

or:

> mvn clean site-deploy deploy

Or even just:

> mvn clean site-deploy

Now that won't work.  To deploy properly, I *must* run site first because the 
tutorial build depends on the site having been built into the target.

So now it is imperative to run:

> mvn clean site-deploy deploy


What happened?  Anyone have any clues?

Thanks!

Taylor

Reply via email to