Hi,
Pom is
<?xml version="1.0" encoding="UTF-8"?>
<project>
<pomVersion>1</pomVersion>
<name>TestMaven</name>
<organization>
<name>tgr</name>
<url>http://www.tgr.com</url>
</organization>
<inceptionYear>2006</inceptionYear>
<package>com.logica</package>
<shortDescription>offshoring</shortDescription>
<dependency>
<artifactId>khabot</artifactId>
<groupId>${pom.groupId}</groupId>
<properties>
<jar.manifest.classpath>true</jar.manifest.classpath>
</properties>
<version>${pom.currentVersion}</version>
</dependency>
<build>
<!-- This is only required if you have Java code -->
<sourceDirectory>TestMaven/main/src/java</sourceDirectory>
<!-- These are only required if you have unit tests for your Java code
-->
<unitTestSourceDirectory>TestMaven/main/src/test/java</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*.java</include>
</includes>
</unitTest>
<!-- This section is compulsory -->
<resources>
<resource>
<directory>${basedir}/src/plugin-resources</directory>
<targetPath>plugin-resources</targetPath>
</resource>
<resource>
<directory>${basedir}</directory>
<includes>
<include>plugin.jelly</include>
<include>plugin.properties</include>
<include>project.properties</include>
<include>project.xml</include>
</includes>
</resource>
</resources>
</build>
</project>
And I receive this trace:
build:start:
java:prepare-filesystem:
java:compile:
[echo] Compiling to E:\LogicaCmg\TestMaven/target/classes
[echo] No java source files to compile.
java:jar-resources:
Copying 1 file to E:\LogicaCmg\TestMaven\target\classes
test:prepare-filesystem:
test:test-resources:
test:compile:
[echo] No test source files to compile.
test:test:
[echo] No tests to run.
jar:jar:
[jar] Building jar: E:\LogicaCmg\TestMaven\target\null:null-.jar
BUILD SUCCESSFUL
Total time: 2 seconds
Finished at: Wed Dec 06 15:32:28 GMT 2006
Can you help.
Thanks.
-----Message d'origine-----
De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 6 décembre 2006 14:12
À : [email protected]
Objet : RE: Maven properties
To change the location of your classes, resources, ... you have to edit the
POM :
project/build/sourceDirectory
http://maven.apache.org/maven-1.x/reference/project-descriptor.html#class_Build
To change the name of the generated jar, you have to define another value
for maven.jar.final.name
http://maven.apache.org/maven-1.x/plugins/jar/properties.html
Which by default is equal to ${maven.final.name}.jar.
And maven.final.name must be pom.artifactID+'-'+pom.currentVersion
Arnaud
Khabot, Zakaria wrote:
>
>
> Hi,
> Thanks for your help.
> I'm using maven1. Can you send me an example using 'jar' and where we
> specify source path of classes and the name of the generated file.
>
> Thankx
>
> -----Message d'origine-----
> De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 6 décembre 2006 12:51
> À : [email protected]
> Objet : Re: Maven properties
>
>
> For which maven version ?
> For maven 1 in the documentation there's a list of core properties and
> you'll find the properties for each plugin in its documentation.
> For maven 2 You'll also find the description of the settings in the doc of
> each plugin
>
> Arnaud
>
>
> Khabot, Zakaria wrote:
>>
>>
>> Hi all,
>>
>> How to change the setting of a plugin in maven.
>> For example: I want to set the source path of classes and the name of
>> the generated file while running 'jar'.
>> I want an example of the syntaxe.
>>
>> Thanks in advance.
>>
>>
>> This e-mail and any attachment is for authorised use by the intended
>> recipient(s) only. It may contain proprietary material, confidential
>> information and/or be subject to legal privilege. It should not be
>> copied,
>> disclosed to, retained or used by, any other party. If you are not an
>> intended recipient then please promptly delete this e-mail and any
>> attachment and all copies and inform the sender. Thank you.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Maven-properties-tf2766998s177.html#a7718741
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Maven-properties-tf2766998s177.html#a7719978
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]