`

安装本地maven依赖

阅读更多
发现maven提示少这个包,就去下了,安装提示的安装,成功了。。。。。

c:> mvn install:install-file -Dgrou
pId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=j
ta-1.0.1.jar


分享到:
评论
3 楼 asialee 2015-05-08  
<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
							<mainClass>com.microshield.rtls.UdpServerSocket</mainClass>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
					<descriptorRefs>
						<descriptorRef>jar-with-dependencies</descriptorRef>
					</descriptorRefs>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
							<mainClass>com.microshield.rtls.UdpServerSocket</mainClass>
						</manifest>
					</archive>
				</configuration>
				<executions>
					<execution>
						<id>make-my-jar-with-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
2 楼 asialee 2014-08-11  
asialee 写道
mvn deploy:deploy-file -Dfile="E:\gwfp-client-api.jar" -DgroupId=com.baidu.gwfp.client -DartifactId=gwfp-client-api -Dversion=1.0.2-SNAPSHOT -Dpackaging=jar  -Durl=http://maven.scm.baidu.com:8081/nexus/content/repositories/Baidu_Local_Snapshots -DrepositoryId=baidu_local_snapshot


其实还有一个整合方式就是使用system的scope来整合:

<dependency>
<groupId>org.elfinder</groupId>
<artifactId>elfinder-servlet</artifactId>
<version>1.0.2-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/elfinder-servlet-1.2.0-SNAPSHOT.jar</systemPath>
</dependency>
1 楼 asialee 2012-04-01  
mvn deploy:deploy-file -Dfile="E:\gwfp-client-api.jar" -DgroupId=com.baidu.gwfp.client -DartifactId=gwfp-client-api -Dversion=1.0.2-SNAPSHOT -Dpackaging=jar  -Durl=http://maven.scm.baidu.com:8081/nexus/content/repositories/Baidu_Local_Snapshots -DrepositoryId=baidu_local_snapshot

相关推荐

Global site tag (gtag.js) - Google Analytics