please take a short look at my last comment in MWAR-73

http://jira.codehaus.org/browse/MWAR-73

I patched the maven-war-plugin to also generate an
attached artifact with the jar-ed WEB-INF/classes if
you set archiveClasses=true.
This attached artifact may later be requested as
dependency in another pom.

If you find it usefull, then i will provide a patch in
jira.

best regards,
strub


--- Neeraj Bisht <[EMAIL PROTECTED]>
schrieb:

> hi Ronny
>       i tried both way and not able to install the
> jar or war
> actully it is installing jar but which is it
> installing is also wrong
> while at installing it show following message
> 
> Installing
>
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
> 1.0-SNAPSHOT.war to C:\Documents and
>
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\framework\dakwar\1.0-SNAPSHOT\dakwar-
> 1.0-SNAPSHOT.jar
> 
> On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]>
> wrote:
> >
> > Sorry, I do not have the answer for why this is
> not working. Maybe you
> > could try it the other way around?
> > Change your pom to hav packaging to war, and
> specify maven-jar-plugin
> > instead.
> >
> > We have more than one pom with packaging set to
> jar and at same time
> > using maven-jar-plugin spesifying test-jar goal
> and both jars installs
> > correct to our repository.
> >
> > -Ronny
> >
> > -----Opprinnelig melding-----
> > Fra: neeraj daffodil
> [mailto:[EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 09:40
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > i have simple pom which contain only one source
> and of this source i
> > want to make war and jar
> >
> > means
> > 1)  i have one source and genrate jar and war of
> same source
> >
> > my pom is like
> >
> > <project>
> > <modelVersion>4.0.0</modelVersion>
> > <groupId>com.daffodilwoods.framework</groupId>
> > <artifactId>dakwar</artifactId>
> > <version> 1.0-SNAPSHOT</version>
> > <packaging>jar</packaging>  <!-- gunrate jar for
> my project -->
> > <dependencies>
> >     <dependency>
> >
> >     ..............
> >     </dependency>
> > <dependencies>
> >
> >
> > <plugin> <!-- genrate war of same project -->
> >     <groupId>org.apache.maven.plugins</groupId>
> >        <artifactId>maven-war-plugin</artifactId>
> >        <executions>
> >          <execution>
> >            <phase>install</phase>
> >            <configuration>
> >    <echo>hi i am configuring the
> WarSourceDirectory.......... </echo>
> >             </configuration>
> >            <goals>
> >              <goal>war</goal>
> >            </goals>
> >          </execution>
> >        </executions>
> >      </plugin>
> >   </plugins>
> >
> >   <defaultGoal>package</defaultGoal>
> > </build>
> >
> > </project>
> >
> >
> >
> > i am able to genrate dakwar-1.0-SNAPSHOT.jar and
> >
> > dakwar-1.0-SNAPSHOT.war but only able to install
> dakwar-1.0-SNAPSHOT.jar
> >
> > in my local repository but i need both jar and war
> to be install in my
> > local repository
> >
> > i am doing these operation on one source
> >
> > how i can achieve this please tell
> >
> > Regards
> >
> > Neeraj
> >
> >
> >
> >
> >
> > On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]>
> wrote:
> > >
> > > Do you have one pom with one war artifact and
> one jar dependency, or
> > > do you have one parent pom (maven 2) with two
> modules/artifacts?
> > >
> > > I guess you want your jar in [war]/WEB-INF/lib
> when deployed to
> > server?
> > > The jar artifact should be included into lib if
> spesified as a
> > > dependency. The war plugin is responsible for
> collecting all artifact
> > > dependencies, classes and resources of the web
> application and
> > > packaging them into a web application archive.
> > >
> > > With install, do you mean install into appserver
> or do you mean maven
> > > install aka uploading to local repository? If
> you meant install to
> > > appserver take a look at Cargo,
> > > http://cargo.codehaus.org/Maven2+plugin,
> > > if the latter look at
> > >
>
http://maven.apache.org/plugins/maven-install-plugin/
> in short just
> > > run 'mvn install'. I guess it was the first you
> were after? :-)
> > >
> > > -Ronny
> > >
> > > -----Opprinnelig melding-----
> > > Fra: Neeraj Bisht [mailto:
> [EMAIL PROTECTED]
> > > Sendt: 9. oktober 2006 08:40
> > > Til: [email protected]
> > > Emne: jar and war together
> > >
> > > hi all
> > >         i want to install jar and war from one
> pom but how i can
> > > achieve this i do not know i tried and able to
> made the jar and war
> > > from single pom but able only to install one
> ,either jar or war can
> > > any one tell  me how  i can install or deploy
> both jar and war Regards
> >
> > > Neeraj
> > >
> > >
> > >
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > !DSPAM:4529fcd7162322988016950!
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 



        

        
                
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de

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

Reply via email to