Maven 将源码一起打包放到仓库

<build>
	<plugins>
		
		<plugin>
			<groupId>org.apache.maven.pluginsgroupId>
			<artifactId>maven-surefire-pluginartifactId>
			<version>2.17version>
			<configuration>
				<skip>trueskip>
			configuration>
		plugin>
		
		<plugin>
			<groupId>org.apache.maven.pluginsgroupId>
			<artifactId>maven-source-pluginartifactId>
			<executions>
				<execution>
					<id>attach-sourcesid>
					<goals>
						<goal>jargoal>
					goals>
				execution>
			executions>
		plugin>
	plugins>
build>

你可能感兴趣的:(Maven)