profiles

clojure: profiles.clj not getting honored in some projects when using cider

柔情痞子 提交于 2019-12-05 20:21:01
I'm facing the same issue that is mentioned in the last comment in https://stackoverflow.com/a/25401281/4329629 (by Yu Shen) I don't know why adding :plugins [[cider/cider-nrepl "0.7.0"]] at ~/.lein/profiles.clj does not work. But the same expression: :plugins [[cider/cider-nrepl "0.7.0"]] at the project.clj of my project worked as expected. Till now i thought that all my projects were behaving this way, but today i found something different. Maybe a hint to what is going wrong? The 2 projects that behave differently have the following structure: ==================== project-1/project.clj

Maven: Using inherited property in dependency classifier causes build failure

孤街浪徒 提交于 2019-12-05 16:20:20
Given three POM files: C depends on B. B inherits from A. I can build A and B C fails to build because of its dependency on B. The full source-code and build output is included below for your review. Here is A's POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.foo</groupId> <artifactId>A</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>A</name> <repositories>

Django - how to write users and profiles handling in best way?

廉价感情. 提交于 2019-12-03 10:19:46
问题 I am writing simple site that requires users and profiles to be handled. The first initial thought is to use django's build in user handling, but then the user model is too narrow and does not contain fields that I need. The documentation mentions user profiles, but user profiles section has been removed from djangobook covering django 1.0 (ideally, the solution should work with django 1.2), and the Internet is full of different solutions, not making the choice easier (like user model

maven 整合 spring profiles功能

空扰寡人 提交于 2019-12-03 01:42:37
spring为beans标签提供了 profile功能 ,以便项目的开发和生成环境分离。 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> <beans profile="dev,test"> <context:property-placeholder location="classpath:application.properties" /> <bean id="dataSource" class=

Django - how to write users and profiles handling in best way?

点点圈 提交于 2019-12-03 00:46:56
I am writing simple site that requires users and profiles to be handled. The first initial thought is to use django's build in user handling, but then the user model is too narrow and does not contain fields that I need. The documentation mentions user profiles, but user profiles section has been removed from djangobook covering django 1.0 (ideally, the solution should work with django 1.2), and the Internet is full of different solutions, not making the choice easier (like user model inheritance, user profiles and django signals, and so on). I would like to know, how to write this in good,

Using profiles to control which Maven modules are built

青春壹個敷衍的年華 提交于 2019-11-30 13:08:48
问题 I have the following XML in my maven POM.xml: <profiles> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> <property> <name>default</name> <value>!disabled</value> </property> </activation> <modules> <module>m1</module> <module>m2</module> <module>m3</module> </modules> </profile> <profile> <id>x</id> <modules> <module>m1</module> </modules> </profile> </profiles> What I'm trying to achieve is this: When I run mvn install , I want it to build m1, m2 and m3

Django registration and multiple profiles

元气小坏坏 提交于 2019-11-28 17:20:16
I'm using django-registration in my application. I want to create different kinds of users with different profiles. For example, one user is a teacher and another user is a student. How can I modify registration to set the user_type and create the right profile? Long answer :p I've found The Missing Manual post invaluable for this kind of problem as it explains many of features of the django-profiles and django-registration systems. I'd suggest using multi table inheritance on the single profile you're allowed to set via the AUTH_PROFILE_MODULE For instance #models.py class Profile(models

Maven Change a value in a file based on profile

十年热恋 提交于 2019-11-28 05:51:35
I have a properties file called ApplicationResources.properties in my application with a property that changes depending on the environment. Let us say the property is: resources.location=/home/username/resources and this value is different when the application is executed during development and when the application goes into production. I know that I can use different profiles in Maven to perform different build tasks in different environments. What I want to do is somehow replace the value of the resources.location in the properties file based on the Maven profile in use. Is this even

Maven Build multiple profiles in one go

£可爱£侵袭症+ 提交于 2019-11-28 01:48:40
It is our policy to only build 1 deployable jar. all environment-specific configurations are kept separate, and we build them all together at once. so under our current Ant process, we have a properties file for each environment, loop over them, and create a set of config files for each environment. In my current POM XML, I'm able to build only one profile supplied at the Command-line. Is it possible to achieve through Maven? Here are some of the relevant part of POM.xml <!-- Define profiles here and make DEV as default profile --> <profiles> <!-- dev Profile --> <profile> <id>dev</id>

Skinning Android app with Maven build profiles

℡╲_俬逩灬. 提交于 2019-11-27 14:51:17
I've got mavenized Android application and customer wants support for the skinning at build time. For example: mvn clean install -P Developer, mvn clean install -P Customer1, mvn clean install -P Customer2 In other words, different customer needs little bit different set of images, different strings (appName, copyright, etc) and also, some of the elements in layouts should be hidden or shown (Developer profile), so different layouts too. My first thought was to have folders like res-customer1, res-customer2 in parallel with standard res directory and do the swap in profile definition in pom