Add java as a dependency for designer - add designer profile

The designer can be started within "pmd-apex" by running

    mvn -P designer exec:java
This commit is contained in:
Andreas Dangel
2016-03-20 11:35:38 +01:00
parent 1a46ef9b05
commit d2b182f280
3 changed files with 35 additions and 0 deletions

View File

@ -119,4 +119,33 @@
</dependencies> </dependencies>
<profiles>
<profile>
<id>designer</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<configuration>
<mainClass>net.sourceforge.pmd.util.designer.Designer</mainClass>
<additionalClasspathElements>
<additionalClasspathElement>${basedir}/lib/apex-jorje-ide-1.0-sfdc-187-SNAPSHOT.jar</additionalClasspathElement>
<additionalClasspathElement>${basedir}/lib/apex-jorje-semantic-1.0-sfdc-187-SNAPSHOT-tests.jar</additionalClasspathElement>
</additionalClasspathElements>
<includePluginDependencies>true</includePluginDependencies>
</configuration>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

View File

@ -68,5 +68,10 @@
<artifactId>pmd-apex</artifactId> <artifactId>pmd-apex</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -901,5 +901,6 @@
<module>pmd-core</module> <module>pmd-core</module>
<module>pmd-dist</module> <module>pmd-dist</module>
<module>pmd-test</module> <module>pmd-test</module>
<module>pmd-java</module>
</modules> </modules>
</project> </project>