Maven: Customize web.xml of web-app project

is there a way to have two web.xml files and select the appropriate one depending on the profile? Yes, within each profile you can add a configuration of the maven-war-plugin and configure each to point at a different web.xml. <profiles> <profile> <id>profile1</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>/path/to/webXml1</webXml> </configuration> </plugin> … As an alternative … Read more

Is it possible to override the configuration of a plugin already defined for a profile in a parent POM?

Overriding configurations from a parent pom can be done by adding the combine.self=”override” attribute to the element in your pom. Try changing your plugin configuration to: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>my-testCompile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> <configuration combine.self=”override”> <fork>true</fork> <executable>${jdk15.executable}</executable> <compilerVersion>1.5</compilerVersion> <source>1.5</source> <target>1.5</target> <verbose>true</verbose> </configuration> </execution> </executions> </plugin> For more information on overriding plugins, see: … Read more

How to create a UserProfile form in Django with first_name, last_name modifications?

I stumbled across this today and after some googling I found a solution that is a bit cleaner in my opinion: #in forms.py class UserForm(forms.ModelForm): class Meta: model = User fields = [“username”, “email”] class UserProfileForm(forms.ModelForm): class Meta: model = UserProfile #in views.py def add_user(request): … if request.method == “POST”: uform = UserForm(data = request.POST) … Read more

A valid provisioning profile for this executable was not found for debug mode

It could be because your iphone is not recognized by the provisioning portal. Solution: 1) In Xcode, Goto –> Build –> clean all targets. 2) In “Groups & Files” –>Target –> expand it –> right click your app and select Clean “your app” 3) Goto->Window–>Organizer 4) In the Devices tab on the left, select your … Read more