Hi,

I build some runable distribution files (zip, tar.gz etc.).

I didn't solved it by attaching wagin-maven-plugin to a lifecycle. I tried 
deploy and install, but nothing happens, it seamed that wagin-maven-plugin 
didn't start. So I've solved it "hardcoded":

        --- SNIP ---
<build>
  <plugins>
...
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>wagon-maven-plugin</artifactId>
      <version>1.0-beta-1</version>
      <configuration>
        <fromDir>target</fromDir>
        <includes>*.zip,*.jar,*.tar.gz,*.tar.bz2</includes>
        <!-- <excludes>pom.xml</excludes> -->
        <url>sftp://${sfUsername}:${[email protected]/</url>
        <toDir>${sfFrsPath}</toDir>
      </configuration>
    </plugin>
...
    <plugin>
      <artifactId>maven-release-plugin</artifactId>
      <configuration>
        <tagBase>https://.../tags</tagBase>
        <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
        <goals>assembly:assembly site-deploy wagon:upload</goals>
        <username>${sfUsername}</username>
        <password>${sfPassword}</password>
      </configuration>
    </plugin>
...
  </plugins>
</build>
        --- SNAP ---    

I would prefere to use attaching to lifecycles and get different executions, 
so I've the option to use different wagon-maven-plugin actions.

If you have some idea, I would like to test them.

On Monday 19 January 2009 06:55:21 Dan Tran wrote:
> Use build-helper-maven-plugin to attached your specific files to
> maven, so that they can be deploy with the rest of other built
> artifacts
>
> However, if you want to upload your files to somewhere else rather
> maven repo, then use wagin-maven-plugin at deploy phase
>
>
> -D
>
> On Sat, Jan 17, 2009 at 6:56 AM, Michael Decker <[email protected]> 
wrote:
> >        Hi,
> >
> > I want to modify my "release:perform" goal, so it will automatically
> > upload my assemblies to sourceforge, so I can easily provide them on the
> > sourceforge download page.
> >
> > Yet I can build the assemblies and upload the site on using
> > "release:perform" by using this:
> >        --- SNIP ---
> >    <plugin>
> >      <artifactId>maven-release-plugin</artifactId>
> >      <configuration>
> >        <tagBase>https:....</tagBase>
> >        <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
> >        <goals>assembly:assembly site-deploy</goals>
> >      </configuration>
> >    </plugin>
> >  </plugins>
> > </build>
> >        --- SNAP ---
> >
> > So I wonder, how I can perform uploading of four files.
> >
> > There is Maven Wagon without any documentation:
> > http://maven.apache.org/wagon/index.html
> >
> > And I found Maven Upload Plugin, that can upload a whole directory, but I
> > want only four files saved in target directory:
> > http://docs.atlassian.com/maven-upload-plugin/1.1/usage.html
> >
> > Perhaps someone can me help me on this.
> >
> > Thanks a lot.
> >
> > With regards

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to