Category : maven

RUN wget http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz RUN tar xzvf apache-maven-3.3.9-bin.tar.gz RUN cp -R apache-maven-3.3.9 /usr/local/bin RUN export PATH=apache-maven-3.3.9/bin:$PATH RUN export PATH=/usr/local/bin/apache-maven-3.3.9/bin:$PATH RUN ln -s /usr/local/bin/apache-maven-3.3.9/bin/mvn /usr/local/bin/mvn #RUN ls -l /usr/local/bin RUN ..

Read more

Set src/main/resources to testResources <build> <testResources> <testResource> <directory>${project.basedir}/src/test/resources</directory> </testResource> <testResource> <directory>${project.basedir}/src/main/resources</directory> </testResource> </testResources> <..

Read more

settings.xml <servers> <server> <id>thirdparty</id> <username>admin</username> <password>admin</password> </server> </servers> <profile> <id>nexus</id> <repositories> <repository> <id>nexus</id> <name>local private nexus</name> <url>http://xxxx:8081/nexus/content/groups/public/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> <repository> <id>nexus-snapshots</id> <name>local private nexus</name> <url>http://xxxx:8081/nexus/content/groups/public-snapshots/</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>local private nexus</name> <url>http://xxxx:8081/nexus/content/groups/public/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </pluginRepository> <pluginRepository> <id>nexus-snapshots</id> <name>local private nexus</name> <url>http://xxxx:8081/nexus/content/groups/public-snapshots/</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles> deploy ..

Read more

Order Not all jar packages can be downloaded in maven warehouse, and some scenarios are not easy to use private warehouse, so how can these external JARs be managed through maven? Using maven-install-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> Example In the root directory of maven project, create a new lib folder with a demo.jar under ..

Read more