Hello,
Now, my requirement is following,
I want to transform
WAR
|--WEB-INF
|--classes
|--packages
to
WAR
|--WEB-INF
|--lib
|--artifact.jar
I'm trying maven-assembly-plugin.
I'm puzzled that when to execute the assembling action?
What's the strategy?
My maven-assmebly-plugin settings,
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>assembly</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>src/assembly/config.xml</descriptor>
</descriptors>
</configuration>
</plugin>
My assembly descriptor,
<assembly>
<id></id>
<formats>
<format>jar</format>
</formats>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>
target/${artifactId}/WEB-INF/lib
</outputDirectory>
<includes>
<include>*.*</include>
</includes>
</fileSet>
</fileSets>
</assembly>
a cup of Java, cheers!
Sha Jiang
franz see wrote:
>
> Good day to you, Sha Jiang,
>
> For archiving, you can use maven-assembly-plugin (see [1] for the released
> plugin documentation, and [2] for the staged unreleased plugin
> documentation)
>
> Cheers,
> Franz
>
> [1] http://maven.apache.org/plugins/maven-assembly-plugin/
> [2] http://people.apache.org/~epunzalan/maven-assembly-plugin/
>
>
> jiangshachina wrote:
>>
>> Maven put all of files(classes, jars, resources...) in a folder under
>> target directory firstly, and then archive them.
>> I think I can do some things at the action.
>> I may use Ant plugin/scripts to fit for my mind.
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> Alexandre Russel-2 wrote:
>>>
>>> On Sunday 05 November 2006 11:12, jiangshachina wrote:
>>>> Generally, in Web application project, the Java class files would be
>>>> put
>>>> into WEB-INF/classes folder.
>>>> Now, I want the classes to be archived and putted into WEB-INF/lib
>>>> folder.
>>>> And the classes should be classified and putted into different
>>>> sub-directories under WEB-INF/lib respectively.
>>>> For example, WEB-INF/lib/data/(some jars related to Database
>>>> operations),
>>>> WEB-INF/lib/user/(some jars related to user management), etc.
>>> then create a project for each lib and put them as dependencies of your
>>> war
>>> alex
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/no-classes%2C-but-lib--tf2577029s177.html#a7251755
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]