This tutorial aims to configure eclipse luna with local maven repository.This configuration assumes no proxy setup for internet connection.
Window -> Preferences -> Maven -> Archetypes -> Add Local Catalog
Locate your local catalog file
Showing posts with label artifactory. Show all posts
Showing posts with label artifactory. Show all posts
Friday, March 27, 2015
how to restore artifactory
Three directories, extract backups
C:\Users\jupiter\.artifactory
C:\Users\jupiter\.eclipse
(local repository)
C:\Users\jupiter\.m2
Login artifactory
Admin -> Import & Export -> Repositories ->Import Repository from Path
run artifactory
check on the numbers of artifacts
C:\Users\jupiter\.artifactory
C:\Users\jupiter\.eclipse
(local repository)
C:\Users\jupiter\.m2
Login artifactory
Admin -> Import & Export -> Repositories ->Import Repository from Path
run artifactory
check on the numbers of artifacts
how to install artifactory
PLATFORM (previous)
windows 7 family edition 64-bit
jdk 1.7.0
tomcat 7.0.26 (64-bit edition)
I want to install new version of tomcat, jdk and artifactory.My aim is to put artifactory backups back on this new platform.This tutorial is about running artifactory war file on tomcat.
PLATFORM (new)
windows 7 family edition 64-bit
jdk1.8.0_31
apache-tomcat-8.0.20-windows-x86
C:\Users\jupiter>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)
extract apache-tomcat-8.0.20-windows-x86.zip
tomcat folder should look like this
C:\Downloads\apache-tomcat
"Server Status" and "Manager App" interfaces require manager-gui role and "Host Manager" requires admin-gui role.
add these lines and restart tomcat if it works.
C:\Downloads\apache-tomcat\conf \tomcat-users.xml
<role rolename="manager-gui,admin-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
configure tomcat port.
C:\Downloads\apache-tomcat\conf\server.xml
<Connector port="5555" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
This file sets java_home manually and runs tomcat on the folder mentioned.
contents of "tomcat start.cmd" file.
@echo off
SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_31
SET CATALINA_HOME=C:\Downloads\apache-tomcat
C:\Downloads\apache-tomcat\bin\startup.bat
run "tomcat start.cmd" on folder
C:\Downloads\ciroot
test tomcat whether it runs
tomcat runs on http://localhost:8080/
extract artifactory-3.5.3.zip
copy C:\Downloads\artifactory-3.5.3\webapps\artifactory.war file
into C:\Downloads\apache-tomcat\webapps folder.
restart tomcat.
test if artifactory runs
http://localhost:5555artifactory
artifactory first time login.
user/password admin/admin
windows 7 family edition 64-bit
jdk 1.7.0
tomcat 7.0.26 (64-bit edition)
I want to install new version of tomcat, jdk and artifactory.My aim is to put artifactory backups back on this new platform.This tutorial is about running artifactory war file on tomcat.
PLATFORM (new)
windows 7 family edition 64-bit
jdk1.8.0_31
apache-tomcat-8.0.20-windows-x86
C:\Users\jupiter>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)
extract apache-tomcat-8.0.20-windows-x86.zip
tomcat folder should look like this
C:\Downloads\apache-tomcat
"Server Status" and "Manager App" interfaces require manager-gui role and "Host Manager" requires admin-gui role.
add these lines and restart tomcat if it works.
C:\Downloads\apache-tomcat\conf \tomcat-users.xml
<role rolename="manager-gui,admin-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
configure tomcat port.
C:\Downloads\apache-tomcat\conf\server.xml
<Connector port="5555" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
This file sets java_home manually and runs tomcat on the folder mentioned.
contents of "tomcat start.cmd" file.
@echo off
SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_31
SET CATALINA_HOME=C:\Downloads\apache-tomcat
C:\Downloads\apache-tomcat\bin\startup.bat
run "tomcat start.cmd" on folder
C:\Downloads\ciroot
test tomcat whether it runs
tomcat runs on http://localhost:8080/
extract artifactory-3.5.3.zip
copy C:\Downloads\artifactory-3.5.3\webapps\artifactory.war file
into C:\Downloads\apache-tomcat\webapps folder.
restart tomcat.
test if artifactory runs
http://localhost:5555artifactory
artifactory first time login.
user/password admin/admin
Sunday, April 20, 2014
how to mirror repository on artifactory
If you automatically generate settings.xml file on artifactory server.Mirror part looks like below
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>repo</name>
<url>http://localhost:5555/artifactory/repo</url>
<id>repo</id>
</mirror>
</mirrors>
Artifactory repositories use "**/*" syntax. You should replace mirror settings like below
<mirrors>
<mirror>
<mirirrorOf>**/*</mirrorOf>
<name>repo</name>
<url>http://localhost:5555/artifactory/repo</url>
<id>repo</id>
</mirror>
</mirrors>
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>repo</name>
<url>http://localhost:5555/artifactory/repo</url>
<id>repo</id>
</mirror>
</mirrors>
Artifactory repositories use "**/*" syntax. You should replace mirror settings like below
<mirrors>
<mirror>
<mirirrorOf>**/*</mirrorOf>
<name>repo</name>
<url>http://localhost:5555/artifactory/repo</url>
<id>repo</id>
</mirror>
</mirrors>
Sunday, March 16, 2014
my diary of resolutions
- I run offline artifactory server which acts like maven repository.From time to time I get this error.
![]() |
Eclipse Kepler Problems view tab |
Description Resource Path Location Type
ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.tomcat:el-api:jar:6.0.32: ArtifactResolutionException: Failure to transfer org.apache.tomcat:el-api:pom:6.0.32 from http://localhost:5555/artifactory/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.tomcat:el-api:pom:6.0.32 from/to central (http://localhost:5555/artifactory/libs-release): Connection refused: no further information to http://localhost:5555/artifactory/libs-release/org/apache/tomcat/el-api/6.0.32/el-api-6.0.32.pom pom.xml /simple-parent line 1 Maven Dependency Problem
Normally you see many errors in problems view.This is just one of them.To resolve this
![]() |
right click on the project.Maven-Update Project |
- c3p0 problem
2014-03-16 22:42:10 DEBUG C3P0PooledConnectionPool:468 - Preparing to destroy PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@17c0756
2014-03-16 22:42:10 DEBUG NewPooledConnection:566 - com.mchange.v2.c3p0.impl.NewPooledConnection@17c0756 closed by a client.
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:566)
at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)
at com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)
in applicationContext.cml
<bean id="MyDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
resolution
<bean id="MyDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" >
I don't exactly know why.When I browse class path I couldn't find destroy method.
- maven project error which is on eclipse luna
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Window > Preferences > Java > Installed JREs >Execution Environments > JavaSE-1.8
Project > Right Click > Maven > Update Project
ArtifactTransferException: Failure to transfer
C:\Users\user1\.m2\repository\org\hibernate\hibernate-core
Remove folder or back up just in case you need.Update project via eclipse with m2eclipse
- This happens when you configure project while artifactory is not running
C:\Users\yeniceri\.m2\repository\org\apache\maven\plugins\maven-war-plugin
Delete 2.4
Update project to sync with artifactory
#1
Windows > Preferences > Maven
check the box
"Download repository index updates on startup"
"Download Artifact Sources"
#2
Window > Show View > Other > Maven > Maven Repositories
central repository in 'Global Repositories'
Tick 'Full Index Enabled' and then 'Rebuild Index'
http://stackoverflow.com/questions/24252256/how-to-enable-index-downloads-in-eclipse-for-maven-search
apache-maven-3.3.1
java: 1.8.0_31
eclipse luna
Window-> Preference -> Java -> Installed JREs -> Edit
Default VM arguments
-Dmaven.multiModuleProjectDirectory=$M2_HOME
http://stackoverflow.com/questions/29330577/maven-3-3-1-eclipse-dmaven-multimoduleprojectdirectory-system-propery-is-not-s
- Index downloads are disabled, search result may be incomplete.
#1
Windows > Preferences > Maven
check the box
"Download repository index updates on startup"
"Download Artifact Sources"
#2
Window > Show View > Other > Maven > Maven Repositories
central repository in 'Global Repositories'
Tick 'Full Index Enabled' and then 'Rebuild Index'
http://stackoverflow.com/questions/24252256/how-to-enable-index-downloads-in-eclipse-for-maven-search
- -Dmaven.multiModuleProjectDirectory system property is not set.Check $M2_HOME environment variable and mvn script match.
apache-maven-3.3.1
java: 1.8.0_31
eclipse luna
Window-> Preference -> Java -> Installed JREs -> Edit
Default VM arguments
-Dmaven.multiModuleProjectDirectory=$M2_HOME
http://stackoverflow.com/questions/29330577/maven-3-3-1-eclipse-dmaven-multimoduleprojectdirectory-system-propery-is-not-s
Sunday, February 16, 2014
how to run artifactory offline
If you are planning to run artifactory on offline mode just click check box.
Organization-wide Offline
This is common in organizations using a separate secured network (such as military or financial institutes) and are disconnected from the rest of the world.
In this case, remote repositories serve as caches only and do not proxy remote artifacts.
Organization-wide Offline
This is common in organizations using a separate secured network (such as military or financial institutes) and are disconnected from the rest of the world.
In this case, remote repositories serve as caches only and do not proxy remote artifacts.
Subscribe to:
Posts (Atom)