For the first task, I think that this is what is done for Apache projects nowadays. Either someone active on such a project could fill in the blanks or you go have a look in this pom: http://repo1.maven.org/maven2/org/apache/apache/10/apache-10.pom Look for the profile with id "apache-release".
/Anders On Wed, Sep 28, 2011 at 20:02, Jason Winnebeck <[email protected]> wrote: > I have an existing Maven project which deploys currently source, javadocs, > and a jar. I realize now that the sources jar is not a real source of the > project. I would like to deploy: > > 1. A zip archive of the svn export of the tag created in > maven-release-plugin:prepare during release:perform > 2. A single file as an artifact, but renamed (for example ./file.docx to > target/artifactId-version-notes.docx), during any mvn package operation. > > For the first task maven-assembly-plugin and maven-resources-plugin didn't > seem appropriate. For the second task I know I can use > maven-build-helper-plugin attachArtifact but it won't copy the file into > target as far as I know or rename it. Assembly plugin can't be used because > I'm not creating an archive, and resources plugin only appears to work on > directories and not support renaming. > > Right now I perform both tasks manually, but then the artifacts are not > uploaded to the repository. Right now I take svn export of target/checkout > after release:perform runs, and make a zip, and copy+rename the file.docx > manually and manually bundle those into my real release. > > Is there a way to automate this with Maven? > > Jason Winnebeck > Systems Modernization and Sustainment Center > Rochester Institute of Technology > CIMS 78-1220 > 133 Lomb Memorial Drive > Rochester, New York, 14623-5608 > 585-475-2052 > [email protected] > > CONFIDENTIALITY NOTE: > The information transmitted, including attachments, is intended only for the > person(s) or entity to which it is addressed and may contain confidential > and/or privileged material. Any review, retransmission, dissemination or > other use of, or taking of any action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. If you > received this transmission in error, please contact the sender and destroy > any copies of this information. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
