This is great Mark.
Plugins like this would generally be hosted by the Codehaus Mojo project:
http://mojo.codehaus.org/
Wayne
1/29/07, mbernardinis (AT) wardour (DOT) com.au <mbernardinis (AT) wardour (DOT) com.auwrote:
As promised, here is the configuration for a JPF plugin project to be
built by Maven.
I plan on creating an actual create:archetype to build a default project
structure for JPF plugin projects but I need to read a little more into
Maven to understand how to do that.
Let me know if you need any info on getting it to setup I still have
not automated the execution of my application but I will get there I
plan on having a JPF archetype for both the Application core component
that gets loaded up by the JPF bootstrapper and a standard JPF plugin
component. I'll keep you posted (depending on how my work load is).
Mark
PM.xml (root of project)
--
<project xmlns=""
xmlns:xsi=""
xsi:schemaLocation="
">
<modelVersion>4.0.0</modelVersion>
<groupId>groupid</groupId>
<artifactId>artifactid</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHT</version>
<name>modname</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jpf</groupId>
<artifactId>jpf-boot</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jpf</groupId>
<artifactId>jpf</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/src.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</project>
--
src.xml (located in src\assembly)
<assembly>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>classes</outputDirectory>
</fileSet>
<fileSet>
<directory>src/main/config</directory>
<outputDirectory></outputDirectory>
</fileSet>
</fileSets>
</assembly>
--
That sounds great. It would be good to perhaps send your configuration
as a response to this email for the people who search for it in the
mailing list archives, but then also add this to the Maven Wiki where
other things like this are documented.
We're happy to help with this if you just ask for it!
Wayne
1/28/07, Mark Bernardinis <mbernardinis (AT) wardour (DOT) com.auwrote:
>Will do, when I get home tonight I will post my configuration as is. My
>plan is to create a generic PM module so that I can create a plugin
>project for the JPF framework but I am a little off at the moment
>still
>need to read the documentation on how to do that.
>>
>Mark
>>
>Perhaps you'll share your configuration, so other people looking for
>JPF files can benefit from your work?
>>
>Wayne
>>
>1/28/07, Mark Bernardinis <mbernardinis (AT) wardour (DOT) com.auwrote:
>>I got it working by using fileSet instead of file (even though I only
>>wanted one file to be included) and it works a treat. Thanks for all
>the
>>help.
>>>
>>>
>>Try using ${project.basedir} relative to where you want this
>packaged
>>relative to your binary.
>>>
>>>
>>This message (including any attachments) contains confidential
>>information
>>intended for a specific individual and purpose, and is protected by
>>law.
>>If you are not the intended recipient, you should delete this
>message.
>>>
>>>
>>Any disclosure, copying, or distribution of this message, or the
>>taking of
>>any action based on it, is strictly prohibited. [v.E.1]
>>>
>>>
>>>
>>>
>>
>>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>>
>>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>>
>>
>>
>
>To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
>For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>>
>>
>
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
>
>
>
>
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
--
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org