You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Kumari, Shailja" <Sh...@deshaw.com> on 2009/01/21 07:15:01 UTC
Pom packaging
Hi,
I have directory strucute like this
a/b
a/c
a/d.java
a/e.java
I have one pom.xml under "a" directory .. Having code for compilation
and redirecting directories from there
Like
<project>
<groupId>m</groupId>
<modelVersion>4.0.0</modelVersion>
<artifactId>a</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<modules>
<module>b</module>
<module>c</module>
</modules>
<build>
<sourceDirectory>${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR}</sourceDirecto
ry> -- all properties are defined
<outputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</outputDirectory>
<testSourceDirectory>${basedir}/test</testSourceDirectory>
<testOutputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</testOutputDirectory
>
</plugins>
------- code for compilation----->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
----------------
</plugin>
</plugin>
</build>
</project>
What happen when I do mvn compile ,under "a " directory .. Directories
b and c get compiled but not all .java files under a
means a/d.java and a/e.java is not getting compild . WHY ? Plz help
me
-----------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: Pom packaging
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven
-core/src/main/resources/META-INF/plexus/components.xml?view=markup
Look for " <!-- START SNIPPET: pom-lifecycle -->" and then the
jar-lifecycle right below.
I also recommend you read http://www.sonatype.com/book
-----Original Message-----
From: SHAILJA [mailto:shalja.rudra@gmail.com]
Sent: Friday, January 23, 2009 7:29 AM
To: dev@maven.apache.org
Subject: Re: Pom packaging
hiiii
I was serching for packaging type "pom " source code to get the idea
how
pom packaging type only take modules under it not .java source file..
Could you please give me link or some information to find out source
code.
Thanks
SHAILJA wrote:
>
> Thanks alot
>
> Next thing is that , I am having a huge directory structure like
>
> dempack/room/primitive/*.java
> demapack/jmx/console/*.java
> /rfg/pool/bevarage/*.java
> /rfg/pool/bevarage/test/*Test.java
>
> like this with lots of .java,.prejava, .properties, .h, .xml,.html
,.pl
> file
> i have to install all .pl file to a different location like
> /basic/java/include/cfg
> all .xml file to some other location
>
> will accepting maven tool for my project will be fine. Condition is ,
i
> dont want to restructure my present directory.
>
> I am using maven , but it is quite difficult for compiling of source
file
> and junit testing .
> If i use aggregation and inheritence for my project . under pom
> packaging .java is not getting compiled
> and if use jar packaging <module> tag is not identified.
>
> so plz tell me .. what should i do .. to build my exiting
project
> by maven, without restructuring.
>
> Thanks
>
>
>
> Brian E Fox wrote:
>>
>> This is a user list question. However you can't have source in a pom
>> project
>> as there is nothing bound to compile it. You need to move that source
to
>> a
>> child module of type jar.
>>
>>
>> On 1/21/09 1:15 AM, "Kumari, Shailja" <Sh...@deshaw.com>
wrote:
>>
>>>
>>> Hi,
>>>
>>> I have directory strucute like this
>>>
>>> a/b
>>> a/c
>>> a/d.java
>>> a/e.java
>>>
>>>
>>> I have one pom.xml under "a" directory .. Having code for
compilation
>>> and redirecting directories from there
>>> Like
>>> <project>
>>> <groupId>m</groupId>
>>> <modelVersion>4.0.0</modelVersion>
>>> <artifactId>a</artifactId>
>>> <version>1.0</version>
>>> <packaging>pom</packaging>
>>> <modules>
>>> <module>b</module>
>>> <module>c</module>
>>> </modules>
>>>
>>> <build>
>>>
>>>
<sourceDirectory>${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR}</sourceDirecto
>>> ry> -- all properties are defined
>>> <outputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</outputDirectory>
>>>
>>> <testSourceDirectory>${basedir}/test</testSourceDirectory>
>>>
<testOutputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</testOutputDirectory
>>>>
>>> </plugins>
>>> ------- code for compilation----->
>>> <plugin>
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> ----------------
>>> </plugin>
>>> </plugin>
>>> </build>
>>> </project>
>>>
>>>
>>> What happen when I do mvn compile ,under "a " directory ..
Directories
>>> b and c get compiled but not all .java files under a
>>> means a/d.java and a/e.java is not getting compild . WHY ? Plz
help
>>> me
>>> -----------
>>>
>>>
>>>
>>>
>>>
---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Pom-packaging-tp21577959p21623592.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Pom packaging
Posted by SHAILJA <sh...@gmail.com>.
hiiii
I was serching for packaging type "pom " source code to get the idea how
pom packaging type only take modules under it not .java source file..
Could you please give me link or some information to find out source
code.
Thanks
SHAILJA wrote:
>
> Thanks alot
>
> Next thing is that , I am having a huge directory structure like
>
> dempack/room/primitive/*.java
> demapack/jmx/console/*.java
> /rfg/pool/bevarage/*.java
> /rfg/pool/bevarage/test/*Test.java
>
> like this with lots of .java,.prejava, .properties, .h, .xml,.html ,.pl
> file
> i have to install all .pl file to a different location like
> /basic/java/include/cfg
> all .xml file to some other location
>
> will accepting maven tool for my project will be fine. Condition is , i
> dont want to restructure my present directory.
>
> I am using maven , but it is quite difficult for compiling of source file
> and junit testing .
> If i use aggregation and inheritence for my project . under pom
> packaging .java is not getting compiled
> and if use jar packaging <module> tag is not identified.
>
> so plz tell me .. what should i do .. to build my exiting project
> by maven, without restructuring.
>
> Thanks
>
>
>
> Brian E Fox wrote:
>>
>> This is a user list question. However you can't have source in a pom
>> project
>> as there is nothing bound to compile it. You need to move that source to
>> a
>> child module of type jar.
>>
>>
>> On 1/21/09 1:15 AM, "Kumari, Shailja" <Sh...@deshaw.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> I have directory strucute like this
>>>
>>> a/b
>>> a/c
>>> a/d.java
>>> a/e.java
>>>
>>>
>>> I have one pom.xml under "a" directory .. Having code for compilation
>>> and redirecting directories from there
>>> Like
>>> <project>
>>> <groupId>m</groupId>
>>> <modelVersion>4.0.0</modelVersion>
>>> <artifactId>a</artifactId>
>>> <version>1.0</version>
>>> <packaging>pom</packaging>
>>> <modules>
>>> <module>b</module>
>>> <module>c</module>
>>> </modules>
>>>
>>> <build>
>>>
>>> <sourceDirectory>${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR}</sourceDirecto
>>> ry> -- all properties are defined
>>> <outputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</outputDirectory>
>>>
>>> <testSourceDirectory>${basedir}/test</testSourceDirectory>
>>> <testOutputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</testOutputDirectory
>>>>
>>> </plugins>
>>> ------- code for compilation----->
>>> <plugin>
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> ----------------
>>> </plugin>
>>> </plugin>
>>> </build>
>>> </project>
>>>
>>>
>>> What happen when I do mvn compile ,under "a " directory .. Directories
>>> b and c get compiled but not all .java files under a
>>> means a/d.java and a/e.java is not getting compild . WHY ? Plz help
>>> me
>>> -----------
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Pom-packaging-tp21577959p21623592.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Pom packaging
Posted by SHAILJA <sh...@gmail.com>.
Thanks alot
Next thing is that , I am having a huge directory structure like
dempack/room/primitive/*.java
demapack/jmx/console/*.java
/rfg/pool/bevarage/*.java
/rfg/pool/bevarage/test/*Test.java
like this with lots of .java,.prejava, .properties, .h, .xml,.html ,.pl
file
i have to install all all .pl file to a different location like
/basic/java/include/cfg
all .xml file to some other location
will accepting maven tool for my project will be five. Condition is , i
dont want to restructure my present directiry.
I am using maven , bt it is quite difficult for compiling of source file
and junit testing .
If i use aggregation ang inheretence for my project . under pom packaging
.java is not getting compiled
and if use jar packaging <module> tag is not identified.
so plz tell me .. what should i do .. to build my exiting project by
maven, without restructuring.
Thanks
Brian E Fox wrote:
>
> This is a user list question. However you can't have source in a pom
> project
> as there is nothing bound to compile it. You need to move that source to a
> child module of type jar.
>
>
> On 1/21/09 1:15 AM, "Kumari, Shailja" <Sh...@deshaw.com> wrote:
>
>>
>> Hi,
>>
>> I have directory strucute like this
>>
>> a/b
>> a/c
>> a/d.java
>> a/e.java
>>
>>
>> I have one pom.xml under "a" directory .. Having code for compilation
>> and redirecting directories from there
>> Like
>> <project>
>> <groupId>m</groupId>
>> <modelVersion>4.0.0</modelVersion>
>> <artifactId>a</artifactId>
>> <version>1.0</version>
>> <packaging>pom</packaging>
>> <modules>
>> <module>b</module>
>> <module>c</module>
>> </modules>
>>
>> <build>
>>
>> <sourceDirectory>${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR}</sourceDirecto
>> ry> -- all properties are defined
>> <outputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</outputDirectory>
>>
>> <testSourceDirectory>${basedir}/test</testSourceDirectory>
>> <testOutputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</testOutputDirectory
>>>
>> </plugins>
>> ------- code for compilation----->
>> <plugin>
>> <artifactId>maven-compiler-plugin</artifactId>
>> ----------------
>> </plugin>
>> </plugin>
>> </build>
>> </project>
>>
>>
>> What happen when I do mvn compile ,under "a " directory .. Directories
>> b and c get compiled but not all .java files under a
>> means a/d.java and a/e.java is not getting compild . WHY ? Plz help
>> me
>> -----------
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Pom-packaging-tp21577959p21605301.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Pom packaging
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
This is a user list question. However you can't have source in a pom project
as there is nothing bound to compile it. You need to move that source to a
child module of type jar.
On 1/21/09 1:15 AM, "Kumari, Shailja" <Sh...@deshaw.com> wrote:
>
> Hi,
>
> I have directory strucute like this
>
> a/b
> a/c
> a/d.java
> a/e.java
>
>
> I have one pom.xml under "a" directory .. Having code for compilation
> and redirecting directories from there
> Like
> <project>
> <groupId>m</groupId>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>a</artifactId>
> <version>1.0</version>
> <packaging>pom</packaging>
> <modules>
> <module>b</module>
> <module>c</module>
> </modules>
>
> <build>
>
> <sourceDirectory>${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR}</sourceDirecto
> ry> -- all properties are defined
> <outputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</outputDirectory>
>
> <testSourceDirectory>${basedir}/test</testSourceDirectory>
> <testOutputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</testOutputDirectory
>>
> </plugins>
> ------- code for compilation----->
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> ----------------
> </plugin>
> </plugin>
> </build>
> </project>
>
>
> What happen when I do mvn compile ,under "a " directory .. Directories
> b and c get compiled but not all .java files under a
> means a/d.java and a/e.java is not getting compild . WHY ? Plz help
> me
> -----------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org