Last active
October 13, 2015 18:59
-
-
Save SubOptimal/bddda11a4d69e937a2e6 to your computer and use it in GitHub Desktop.
execute SquirrelSql with `mvn exec:exec -Dexec.executable="java"``
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>sub.optimal</groupId> | |
<artifactId>SquirrelSqlCLI</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<maven.compiler.source>1.7</maven.compiler.source> | |
<maven.compiler.target>1.7</maven.compiler.target> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>net.sf.squirrel-sql</groupId> | |
<artifactId>squirrel-sql</artifactId> | |
<version>3.5.0</version> | |
<scope>compile</scope> | |
<type>jar</type> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.4.0</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<configuration> | |
<excludeTransitive>true</excludeTransitive> | |
<outputDirectory>${dependencyDir}</outputDirectory> | |
<stripVersion>true</stripVersion> | |
</configuration> | |
<executions> | |
<execution> | |
<id>unpack</id> | |
<phase>initialize</phase> | |
<goals> | |
<goal>copy-dependencies</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.4.0</version> | |
<configuration> | |
<executable>java</executable> | |
<arguments> | |
<argument>-Dmyproperty=myvalue</argument> | |
<argument>-classpath</argument> | |
<classpath/> | |
<argument>net.sourceforge.squirrel_sql.client.Main</argument> | |
</arguments> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to push a never version into your local repository
mvn install:install-file -Dfile=squirrel-sql.jar -DgroupId=net.sf.squirrel-sql -DartifactId=squirrel-sql -Dversion=3.7.0 -Dpackaging=jar