ITeye博客

安装本地maven依赖

asialee · 2008-12-23 23:37 · maven · 企业架构 · C · Java · C++ · maven · C# · Markdown

发现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)

  1. #3 楼 · asialee · 2015-05-08 20:19
    
    <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. #2 楼 · asialee · 2014-08-11 16:06

    asialee writes:

    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>
    
    
  3. #1 楼 · asialee · 2012-04-01 13:53

    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

评论功能维护中,当前仅展示历史评论。