maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Man-Chi Leung <manchi.le...@gmail.com>
Subject [m2] how to change maven-jar-plugin's basedir ?
Date Wed, 04 Jan 2006 14:49:57 GMT
how can I change the generated jar location from default  
<project_dir>/target/ to <project_dir>/target/lib?


		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<configuration>
				<basedir>/target/lib</basedir>   <-------- I want to do something  
like this. but ERROR!
				<archive>
					<manifest>
						<addClasspath>true</addClasspath>
						<mainClass>com.ever.beetles.SimpleJxtaApp</mainClass>
					</manifest>
				</archive>
			</configuration>
		</plugin>

[INFO]  
------------------------------------------------------------------------ 
----
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Error configuring: org.apache.maven.plugins:maven-jar-plugin.  
Reason: ERROR: Cannot override read-only parameter: basedir in goal:  
jar:jar
[INFO]  
------------------------------------------------------------------------ 
----


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


Mime
View raw message