Re: Archiva 1.0.1
You need to modify the default whitelist on the java.net repository - as it only downloads javax/** by default. On 12/02/2008, ben short [EMAIL PROTECTED] wrote: Hi, Im trying to setup Archiva at work. I havent change any of the default configuration but when I run mvn clean on my project it fails to find the following plugin. groupIdorg.jvnet.jaxb1.maven2/groupId artifactIdmaven-jaxb1-plugin/artifactId version1.0-rc11/version And its available at the following URL.. http://download.java.net/maven/2/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/ Which as far as I can see is should be accessable via the Java.net Repository for Maven 2 Remote proxy. I have the following profile in my settings.xml profile idwork/id repositories repository idinternal/id nameArchiva Managed Internal Repository/name urlhttp://10.10.10.9:8099/archiva/repository/internal/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id nameArchiva Managed Snapshot Repository/name urlhttp://10.10.10.9:8099/archiva/repository/snapshots/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories /profile Here is the output I get when I try a mvn clean.. E:\Development\Work\rtti-ldb-ws-domain\trunkmvn clean [INFO] Scanning for projects... [INFO] [INFO] Building rtti live departure boards domain [INFO]task-segment: [clean] [INFO] Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.jvnet.jaxb1.maven2:maven-jaxb1-plugin Reason: POM 'org.jvnet.jaxb1.maven2:maven-jaxb1-plugin' not found in repository: Unable to download the artifact from any repository org.jvnet.jaxb1.maven2:maven-jaxb1-plugin:pom:1.0-rc11 from the specified remote repositories: snapshots (http://10.10.10.9:8099/archiva/repository/snapshots), internal (http://10.10.10.9:8099/archiva/repository/internal), central (http://repo1.maven.org/maven2) for project org.jvnet.jaxb1.maven2:maven-jaxb1-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 11 22:14:38 GMT 2008 [INFO] Final Memory: 2M/6M [INFO] Can anyone give me an idea of what I need todo to get Archiva to download this plugin? -- Brett Porter Blog: http://blogs.exist.com/bporter/
Re: Archiva 1.0.1
Thanks Brett that worked. On Feb 11, 2008 10:21 PM, Brett Porter [EMAIL PROTECTED] wrote: You need to modify the default whitelist on the java.net repository - as it only downloads javax/** by default. On 12/02/2008, ben short [EMAIL PROTECTED] wrote: Hi, Im trying to setup Archiva at work. I havent change any of the default configuration but when I run mvn clean on my project it fails to find the following plugin. groupIdorg.jvnet.jaxb1.maven2/groupId artifactIdmaven-jaxb1-plugin/artifactId version1.0-rc11/version And its available at the following URL.. http://download.java.net/maven/2/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/ Which as far as I can see is should be accessable via the Java.net Repository for Maven 2 Remote proxy. I have the following profile in my settings.xml profile idwork/id repositories repository idinternal/id nameArchiva Managed Internal Repository/name urlhttp://10.10.10.9:8099/archiva/repository/internal/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id nameArchiva Managed Snapshot Repository/name urlhttp://10.10.10.9:8099/archiva/repository/snapshots/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories /profile Here is the output I get when I try a mvn clean.. E:\Development\Work\rtti-ldb-ws-domain\trunkmvn clean [INFO] Scanning for projects... [INFO] [INFO] Building rtti live departure boards domain [INFO]task-segment: [clean] [INFO] Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.jvnet.jaxb1.maven2:maven-jaxb1-plugin Reason: POM 'org.jvnet.jaxb1.maven2:maven-jaxb1-plugin' not found in repository: Unable to download the artifact from any repository org.jvnet.jaxb1.maven2:maven-jaxb1-plugin:pom:1.0-rc11 from the specified remote repositories: snapshots (http://10.10.10.9:8099/archiva/repository/snapshots), internal (http://10.10.10.9:8099/archiva/repository/internal), central (http://repo1.maven.org/maven2) for project org.jvnet.jaxb1.maven2:maven-jaxb1-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 11 22:14:38 GMT 2008 [INFO] Final Memory: 2M/6M [INFO] Can anyone give me an idea of what I need todo to get Archiva to download this plugin? -- Brett Porter Blog: http://blogs.exist.com/bporter/
Archiva 1.0.1
Hi, Im trying to setup Archiva at work. I havent change any of the default configuration but when I run mvn clean on my project it fails to find the following plugin. groupIdorg.jvnet.jaxb1.maven2/groupId artifactIdmaven-jaxb1-plugin/artifactId version1.0-rc11/version And its available at the following URL.. http://download.java.net/maven/2/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/ Which as far as I can see is should be accessable via the Java.net Repository for Maven 2 Remote proxy. I have the following profile in my settings.xml profile idwork/id repositories repository idinternal/id nameArchiva Managed Internal Repository/name urlhttp://10.10.10.9:8099/archiva/repository/internal/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository repository idsnapshots/id nameArchiva Managed Snapshot Repository/name urlhttp://10.10.10.9:8099/archiva/repository/snapshots/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories /profile Here is the output I get when I try a mvn clean.. E:\Development\Work\rtti-ldb-ws-domain\trunkmvn clean [INFO] Scanning for projects... [INFO] [INFO] Building rtti live departure boards domain [INFO]task-segment: [clean] [INFO] Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom Downloading: http://10.10.10.9:8099/archiva/repository/internal/org/jvnet/jaxb1/maven2/maven-jaxb1-plugin/1.0-rc11/maven-jaxb1-plugin-1.0-rc11.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.jvnet.jaxb1.maven2:maven-jaxb1-plugin Reason: POM 'org.jvnet.jaxb1.maven2:maven-jaxb1-plugin' not found in repository: Unable to download the artifact from any repository org.jvnet.jaxb1.maven2:maven-jaxb1-plugin:pom:1.0-rc11 from the specified remote repositories: snapshots (http://10.10.10.9:8099/archiva/repository/snapshots), internal (http://10.10.10.9:8099/archiva/repository/internal), central (http://repo1.maven.org/maven2) for project org.jvnet.jaxb1.maven2:maven-jaxb1-plugin [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 11 22:14:38 GMT 2008 [INFO] Final Memory: 2M/6M [INFO] Can anyone give me an idea of what I need todo to get Archiva to download this plugin?
RE: repository purge isn't working in 1.0.1
103617966 [pool-1-thread-1] INFO org.codehaus.plexus.taskqueue.execution.TaskExecutor:database-update - Executing task from queue with job name: database-job 103617966 [pool-1-thread-1] INFO org.codehaus.plexus.taskqueue.execution.TaskExecutor:database-update - Task: Updating unprocessed artifacts 103617966 [pool-2-thread-1] INFO org.codehaus.plexus.taskqueue.execution.TaskExecutor:repository-scanning - Executing task from queue with job name: repository-job:internal 103617966 [Thread-6] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:repository-sca nning - Error executing task edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: java.lang.NullPointerException at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(Futu reTask.java:299) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask .java:118) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable.run(ThreadedTaskQueueExecutor.java:127) Caused by: java.lang.NullPointerException at org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTa skExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:98) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter .call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask .java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) 103617967 [pool-2-thread-1] INFO org.codehaus.plexus.taskqueue.execution.TaskExecutor:repository-scanning - Executing task from queue with job name: repository-job:snapshots 103617967 [Thread-6] ERROR org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:repository-sca nning - Error executing task edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: java.lang.NullPointerException at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(Futu reTask.java:299) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask .java:118) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable.run(ThreadedTaskQueueExecutor.java:127) Caused by: java.lang.NullPointerException at org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTa skExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:98) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter .call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask .java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) -Original Message- From: Jason Chaffee [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 12:57 PM To: archiva-users@maven.apache.org Subject: RE: repository purge isn't working in 1.0.1 I have attached a snippet of the log. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 4:55 AM To: archiva-users@maven.apache.org Subject: Re: repository purge isn't working in 1.0.1 I think it would be essential to capture the stacktrace even if it isn't relevant so we can clear that up. Also, if you could post the failed task that you think needs more info and some context we can look at ways to troubleshoot and improve the logging in the future. - Brett On 11/02/2008, Jason Chaffee [EMAIL PROTECTED] wrote: For some reason, the repository purge hasn't been working for me. I configured the date to be 0 and the purge count to be 10, yet after running for 3 days there are still some snapshots with over 50 artifacts. I did see the log said something about the a failed task for repository-job:snapshots, but there wasn't much info. Also, there was a stacktrace with something from java.util.concurrent, but the message and details are less than helpful. Anyone have any ideas? -- Brett Porter
Re: Possible to remotely trigger a repository scan?
not at present (other than sending a valid cookie and hitting the scan admin link) - but there's a possible workaround. I believe that if you hit the URL of the artifact over WebDAV it will scan just that artifact which should be what you need. I'd need to confirm - it may only be in the proxy code. Cheers, Brett On 12/02/2008, Brown, Carlton [EMAIL PROTECTED] wrote: Hi, Is there any way to remotely trigger a repository scan? I'd like to create an Ant task to do this immediately following a build so that the published artifacts will immediately become available. Thanks - This message contains PRIVILEGED and CONFIDENTIAL information that is intended only for use by the named recipient. If you are not the named recipient, any disclosure, dissemination, or action based on the contents of this message is prohibited. In such case please notify us and destroy and delete all copies of this transmission. Thank you. -- Brett Porter Blog: http://blogs.exist.com/bporter/