Did you run "mvn clean package" to delete the *.class files, or simply
"mvn package"?

Wayne

On 7/31/07, Eugeny N Dzhurinsky <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 31, 2007 at 08:40:14AM -0400, Ian Springer wrote:
> > Eugeny N Dzhurinsky wrote:
> >> Hello!
> >>
> >> Could somebody please explain how is it possible to create WAR file from
> >> WEB
> >> application, but instead of having Java sources compiled and placed into
> >> WEB-INF/classes - package those classes as a JAR file and place it into
> >> WEB-INF/lib/?
> >>
> > <archiveClasses>true</archiveClasses> in the plugin config.
>
> For some reason it doesn't work:
>
>
>    <build>
>        <plugins>
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-compiler-plugin</artifactId>
>                <configuration>
>                    <source>1.5</source>
>                    <target>1.5</target>
>                </configuration>
>            </plugin>
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-war-plugin</artifactId>
>                <version>2.0</version>
>                <configuration>
>                    <archiveClasses>true</archiveClasses>
>                </configuration>
>            </plugin>
>        </plugins>
>    </build>
>
> the WAR file still contains WEB-INF/classes directory with set of *.class
> files, and no application JAR file is generated in WEB-INF/lib
>
> --
> Eugene N Dzhurinsky
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to