You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Joachim Sautter <jo...@softwareschneiderei.de> on 2005/06/06 16:10:11 UTC

Given Directory Structure

Hello,
we have our own projet structe with is not equale to the Maven 
structure. Can we use this and when yes how?
Kind regards
Sautter

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


Re: Given Directory Structure

Posted by John Casey <jd...@commonjava.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

normally you'd use dependencies for this. Have you read the
documentation on http://maven.apache.org and/or
http://maven.apache.org/maven2 ?

I'm not sure what you're trying to do, exactly, but it sounds like these
class files are coming from some external project (?) or build of some
kind, and if so they should be jarred up and available in your local
repository before you can use them. If you're using maven-2, you'll also
have to provide a project descriptor so we can resolve any transitive
dependencies during the build.

Again, read over the documentation, and if you still have problems, let
us know.

- -john

Joachim Sautter wrote:
> OK
> Now I can find the soruce codes, but I have still a problem with the
> classfiles, they are using Maven cant find them.
> I have set the classpath and i have checked it with the java compiler
> and there it works. How can I set the classpath within the maven
> confiugration files?
> ALso i have prepared it with the resoruce part of the project.xml
> Joachim.
> Joachim Sautter wrote:
> 
>> My path: src/com/schneide/labras/framework under this there are some
>> directories with source code but the name packet name
>> like in the given structure. Is this maybe the probelm why maven cant
>> finde an source file? The path is written correctly  and I prepared it
>> with one more subdirecotry under framework but it didnt find any
>> sourcecode
>>
>> Brett Porter wrote:
>>
>>> Absolutely yes!
>>>
>>> By configuring <sourceDirectory>, <resources> and other elements of
>>> the <build> section.
>>>
>>> In addition, you may need to change plugin configuration if you are
>>> not using plugin defaults for their files/directories.
>>>
>>> - Brett
>>>
>>> On 6/7/05, Joachim Sautter <jo...@softwareschneiderei.de>
>>> wrote:
>>>  
>>>
>>>> Hello,
>>>> we have our own projet structe with is not equale to the Maven
>>>> structure. Can we use this and when yes how?
>>>> Kind regards
>>>> Sautter
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCpHziK3h2CZwO/4URAkofAJ4oy5DA5L1xHFgGhmYgzOIy7t2yRwCcC8wf
UtHeMYfyxeBYs/UlbqXKGrs=
=tz/x
-----END PGP SIGNATURE-----

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


Re: Given Directory Structure

Posted by Joachim Sautter <jo...@softwareschneiderei.de>.
OK
Now I can find the soruce codes, but I have still a problem with the 
classfiles, they are using Maven cant find them.
I have set the classpath and i have checked it with the java compiler 
and there it works. How can I set the classpath within the maven 
confiugration files?
ALso i have prepared it with the resoruce part of the project.xml
Joachim.
Joachim Sautter wrote:

> My path: src/com/schneide/labras/framework under this there are some 
> directories with source code but the name packet name
> like in the given structure. Is this maybe the probelm why maven cant 
> finde an source file? The path is written correctly  and I prepared it
> with one more subdirecotry under framework but it didnt find any 
> sourcecode
>
> Brett Porter wrote:
>
>> Absolutely yes!
>>
>> By configuring <sourceDirectory>, <resources> and other elements of
>> the <build> section.
>>
>> In addition, you may need to change plugin configuration if you are
>> not using plugin defaults for their files/directories.
>>
>> - Brett
>>
>> On 6/7/05, Joachim Sautter <jo...@softwareschneiderei.de> 
>> wrote:
>>  
>>
>>> Hello,
>>> we have our own projet structe with is not equale to the Maven
>>> structure. Can we use this and when yes how?
>>> Kind regards
>>> Sautter
>>>
>>> ---------------------------------------------------------------------
>>> 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


Re: Given Directory Structure

Posted by John Casey <jd...@commonjava.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

in this case, I think you want something like:

<build>
  <sourceDirectory>src</sourceDirectory>
...
</build>

to refer maven to ${basedir}/src for your source code...

Joachim Sautter wrote:
> My path: src/com/schneide/labras/framework under this there are some
> directories with source code but the name packet name
> like in the given structure. Is this maybe the probelm why maven cant
> finde an source file? The path is written correctly  and I prepared it
> with one more subdirecotry under framework but it didnt find any sourcecode
> 
> Brett Porter wrote:
> 
>> Absolutely yes!
>>
>> By configuring <sourceDirectory>, <resources> and other elements of
>> the <build> section.
>>
>> In addition, you may need to change plugin configuration if you are
>> not using plugin defaults for their files/directories.
>>
>> - Brett
>>
>> On 6/7/05, Joachim Sautter <jo...@softwareschneiderei.de>
>> wrote:
>>  
>>
>>> Hello,
>>> we have our own projet structe with is not equale to the Maven
>>> structure. Can we use this and when yes how?
>>> Kind regards
>>> Sautter
>>>
>>> ---------------------------------------------------------------------
>>> 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
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCpF5GK3h2CZwO/4URApQ3AJoCDEzCmHjbAL9rzvNY4JI9Sc8pgACfRddC
GFWbxcksNkdLACLhGKm1iE4=
=ydiq
-----END PGP SIGNATURE-----

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


Re: Given Directory Structure

Posted by Joachim Sautter <jo...@softwareschneiderei.de>.
My path: src/com/schneide/labras/framework under this there are some 
directories with source code but the name packet name
like in the given structure. Is this maybe the probelm why maven cant 
finde an source file? The path is written correctly  and I prepared it
with one more subdirecotry under framework but it didnt find any sourcecode

Brett Porter wrote:

>Absolutely yes!
>
>By configuring <sourceDirectory>, <resources> and other elements of
>the <build> section.
>
>In addition, you may need to change plugin configuration if you are
>not using plugin defaults for their files/directories.
>
>- Brett
>
>On 6/7/05, Joachim Sautter <jo...@softwareschneiderei.de> wrote:
>  
>
>>Hello,
>>we have our own projet structe with is not equale to the Maven
>>structure. Can we use this and when yes how?
>>Kind regards
>>Sautter
>>
>>---------------------------------------------------------------------
>>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


Re: Given Directory Structure

Posted by Brett Porter <br...@gmail.com>.
Absolutely yes!

By configuring <sourceDirectory>, <resources> and other elements of
the <build> section.

In addition, you may need to change plugin configuration if you are
not using plugin defaults for their files/directories.

- Brett

On 6/7/05, Joachim Sautter <jo...@softwareschneiderei.de> wrote:
> Hello,
> we have our own projet structe with is not equale to the Maven
> structure. Can we use this and when yes how?
> Kind regards
> Sautter
> 
> ---------------------------------------------------------------------
> 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