You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Andrew E. Davidson" <an...@apple.com> on 2013/12/11 23:57:07 UTC
how to run compile and packaging before test?
Hi
my unit test require I a *.tar.gz. The *.tar.gz needs to include the 3rd party dependencies and the projects jar file artifact.
I tried using an assembly and setting the phase, so it will run before the unit tests run, how ever my project artifact has not been packaged yet
Any comments or suggestions would be greatly appreciated
Andy
$ mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 05:51:28-0800)
from my pom.xml
<plugin>
<!-- The assembly to builds the topology tarball we install on the Athena
platform http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.html
http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>createTarball-assembly</id>
<!-- we can not use package, local unit test will not run eclipse complains
about process-test-classes <phase>process-test-classes</phase> -->
<phase>process-test-classes</phase>
<goals>
<goal>single</goal>
</goals>
<inherited>false</inherited>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor> src/createTarballAssembly.xml</descriptor>
</descriptors>
<finalName>${project.build.finalName}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
here is my assembly file
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<!-- ref: http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.html
http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html -->
<id>createTarball-assembly</id>
<formats>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<includes>
<include>${project.build.directory}/${project.build.finalName}</include>
<include>aid-athena-common</include>
</includes>
<useProjectArtifact>true</useProjectArtifact>
<unpack>false</unpack>
<scope>runtime</scope>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
<fileSets>
<!--
<fileSet>
<directory>target/classes</directory>
<outputDirectory>lib</outputDirectory>
<includes>
< ! - -
<include>vela.properties</include>
<include>application.properties</include>
<include>rspscheduler.properties</include>
- - >
</includes>
</fileSet>
-->
<!--
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>${project.build.finalName}</include>
</includes>
</fileSet>
-->
</fileSets>
</assembly>
Re: how to run compile and packaging before test?
Posted by Ron Wheeler <rw...@artifact-software.com>.
Malte,
Great points.
File a few JIRA issues describing the problems that you are finding.
That way they will get on the list of things to do.
I think that you might find some of the books are free in their
electronic formats but are not free if you want paper.
Ron
On 13/12/2013 5:34 AM, Malte Skoruppa wrote:
>
>>> Meanwhile, one doesn't necessarily have to buy a book to learn about
>>> the
>>> Maven lifecycle. This is also explained on the website:
>>> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>>>
>> Yes, but it doesn't go into enough details.
>>
>> The *free* books do.
>
> This actually surprised me. Free?
> Looking at the "Books and Resources" page more closely, I found but
> *one* book that is free, namely the "Better Builds with Maven" (2006,
> covers Maven 2.0.4 - i.e., rather old).
> For all the other books, there are Amazon (and similar) links.
>
> If these other books are also freely available, this should certainly
> be put forward more clearly on the page, with appropriate links.
>
> Apart from the books, the "Books and Resources" page links to a
> plethora of articles on this and that about Maven. But that is not
> what you'd call a structured introduction to Maven, let alone a
> "book". (Well, at least, that's not where I'd go digging if I wanted
> to find out more about, say, the build lifecycle. I'd go to the Guides
> index in that case. At least that's sorted by category.)
>
> On a sidenote, I also noticed that the page links to "JavaBlackBelt's
> Maven Exam" on javablackbelt.com under "Miscellaneous on Maven".
> However, javablackbelt.com does not exist anymore [1], and the "Maven
> Exam" link is dead. [2]
>
> [1] http://en.wikipedia.org/wiki/Javablackbelt
> [2]
> http://www.javablackbelt.com/QuestionnaireDefDisplay.wwa?questPublicId=01559
>
> ** <http://www.maestrodev.com/better-build-maven>
>
--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by Manfred Moser <ma...@simpligility.com>.
The link to the free html and pdf books is now
http://books.sonatype.com
These books are cc licensed and we do take pull requests of enhancements.
The source is at
https://github.com/sonatype/maven-reference-en
https://github.com/sonatype/maven-example-en
I have created a patch for the Maven site that fixes the links and
attached it to
https://jira.codehaus.org/browse/MNGSITE-194
Feel free to apply the patch and push a new site out. Also let me know if
you need anything else so that the patch can be applied.
Regards
manfred
>> However, the http link to the book on sonatype.com is dead. It should be
>> updated.
>>
>
> Hm, ok. I asked Sonatype some time ago to fix that. I'll remind them.
>
> /Anders
>
>
>
>>
>> It would also be helpful for users who scan that page if the free books
>> were somehow better visually highlighted. Like a big green button that
>> says
>> "Free!" beside the corresponding book or whatever.
>>
>>
>>
>> On 12/13/2013 11:34 AM, Malte Skoruppa wrote:
>>
>>>
>>> Meanwhile, one doesn't necessarily have to buy a book to learn about
>>> the
>>>>> Maven lifecycle. This is also explained on the website:
>>>>> http://maven.apache.org/guides/introduction/
>>>>> introduction-to-the-lifecycle.html
>>>>>
>>>> Yes, but it doesn't go into enough details.
>>>>
>>>> The *free* books do.
>>>>
>>>
>>> This actually surprised me. Free?
>>> Looking at the "Books and Resources" page more closely, I found but
>>> *one*
>>> book that is free, namely the "Better Builds with Maven" (2006, covers
>>> Maven 2.0.4 - i.e., rather old).
>>> For all the other books, there are Amazon (and similar) links.
>>>
>>> If these other books are also freely available, this should certainly
>>> be
>>> put forward more clearly on the page, with appropriate links.
>>>
>>> Apart from the books, the "Books and Resources" page links to a
>>> plethora
>>> of articles on this and that about Maven. But that is not what you'd
>>> call a
>>> structured introduction to Maven, let alone a "book". (Well, at least,
>>> that's not where I'd go digging if I wanted to find out more about,
>>> say,
>>> the build lifecycle. I'd go to the Guides index in that case. At least
>>> that's sorted by category.)
>>>
>>> On a sidenote, I also noticed that the page links to "JavaBlackBelt's
>>> Maven Exam" on javablackbelt.com under "Miscellaneous on Maven".
>>> However, javablackbelt.com does not exist anymore [1], and the "Maven
>>> Exam" link is dead. [2]
>>>
>>> [1] http://en.wikipedia.org/wiki/Javablackbelt
>>> [2] http://www.javablackbelt.com/QuestionnaireDefDisplay.wwa?
>>> questPublicId=01559
>>>
>>> ** <http://www.maestrodev.com/better-build-maven>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by Anders Hammar <an...@hammar.net>.
> However, the http link to the book on sonatype.com is dead. It should be
> updated.
>
Hm, ok. I asked Sonatype some time ago to fix that. I'll remind them.
/Anders
>
> It would also be helpful for users who scan that page if the free books
> were somehow better visually highlighted. Like a big green button that says
> "Free!" beside the corresponding book or whatever.
>
>
>
> On 12/13/2013 11:34 AM, Malte Skoruppa wrote:
>
>>
>> Meanwhile, one doesn't necessarily have to buy a book to learn about the
>>>> Maven lifecycle. This is also explained on the website:
>>>> http://maven.apache.org/guides/introduction/
>>>> introduction-to-the-lifecycle.html
>>>>
>>> Yes, but it doesn't go into enough details.
>>>
>>> The *free* books do.
>>>
>>
>> This actually surprised me. Free?
>> Looking at the "Books and Resources" page more closely, I found but *one*
>> book that is free, namely the "Better Builds with Maven" (2006, covers
>> Maven 2.0.4 - i.e., rather old).
>> For all the other books, there are Amazon (and similar) links.
>>
>> If these other books are also freely available, this should certainly be
>> put forward more clearly on the page, with appropriate links.
>>
>> Apart from the books, the "Books and Resources" page links to a plethora
>> of articles on this and that about Maven. But that is not what you'd call a
>> structured introduction to Maven, let alone a "book". (Well, at least,
>> that's not where I'd go digging if I wanted to find out more about, say,
>> the build lifecycle. I'd go to the Guides index in that case. At least
>> that's sorted by category.)
>>
>> On a sidenote, I also noticed that the page links to "JavaBlackBelt's
>> Maven Exam" on javablackbelt.com under "Miscellaneous on Maven".
>> However, javablackbelt.com does not exist anymore [1], and the "Maven
>> Exam" link is dead. [2]
>>
>> [1] http://en.wikipedia.org/wiki/Javablackbelt
>> [2] http://www.javablackbelt.com/QuestionnaireDefDisplay.wwa?
>> questPublicId=01559
>>
>> ** <http://www.maestrodev.com/better-build-maven>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: how to run compile and packaging before test?
Posted by Malte Skoruppa <sk...@cs.uni-saarland.de>.
Oh, and I forgot to mention that "Maven: The Definitive Guide" book
which apparently is also free, although you can also buy a printed version.
However, the http link to the book on sonatype.com is dead. It should be
updated.
It would also be helpful for users who scan that page if the free books
were somehow better visually highlighted. Like a big green button that
says "Free!" beside the corresponding book or whatever.
On 12/13/2013 11:34 AM, Malte Skoruppa wrote:
>
>>> Meanwhile, one doesn't necessarily have to buy a book to learn about
>>> the
>>> Maven lifecycle. This is also explained on the website:
>>> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>>>
>> Yes, but it doesn't go into enough details.
>>
>> The *free* books do.
>
> This actually surprised me. Free?
> Looking at the "Books and Resources" page more closely, I found but
> *one* book that is free, namely the "Better Builds with Maven" (2006,
> covers Maven 2.0.4 - i.e., rather old).
> For all the other books, there are Amazon (and similar) links.
>
> If these other books are also freely available, this should certainly
> be put forward more clearly on the page, with appropriate links.
>
> Apart from the books, the "Books and Resources" page links to a
> plethora of articles on this and that about Maven. But that is not
> what you'd call a structured introduction to Maven, let alone a
> "book". (Well, at least, that's not where I'd go digging if I wanted
> to find out more about, say, the build lifecycle. I'd go to the Guides
> index in that case. At least that's sorted by category.)
>
> On a sidenote, I also noticed that the page links to "JavaBlackBelt's
> Maven Exam" on javablackbelt.com under "Miscellaneous on Maven".
> However, javablackbelt.com does not exist anymore [1], and the "Maven
> Exam" link is dead. [2]
>
> [1] http://en.wikipedia.org/wiki/Javablackbelt
> [2]
> http://www.javablackbelt.com/QuestionnaireDefDisplay.wwa?questPublicId=01559
>
> ** <http://www.maestrodev.com/better-build-maven>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by Malte Skoruppa <sk...@cs.uni-saarland.de>.
>> Meanwhile, one doesn't necessarily have to buy a book to learn about the
>> Maven lifecycle. This is also explained on the website:
>> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> Yes, but it doesn't go into enough details.
>
> The *free* books do.
This actually surprised me. Free?
Looking at the "Books and Resources" page more closely, I found but
*one* book that is free, namely the "Better Builds with Maven" (2006,
covers Maven 2.0.4 - i.e., rather old).
For all the other books, there are Amazon (and similar) links.
If these other books are also freely available, this should certainly be
put forward more clearly on the page, with appropriate links.
Apart from the books, the "Books and Resources" page links to a plethora
of articles on this and that about Maven. But that is not what you'd
call a structured introduction to Maven, let alone a "book". (Well, at
least, that's not where I'd go digging if I wanted to find out more
about, say, the build lifecycle. I'd go to the Guides index in that
case. At least that's sorted by category.)
On a sidenote, I also noticed that the page links to "JavaBlackBelt's
Maven Exam" on javablackbelt.com under "Miscellaneous on Maven".
However, javablackbelt.com does not exist anymore [1], and the "Maven
Exam" link is dead. [2]
[1] http://en.wikipedia.org/wiki/Javablackbelt
[2]
http://www.javablackbelt.com/QuestionnaireDefDisplay.wwa?questPublicId=01559
** <http://www.maestrodev.com/better-build-maven>
Re: how to run compile and packaging before test?
Posted by Barrie Treloar <ba...@gmail.com>.
On 13 December 2013 19:48, Malte Skoruppa <sk...@cs.uni-saarland.de> wrote:
>> Just scanning http://maven.apache.org and its not obvious by the
>> content on the page where the books are.
>>
>> Its over in the menu on the left under Documentation > Books and Resources
>>
>> I wonder if we should add a section under "Learning about Maven".
>>
>> When you might have gone looking, where would you expect to find this
>> info?
>>
>
> I actually only learned about the books from this mailing list. A new user
> won't usually read the entire menu. They will just scan it.
> To get started with Maven on the website, I only read the documentation
> links under "User Centre". I think it would be a good idea if at least the
> "Getting Started Guide" had one sentence at the very end that went something
> like "To find out more about Maven, check out the <a href=...>books</a>!"
> Then, at least everybody who checks out the Getting Started Guide at least
> KNOWS that there are books ;-)
Ok, I'll get around to patching that.
> Meanwhile, one doesn't necessarily have to buy a book to learn about the
> Maven lifecycle. This is also explained on the website:
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Yes, but it doesn't go into enough details.
The *free* books do.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by Malte Skoruppa <sk...@cs.uni-saarland.de>.
> Just scanning http://maven.apache.org and its not obvious by the
> content on the page where the books are.
>
> Its over in the menu on the left under Documentation > Books and Resources
>
> I wonder if we should add a section under "Learning about Maven".
>
> When you might have gone looking, where would you expect to find this info?
>
I actually only learned about the books from this mailing list. A new
user won't usually read the entire menu. They will just scan it.
To get started with Maven on the website, I only read the documentation
links under "User Centre". I think it would be a good idea if at least
the "Getting Started Guide" had one sentence at the very end that went
something like "To find out more about Maven, check out the <a
href=...>books</a>!" Then, at least everybody who checks out the Getting
Started Guide at least KNOWS that there are books ;-)
Meanwhile, one doesn't necessarily have to buy a book to learn about the
Maven lifecycle. This is also explained on the website:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
A link to the Guides index (guides/index.html) at the end of the Getting
Started Guide would also be a good idea, for the same reasons.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by Barrie Treloar <ba...@gmail.com>.
On 13 December 2013 07:57, Andrew E. Davidson <an...@apple.com> wrote:
> many thanks
>
> I did not know about the book
Just scanning http://maven.apache.org and its not obvious by the
content on the page where the books are.
Its over in the menu on the left under Documentation > Books and Resources
I wonder if we should add a section under "Learning about Maven".
When you might have gone looking, where would you expect to find this info?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by "Andrew E. Davidson" <an...@apple.com>.
many thanks
I did not know about the book
Andy
On Dec 11, 2013, at 3:58 PM, Barrie Treloar <ba...@gmail.com> wrote:
> Please have a look at the freely available books at
> http://maven.apache.org/articles.html
>
> These will help you understand the Maven lifecycle and what you should
> be doing in each phase.
>
> As Roy points out, you are doing integration tests.
> You can also pull these out into their own module so they can be run
> independently of the artifact being built.
> This is useful if you are just writing more integration tests, as you
> dont need to rebuilt the artifact being tested.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by Barrie Treloar <ba...@gmail.com>.
Please have a look at the freely available books at
http://maven.apache.org/articles.html
These will help you understand the Maven lifecycle and what you should
be doing in each phase.
As Roy points out, you are doing integration tests.
You can also pull these out into their own module so they can be run
independently of the artifact being built.
This is useful if you are just writing more integration tests, as you
dont need to rebuilt the artifact being tested.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: how to run compile and packaging before test?
Posted by "Andrew E. Davidson" <an...@apple.com>.
Hi Roy
we use
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
is this a problem?
Andy
On Dec 11, 2013, at 3:19 PM, "Lyons, Roy" <Ro...@cmegroup.com> wrote:
> I have a feeling that you aren't running unit tests, but instead
> integration tests...
>
> http://maven.apache.org/surefire/maven-failsafe-plugin/ is what you want!
> that happens after the package phase.
>
> On 12/11/13 4:57 PM, "Andrew E. Davidson" <an...@apple.com> wrote:
>
>>
>> Hi
>>
>> my unit test require I a *.tar.gz. The *.tar.gz needs to include the 3rd
>> party dependencies and the projects jar file artifact.
>>
>> I tried using an assembly and setting the phase, so it will run before
>> the unit tests run, how ever my project artifact has not been packaged yet
>>
>> Any comments or suggestions would be greatly appreciated
>>
>> Andy
>>
>> $ mvn -version
>> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
>> 05:51:28-0800)
>>
>> from my pom.xml
>>
>> <plugin>
>> <!-- The assembly to builds the topology tarball we install on the
>> Athena
>> platform
>> http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.ht
>> ml
>> http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.htm
>> l -->
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-assembly-plugin</artifactId>
>> <version>2.4</version>
>> <executions>
>> <execution>
>> <id>createTarball-assembly</id>
>> <!-- we can not use package, local unit test will not run eclipse
>> complains
>> about process-test-classes <phase>process-test-classes</phase> -->
>> <phase>process-test-classes</phase>
>> <goals>
>> <goal>single</goal>
>> </goals>
>> <inherited>false</inherited>
>> </execution>
>> </executions>
>> <configuration>
>> <descriptors>
>> <descriptor> src/createTarballAssembly.xml</descriptor>
>> </descriptors>
>> <finalName>${project.build.finalName}</finalName>
>> <appendAssemblyId>false</appendAssemblyId>
>> </configuration>
>> </plugin>
>>
>>
>>
>> here is my assembly file
>>
>> <assembly
>> xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1
>> .0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin
>> /assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
>>
>> <!-- ref:
>> http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.ht
>> ml
>> http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html
>> -->
>>
>> <id>createTarball-assembly</id>
>> <formats>
>> <format>tar.gz</format>
>> </formats>
>> <includeBaseDirectory>false</includeBaseDirectory>
>> <dependencySets>
>> <dependencySet>
>> <includes>
>> <include>${project.build.directory}/${project.build.finalName}</includ
>> e>
>> <include>aid-athena-common</include>
>> </includes>
>> <useProjectArtifact>true</useProjectArtifact>
>> <unpack>false</unpack>
>> <scope>runtime</scope>
>> <outputDirectory>lib</outputDirectory>
>> </dependencySet>
>> </dependencySets>
>> <fileSets>
>> <!--
>> <fileSet>
>> <directory>target/classes</directory>
>> <outputDirectory>lib</outputDirectory>
>> <includes>
>> < ! - -
>> <include>vela.properties</include>
>> <include>application.properties</include>
>> <include>rspscheduler.properties</include>
>> - - >
>> </includes>
>> </fileSet>
>> -->
>> <!--
>> <fileSet>
>> <directory>${project.build.directory}</directory>
>> <outputDirectory>lib</outputDirectory>
>> <includes>
>> <include>${project.build.finalName}</include>
>> </includes>
>> </fileSet>
>> -->
>> </fileSets>
>> </assembly>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: how to run compile and packaging before test?
Posted by "Lyons, Roy" <Ro...@cmegroup.com>.
I have a feeling that you aren't running unit tests, but instead
integration tests...
http://maven.apache.org/surefire/maven-failsafe-plugin/ is what you want!
that happens after the package phase.
On 12/11/13 4:57 PM, "Andrew E. Davidson" <an...@apple.com> wrote:
>
>Hi
>
>my unit test require I a *.tar.gz. The *.tar.gz needs to include the 3rd
>party dependencies and the projects jar file artifact.
>
>I tried using an assembly and setting the phase, so it will run before
>the unit tests run, how ever my project artifact has not been packaged yet
>
>Any comments or suggestions would be greatly appreciated
>
>Andy
>
>$ mvn -version
>Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
>05:51:28-0800)
>
>from my pom.xml
>
> <plugin>
> <!-- The assembly to builds the topology tarball we install on the
>Athena
> platform
>http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.ht
>ml
> http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.htm
>l -->
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-assembly-plugin</artifactId>
> <version>2.4</version>
> <executions>
> <execution>
> <id>createTarball-assembly</id>
> <!-- we can not use package, local unit test will not run eclipse
>complains
> about process-test-classes <phase>process-test-classes</phase> -->
> <phase>process-test-classes</phase>
> <goals>
> <goal>single</goal>
> </goals>
> <inherited>false</inherited>
> </execution>
> </executions>
> <configuration>
> <descriptors>
> <descriptor> src/createTarballAssembly.xml</descriptor>
> </descriptors>
> <finalName>${project.build.finalName}</finalName>
> <appendAssemblyId>false</appendAssemblyId>
> </configuration>
> </plugin>
>
>
>
>here is my assembly file
>
><assembly
> xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1
>.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin
>/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
>
> <!-- ref:
>http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.ht
>ml
> http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html
>-->
>
> <id>createTarball-assembly</id>
> <formats>
> <format>tar.gz</format>
> </formats>
> <includeBaseDirectory>false</includeBaseDirectory>
> <dependencySets>
> <dependencySet>
> <includes>
> <include>${project.build.directory}/${project.build.finalName}</includ
>e>
> <include>aid-athena-common</include>
> </includes>
> <useProjectArtifact>true</useProjectArtifact>
> <unpack>false</unpack>
> <scope>runtime</scope>
> <outputDirectory>lib</outputDirectory>
> </dependencySet>
> </dependencySets>
> <fileSets>
> <!--
> <fileSet>
> <directory>target/classes</directory>
> <outputDirectory>lib</outputDirectory>
> <includes>
> < ! - -
> <include>vela.properties</include>
> <include>application.properties</include>
> <include>rspscheduler.properties</include>
> - - >
> </includes>
> </fileSet>
> -->
> <!--
> <fileSet>
> <directory>${project.build.directory}</directory>
> <outputDirectory>lib</outputDirectory>
> <includes>
> <include>${project.build.finalName}</include>
> </includes>
> </fileSet>
> -->
> </fileSets>
></assembly>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org