Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Subject: Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Proposal: Adding jar manifest classpath in jar and war plugins
Servlet File Download dialog problem (IE6,Adobe 6 0)
java security AccessControlException: access denied (java io FilePermission
Unsupported major minor version 48 0 problem while running the an
   telope task
Subject: axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
Classpath problem
jsp data into Excel
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
Subject: InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Subject: AXIS: tomcat timeout ?
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
XDoclet, Struts and Maven: Where to start? SOLUTION
Subject: Running junit tests fails
 
Subject: Re: M2: how to create jni .jar & .so file from same pom.xml

Subject: Re: M2: how to create jni .jar & .so file from same pom.xml

2007-10-03       - By Joe Argiro

 Back
Dan

I'm new to maven2... i tried adding phase to the compile & jar plugins
but can't get it to work

could you give me an example

thanks!
--joe

-- -- Original Message -- --
From: "Dan Tran" <dantran@(protected)>
To: "Maven Users List" <users@(protected)>
Sent: Wednesday, October 03, 2007 11:24 PM
Subject: Re: M2: how to create jni .jar & .so file from same pom.xml


> force maven-compiler-plugin and maven-jar-plugin to compile and
> package your java classes at 'initialize' phase, and then
> native-maven-plugin will take over.
>
> then you  will need build-helper-maven-plugin to attach you jar for
deployment.
>
> -D
>
> On 10/3/07, Joe Argiro <jargiro@(protected)> wrote:
> > Hi
> >
> > I attempting to migrate from  maven to maven2.
> >
> > I have an existing project which creates a jar file and  a corresponding
> > .so file
> > I'd like to be avoid changing the existing directory structure  which
looks
> > like
> >
> > project  - (pom.xml )
> > project/src/java  - (*.java)
> > project/src/unix   - (*.c *.h)
> >
> >
> > the pom.xml is below
> > if I set the <packaging>  to  jar.  it creates the jar file
> > if I set it to .so  it creates the .so file
> >
> > how do i get it to do both at the same time
> >
> > thanks!
> > --joe
> >
> >
> > -- ---- ---- ---- ---- ---- ---- ----
> > pom.xml -- ---- ---- ---- ---- ---- ---- ---- ---
> >
> > <project>
> >   <groupId>app</groupId>
> >   <artifactId>app1</artifactId>
> >   <packaging>jar</packaging>
> >   <!-- packaging>so</packaging -->
> >   <version>9.3</version>
> >  <properties>
> >     <compilerStartOptions>-g -fPIC</compilerStartOptions>
> >
   <linkerStartOptions>-g -fPIC -mimpure-text -shared</linkerStartOptions>
> >
> >
> >
> >
> >
<linkerEndOptions>-L/usr/lib/shared -lboost_signals-gcc -lboost_thread-gcc-m
> > t -lsocket -lnsl -lresolv</linkerEndOptions>
> >  </properties>
> >   <build>
> >     <defaultGoal>install</defaultGoal>
> >     <sourceDirectory>src/java</sourceDirectory>
> >     <testSourceDirectory>src/test/java</testSourceDirectory>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-jar-plugin</artifactId>
> >       </plugin>
> >       <plugin>
> >         <groupId>org.codehaus.mojo</groupId>
> >         <artifactId>native-maven-plugin</artifactId>
> >         <extensions>true</extensions>
> >         <configuration>
> >           <compilerStartOptions>
> >
> > <compilerStartOption>${compilerStartOptions}</compilerStartOption>
> >           </compilerStartOptions>
> >           <sources>
> >             <source>
> >               <directory>src/unix</directory>
> >               <includes>
> >                 <include>*.c</include>
> >               </includes>
> >             </source>
> >             <source>
> >               <directory>src/unix</directory>
> >             </source>
> >           </sources>
> >           <linkerStartOptions>
> >             <linkerStartOption>${linkerStartOptions}</linkerStartOption>
> >           </linkerStartOptions>
> >           <linkerEndOptions>
> >             <linkerEndOption>${linkerEndOptions}</linkerEndOption>
> >           </linkerEndOptions>
> >         </configuration>
> >         <executions>
> >           <execution>
> >             <id>javah</id>
> >             <phase>generate-sources</phase>
> >             <configuration>
> >             <verbose>true</verbose>
> >               <classNames>
> >                 <className>class1</className>
> >                 <className>class2</className>
> >               </classNames>
> >            </configuration>
> >             <goals>
> >               <goal>javah</goal>
> >             </goals>
> >           </execution>
> >         </executions>
> >       </plugin>
> >   </build>
> > </project>
> >
> >
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > To unsubscribe, e-mail: users-unsubscribe@(protected)
> > For additional commands, e-mail: users-help@(protected)
> >
> >
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)