maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naess, Ronny" <Ronny.Na...@avinor.no>
Subject SV: jar and war together
Date Mon, 09 Oct 2006 12:09:56 GMT
He provided a patch to be used. That shuld solve the problem. Maybe Mark
kan give you som further information in how to use that patch?

-Ronny 

-----Opprinnelig melding-----
Fra: Neeraj Bisht [mailto:neeraj.bisht@daffodildb.com] 
Sendt: 9. oktober 2006 14:04
Til: Maven Users List
Emne: Re: jar and war together

at what extend i understand his thought i tried but get the same result
as it was

On 10/9/06, Naess, Ronny <Ronny.Naess@avinor.no> wrote:
>
> Did you take a look at what Mark Struberg wrote?
>
> -Ronny
>
> -----Opprinnelig melding-----
> Fra: Neeraj Bisht [mailto:neeraj.bisht@daffodildb.com]
> Sendt: 9. oktober 2006 13:19
> Til: Maven Users List
> Emne: Re: jar and war together
>
> yes inside jar , i  seen war content
>
>
>
> On 10/9/06, Naess, Ronny <Ronny.Naess@avinor.no> wrote:
> >
> > What, it says it installes the war to the jar? Is it 
> > replacing/moving it? Seems like strange behavior.
> >
> > Is it only the jar and now war inside C:\Documents and 
> > Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
> > s\
> > fr
> > amework\dakwar\1.0-SNAPSHOT\
> >
> > If only the jar, if you look iside that jar, is it the war content 
> > you
>
> > see?
> >
> > -Ronny
> >
> > -----Opprinnelig melding-----
> > Fra: Neeraj Bisht [mailto:neeraj.bisht@daffodildb.com]
> > Sendt: 9. oktober 2006 11:52
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > 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\dakwa
> > r- 1.0-SNAPSHOT.war to C:\Documents and 
> > Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
> > s\
> > fr
> > amework\dakwar\1.0-SNAPSHOT\dakwar-
> > 1.0-SNAPSHOT.jar
> >
> > On 10/9/06, Naess, Ronny <Ronny.Naess@avinor.no> 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:neeraj.daffodil@gmail.com]
> > > 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 < Ronny.Naess@avinor.no> 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: neeraj.bisht@daffodildb.com]
> > > > Sendt: 9. oktober 2006 08:40
> > > > Til: users@maven.apache.org
> > > > 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: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------------
> > > --
> > > - To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


!DSPAM:452a3abf59931709321452!

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


Mime
View raw message