[ https://issues.apache.org/jira/browse/TUSCANY-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Becker updated TUSCANY-2339: -------------------------------- Attachment: TUSCANY-2339.2.patch Hello Raymond, Thanks for your constructive suggestions. This new version of the patch, TUSCANY-2339.3.patch, will allow activation via a property, and it will allow the user to specify the property on the command line. So, as before, you can invoke the security profile via profile name (in which case it will use the default tuscany.policy at location file:///${java.home}/lib/security/tuscany.policy): mvn -P security Or you can invoke the security profile by adding a command line property: mvn "-Dtuscany.policy.file=file:///e:/tuscany.policy" > Java 2 Security - Provide Tuscany Maven profile to run vtest and itest with > Java 2 security enabled > --------------------------------------------------------------------------------------------------- > > Key: TUSCANY-2339 > URL: https://issues.apache.org/jira/browse/TUSCANY-2339 > Project: Tuscany > Issue Type: Improvement > Components: Java SCA Core Runtime > Environment: Maven profile should be operating system independent. > Reporter: Dan Becker > Attachments: TUSCANY-2339.2.patch > > > Provide Tuscany Maven profile to run vtest and itest with Java 2 security > enabled. This profile should specify a security profile for Tuscany, and > should run vtest and itests with Java 2 security enabled. > Run the profile with > mvn -P security. > Suggested profile addition to Tuscany java/sca pom.xml > <profile> > <id>security</id> > <modules> > <!-- <module>demos</module> --> > <module>itest</module> > <module>vtest</module> > </modules> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.3.1</version> > <configuration> > <includes> > <include>**/*TestCase.java</include> > </includes> > <reportFormat>brief</reportFormat> > <useFile>false</useFile> > <forkMode>once</forkMode> > <!-- Place tuscany.policy in your Java home > security directory. Alternatively, hardcode the file location here. --> > <argLine>-Djava.security.manager > -Djava.security.policy=file:///${java.home}/lib/security/tuscany.policy > -Dpolicy.allowSystemProperty=true -Djava.security.debug=policy</argLine> > </configuration> > </plugin> > </plugins> > </build> > </profile> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.