Hi Peter, Artifactory can generate a 'factory' settings.xml for you. In Artifactory's homepage select "Maven Settings" from the menu to the left, choose a repository for each segment (or just use the preselected defaults) then hit the "Generate Settings" button. Also, if possible please send us snippets from your artifactory.log and access.log files from the time of the deployment so we can help you troubleshoot this issue.
Noam On 06/07/2010 11:54 AM, petergent wrote: > For now, I'm using the 'admin' user. > Could you maybe provide me with a 'factory' default settings.xml file to > use with artifactory? > > I can deploy my ordinary jar projects and one bundle. > Next, the maven-bundle-plugin tries to upload the repostiory.xml or > xml.lock file and here it fails: > (using ignoreLock=true doesn't do the trick) > > Caused by: org.apache.maven.wagon.authorization.AuthorizationException: > Transfer failed: Not authorized > > Yours, > Peter > > Noam Y. Tenne schreef: > >> Does the .lock file already exist in the target repository? >> If so, make sure that the user you authenticate with when deploying has >> "delete" permissions as well as "deploy" on the target repository. This >> allows deploying and replacing artifacts that already exist. >> >> HTH, >> Noam >> >> On 06/07/2010 01:18 AM, petergent wrote: >> >> >>> I can deploy the same file via the UI deployer. So that got me thinking. >>> I found that my distributionManagement in Maven was not configured >>> properly. I forgot 'repository' besides the 'snapshotRepository' tag. >>> But now I'm facing another problem: >>> >>> Failed to execute goal org.apache.felix:maven-bundle-plugin:2.1.0:deploy >>> (default-deploy) on project com.main.bundle: Authorization failed: >>> Transfer failed: Not authorized >>> >>> So the .pom and the .jar file are uploaded succesfull, but when >>> uploading the .lock file, the authorization failes... >>> >>> I guess it's not an artifactory issue? :) >>> >>> >>> >>> Noam Y. Tenne schreef: >>> >>> >>> >>>> This shouldn't happen. This message is displayed only for policy >>>> rejections. >>>> Does this still happen if you deploy the same file via the UI deployer? >>>> >>>> On 06/06/2010 03:30 PM, petergent wrote: >>>> >>>> >>>> >>>> >>>>> Thx for the reply. >>>>> The thing is: when I check "Handle Releases" and "Handle Snapshots" >>>>> both, I still receive this error. >>>>> The inclue pattern is is ' **/* '. >>>>> It's like Artifactory doesn't accept the 'repository.xml.lock' file. >>>>> >>>>> Yours, >>>>> Peter >>>>> >>>>> Noam Y. Tenne schreef: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> To change the policy of a repository, simply browse through (the web >>>>>> UI) to Admin -> Configuration -> Repositories and double-click the >>>>>> name of the repository you wish to edit (or select "edit" from the >>>>>> pop-up menu) to display the editor. Once in the editor you will notice >>>>>> the "Handle Releases" and "Handle Snapshots" checkboxes. >>>>>> You can find further configuration info in our wiki >>>>>> <http://wiki.jfrog.org/confluence/display/RTF/Managing+Repositories>. >>>>>> >>>>>> Have fun, >>>>>> Noam >>>>>> >>>>>> On 06/05/2010 09:47 PM, petergent wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi! >>>>>>> >>>>>>> I'm having this issue: >>>>>>> "Sending HTTP error code 409: The repository 'libs-snapshots-local' >>>>>>> rejected >>>>>>> the artifact 'libs-snapshots-local:repository.xml.lock" due to its >>>>>>> snapshot/release handling policy." >>>>>>> >>>>>>> How can I change the policy to allow this file? >>>>>>> This file comes from the maven-bundle-plugin from Apache Felix. >>>>>>> >>>>>>> Thank you in advance! >>>>>>> Yours, >>>>>>> Peter >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>>>>> lucky parental unit. See the prize list and enter to win: >>>>>> http://p.sf.net/sfu/thinkgeek-promo >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> Artifactory-users mailing list >>>>>> [email protected] >>>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>>>> lucky parental unit. See the prize list and enter to win: >>>>> http://p.sf.net/sfu/thinkgeek-promo >>>>> _______________________________________________ >>>>> Artifactory-users mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------------ >>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>>> lucky parental unit. See the prize list and enter to win: >>>> http://p.sf.net/sfu/thinkgeek-promo >>>> _______________________________________________ >>>> Artifactory-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users >>>> >>>> >>>> >>>> >>>> >>> ------------------------------------------------------------------------------ >>> ThinkGeek and WIRED's GeekDad team up for the Ultimate >>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >>> lucky parental unit. See the prize list and enter to win: >>> http://p.sf.net/sfu/thinkgeek-promo >>> _______________________________________________ >>> Artifactory-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/artifactory-users >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Artifactory-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/artifactory-users >> >> >> > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Artifactory-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/artifactory-users > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
