mvn install:install-file -Dfile={jarファイルのパス} -DgroupId={groupId} -DartifactId={artifactId} -Dversion={version} -Dpackaging=jar -DgeneratePom=true
set MAVEN_OPTS=-Dhttps.proxyHost=<IP> -Dhttps.proxyPort=<PORT>
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> <phase>verify</phase> </execution> </executions> </plugin> </plugins> </build>
<dependency> <groupId>myapp.client</groupId> <artifactId>client-sdk</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>myapp.client</groupId> <artifactId>client-sdk</artifactId> <version>1.0.0</version> <classifier>sources</classifier> </dependency>
<repositories> <repository> <id>nexus</id> <name>Team Nexus Repository</name> <url>http://nexusserver/nexus/content/groups/public</url> <snapshots> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <goals> <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${project.build.directory}/checkout"/> <exec executable="svn"> <arg value="checkout" /> <arg value="--username" /> <arg value="svnuser" /> <arg value="--password" /> <arg value="svnuser" /> <arg value="http://svnserver/shipment/branches/build" /> <arg value="./target/checkout" /> </exec> <!-- 略 --> </tasks> </configuration> </plugin>
m-nawata@silver02% mvn deploy:deploy-file -Durl=http://nexuserver/nexus/content/repositories/thirdparty -DrepositoryId=nexus -Dfile=./aaa.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar
mvn versions:set -DnewVersion=x.x.x.x
mvn install -DskipTests=true
mvn install -Dmaven.test.skip=true
mvn test -Dtest=classname
mvn test -Dtest="myapp.test.MyTest#testHoge" # ↑ # シェル環境だとコメントアウトと認識されるので、クォートでくくること
mvn eclise:eclipse