You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fy <fy...@gmail.cn> on 2007/01/05 10:41:56 UTC

how deploy a jar in the webapp?

Hi,
I created a webapp,The maven created the webapp.war when I executed mvn
package. now I want deploy some *.java (src\main\java\itms\dto\*.java) into
webapp.jar when I executed mvn package ,how I to do?
-- 
View this message in context: http://www.nabble.com/how-deploy-a-jar-in-the-webapp--tf2924643s177.html#a8175289
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how deploy a jar in the webapp?

Posted by kovalen pechaycaren <ko...@gmail.com>.
Let the packaging be 'jar', then use the maven-war-plugin to create a war.

Re: how deploy a jar in the webapp?

Posted by garbandi <ga...@yahoo.de>.
I'm still quite new to maven, so excuse if i'm wrong, but as far as i know,
maven deploys compiled java-classes as class-files into WEB-INF/classes. If
you really need your classes to be deployed as a jar file, i think you'll
have to create a separate jar-project and add this as a dependency to your
war-project.

hope that helps,
andi


fy wrote:
> 
> Hi,
> I created a webapp,The maven created the webapp.war when I executed mvn
> package. now I want deploy some *.java (src\main\java\itms\dto\*.java)
> into webapp.jar when I executed mvn package ,how I to do?
> 

-- 
View this message in context: http://www.nabble.com/how-deploy-a-jar-in-the-webapp--tf2924643s177.html#a8176681
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org