You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ingo Düppe <ma...@dueppe.com> on 2006/07/13 16:39:30 UTC

installing source jar with install plugin

Hello,

I wonder how to install a source jar file with a mvn 
install:install-file command?

Regards,
Ingo



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


Re: installing source jar with install plugin

Posted by Ingo Düppe <ma...@dueppe.com>.
sorry, I didn't mentioned that I like to install a third party component 
into my local repository.
I just have a source.jar file and like to install it with a mvn command 
into my repository.
Regards,
 Ingo

leahpar schrieb:
> hello,
>
> maybe something like this will help?
>
> 					<plugin>
> 						<groupId>org.apache.maven.plugins</groupId>
> 						<artifactId>maven-source-plugin</artifactId>
> 						<executions>
> 							<execution>
> 								<id>id1</id>
> 								<phase>verify</phase>
> 								<goals>
> 									<goal>jar</goal>
> 									<goal>test-jar</goal>
> 								</goals>
> 							</execution>
> 						</executions>
> 					</plugin>
> 					<plugin>
> 						<groupId>org.apache.maven.plugins</groupId>
> 						<artifactId>maven-jar-plugin</artifactId>
> 						<executions>
> 							<execution>
> 								<id>id2</id>
> 								<goals>
> 									<goal>test-jar</goal>
> 								</goals>
> 							</execution>
> 						</executions>
> 					</plugin>
>
>
>
> id1 creates a jar with source and one with the test
> id2 creates a jar with the test
> example 
> dummy-1.0-SNAPSHOT-sources.jar
> dummy-1.0-SNAPSHOT-tests.jar
> dummy-1.0-SNAPSHOT-test-sources.jar
> theses should be handle as an usual jar by install deploy ...
>
> cordialement
>   


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


Re: installing source jar with install plugin

Posted by leahpar <ra...@free.fr>.
hello,

maybe something like this will help?

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>id1</id>
								<phase>verify</phase>
								<goals>
									<goal>jar</goal>
									<goal>test-jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jar-plugin</artifactId>
						<executions>
							<execution>
								<id>id2</id>
								<goals>
									<goal>test-jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>



id1 creates a jar with source and one with the test
id2 creates a jar with the test
example 
dummy-1.0-SNAPSHOT-sources.jar
dummy-1.0-SNAPSHOT-tests.jar
dummy-1.0-SNAPSHOT-test-sources.jar
theses should be handle as an usual jar by install deploy ...

cordialement
-- 
View this message in context: http://www.nabble.com/installing-source-jar-with-install-plugin-tf1937757.html#a5309711
Sent from the Maven - Users forum at Nabble.com.


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