Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions enterprise/maven.j2ee/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@
<friend-packages>
<friend>org.netbeans.modules.maven.jaxws</friend>
<friend>org.netbeans.modules.payara.micro</friend>
<friend>org.netbeans.modules.payara.server.maven</friend>
<friend>org.netbeans.modules.jakarta.transformer</friend>
<package>org.netbeans.modules.maven.j2ee</package>
<package>org.netbeans.modules.maven.j2ee.execution</package>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ public void projectClosed() {
}
}
}

private void updateMicroIcon() {
SpecialIcon specialIcon = project.getLookup().lookup(SpecialIcon.class);
MicroIcon microIcon;
if (specialIcon instanceof MicroIcon) {
microIcon = (MicroIcon) specialIcon;
} else {
return;
for (SpecialIcon specialIcon : project.getLookup().lookupAll(SpecialIcon.class)) {
if (specialIcon instanceof MicroIcon) {
((MicroIcon) specialIcon).setProject(project);
return;
}
}
microIcon.setProject(project);
}

private void addDeployOnSaveManager(Project project) {
Expand Down
25 changes: 25 additions & 0 deletions enterprise/payara.server.maven/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

-->
<project basedir="." default="build" name="enterprise/payara.server.maven">
<description>Builds, tests, and runs the project org.netbeans.modules.payara.server.maven</description>
<import file="../../nbbuild/templates/projectized.xml"/>
</project>
5 changes: 5 additions & 0 deletions enterprise/payara.server.maven/manifest.mf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.payara.server.maven/0
OpenIDE-Module-Layer: org/netbeans/modules/payara/server/maven/layer.xml
OpenIDE-Module-Specification-Version: 1.0
18 changes: 18 additions & 0 deletions enterprise/payara.server.maven/nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
javac.source=1.8
javac.compilerargs=-Xlint -Xlint:-serial
172 changes: 172 additions & 0 deletions enterprise/payara.server.maven/nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

-->
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.apisupport.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.netbeans.modules.payara.server.maven</code-name-base>
<module-dependencies>
<dependency>
<code-name-base>org.netbeans.api.annotations.common</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.27.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.j2eeapis</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.35.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.j2eeserver</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>4</release-version>
<specification-version>1.116</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.maven</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>2</release-version>
<specification-version>2.133</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.maven.embedder</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>2</release-version>
<specification-version>2.58</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.maven.j2ee</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.65</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.payara.tooling</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>0</release-version>
<specification-version>2.5</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.projectapi</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.72</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.88.1.8</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.projectuiapi.base</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.85.1.9</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.execution</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.3.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.filesystems</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.10.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.7.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util.lookup</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>8.33.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.awt</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.73</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util.ui</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.6.1</specification-version>
</run-dependency>
</dependency>
</module-dependencies>
<public-packages>
<package>org.netbeans.modules.payara.server.maven.plugin</package>
</public-packages>
</data>
</configuration>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN"
"http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
</filesystem>
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.payara.server.maven.plugin;

import org.netbeans.api.annotations.common.StaticResource;
import org.netbeans.modules.maven.api.NbMavenProject;
import org.netbeans.spi.project.ActionProvider;

/**
* @author Gaurav Gupta <gaurav.gupta@azul.com>
*/
public interface Constants {

String WAR_PACKAGING = "war";

String MAVEN_WAR_PROJECT_TYPE = "org-netbeans-modules-maven/" + NbMavenProject.TYPE_WAR;

String PAYARA_SERVER_MAVEN_PLUGIN = "fish.payara.maven.plugins:payara-server-maven-plugin";

String PLUGIN_GROUP_ID = "fish.payara.maven.plugins";
String PLUGIN_ARTIFACT_ID = "payara-server-maven-plugin";

String RUN_SINGLE_ACTION = ActionProvider.COMMAND_RUN_SINGLE + ".deploy";
String DEBUG_SINGLE_ACTION = ActionProvider.COMMAND_DEBUG_SINGLE + ".deploy";
String PROFILE_SINGLE_ACTION = ActionProvider.COMMAND_PROFILE_SINGLE + ".deploy";

// ── Preference keys (stored per-project via ProjectUtils.getPreferences) ──
String PREF_SERVER_VERSION = "payaraServerVersion";
String PREF_SERVER_PATH = "payaraServerPath";
String PREF_DOMAIN_NAME = "domainName";
String PREF_CONTEXT_ROOT = "contextRoot";
String PREF_EXPLODED = "exploded";
String PREF_REMOTE = "remote";
String PREF_HOST_NAME = "hostName";
String PREF_ADMIN_PORT = "adminPort";
String PREF_ADMIN_USER = "adminUser";
String PREF_INSTANCE_NAME = "instanceName";
String PREF_HOT_DEPLOY = "hotDeploy";
String PREF_AUTO_DEPLOY = "autoDeploy";
String PREF_LIVE_RELOAD = "liveReload";
String PREF_KEEP_STATE = "keepState";
String PREF_TRIM_LOG = "trimLog";
String PREF_DAEMON = "daemon";
String PREF_IGNORE_TEST = "ignoreTestChanges";

// ── Maven property names (passed as -D arguments to the plugin) ──────────
String MVNPROP_SERVER_VERSION = "payara.server.version";
String MVNPROP_SERVER_PATH = "payara.server.path";
String MVNPROP_DOMAIN_NAME = "payara.domain.name";
String MVNPROP_CONTEXT_ROOT = "payara.context.root";
String MVNPROP_EXPLODED = "payara.exploded";
String MVNPROP_REMOTE = "payara.remote";
String MVNPROP_HOST_NAME = "payara.host.name";
String MVNPROP_ADMIN_PORT = "payara.admin.port";
String MVNPROP_ADMIN_USER = "payara.admin.user";
String MVNPROP_INSTANCE_NAME = "payara.instance.name";
String MVNPROP_HOT_DEPLOY = "payara.hot.deploy";
String MVNPROP_AUTO_DEPLOY = "payara.auto.deploy";
String MVNPROP_LIVE_RELOAD = "payara.live.reload";
String MVNPROP_KEEP_STATE = "payara.keep.state";
String MVNPROP_TRIM_LOG = "payara.trim.log";
String MVNPROP_DAEMON = "payara.daemon";
String MVNPROP_IGNORE_TEST = "payara.ignore.test.changes";
String PREF_AI_AGENT = "aiAgent";
String PREF_AI_API_KEY = "aiApiKey";
String PREF_AI_PROVIDER = "aiProvider";
String PREF_AI_PROVIDER_LOC = "aiProviderLocation";
String PREF_AI_MODEL = "aiModel";

String ENV_AI_API_KEY = "PAYARA_AI_API_KEY";

String MVNPROP_AI_AGENT = "payara.ai.agent";
String MVNPROP_AI_API_KEY = "payara.ai.api.key";
String MVNPROP_AI_PROVIDER = "payara.ai.provider";
String MVNPROP_AI_PROVIDER_LOC = "payara.ai.provider.location";
String MVNPROP_AI_MODEL = "payara.ai.model";

@StaticResource
String PROJECT_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven.png";

@StaticResource
String CLEAN_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-clean.png";

@StaticResource
String BUILD_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-build.png";

@StaticResource
String REBUILD_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-clean-build.png";

@StaticResource
String START_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-start.png";

@StaticResource
String RESTART_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-restart.png";

@StaticResource
String RELOAD_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-reload.png";

@StaticResource
String DEBUG_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-debug.png";

@StaticResource
String PROFILE_ICON = "org/netbeans/modules/payara/server/maven/project/resources/payara-server-maven-profile.png";
}
Loading
Loading