NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

ImageJ: JFrame development in Netbeans; help with the pom.xml file

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
xcoulon



Joined: 23 Jan 2009
Posts: 9
Location: Bakersfield, CA

PostPosted: Thu Mar 16, 2017 7:18 pm    Post subject: ImageJ: JFrame development in Netbeans; help with the pom.xml file Reply with quote

I get an error when I try to build my project, and I cannot get the GUI (JFrame) to appear. Here is the build error and the pom file. I don't know what the "list of direct or transitive dependencies" is or how to correct the error. Any help would be greatly appreciated.

The build error is:

build error messages:
--- maven-clean-plugin:3.0.0:clean (default-clean) @ ImageJStubProject ---

--- maven-enforcer-plugin:1.4.1:enforce (enforce-rules) @ ImageJStubProject ---
Rule 6: org.apache.maven.plugins.enforcer.BanCircularDependencies failed with message:
Circular Dependency found. Your project's groupId:artifactId combination must not exist in the list of direct or transitive dependencies.
cz.cuni.lf1:ImageJStubProject

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 4.509s
Finished at: Thu Mar 16 09:59:55 PDT 2017
Final Memory: 12M/227M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce-rules) on project ImageJStubProject: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]

I think my pom.xml file is a mess, but I don’t have a clear idea on how to fix it. This is the pom.xml file:

<?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>

<parent>
<groupId>org.scijava</groupId>
<artifactId>pom-scijava</artifactId>
<version>14.0.0</version>
<relativePath />
</parent>

<groupId>cz.cuni.lf1</groupId>
<artifactId>ImageJStubProject</artifactId>
<version>0.1.0-SNAPSHOT</version>

<name>RoA_</name>
<description>plugin for Martin Braekevelt</description>
<url>maven.apache.org</url>
<inceptionYear>2017</inceptionYear>
<organization>
<name>GAIAG</name>
<url>http://gaiag.net/</url>
</organization>
<licenses>
<license>
<name>Simplified BSD License</name>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>cchristophercoulon</id>
<name>Christopher Coulon</name>
<url>http://imagej.net/User:Rueden</url>
<roles>
<role>lead</role>
<role>developer</role>
<role>debugger</role>
<role>reviewer</role>
<role>support</role>
<role>maintainer</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
<name>Johannes Schindelin</name>
<url>http://imagej.net/User:Schindelin</url>
<roles><role>founder</role></roles>
<properties><id>dscho</id></properties>
</contributor>
<contributor>
<name>Olivier Burri</name>
<url>http://imagej.net/User:Oburri</url>
<properties><id>lacan</id></properties>
</contributor>
<contributor>
<name>Mark Hiner</name>
<url>http://imagej.net/User:Hinerm</url>
<properties><id>hinerm</id></properties>
</contributor>
<contributor>
<name>Jules Maselbas</name>
</contributor>
<contributor>
<name>Kota Miura</name>
<url>http://imagej.net/User:Miura</url>
<properties><id>cmci</id></properties>
</contributor>
<contributor>
<name>Yili Zhao</name>
<url>http://imagej.net/User:Panovr</url>
<properties><id>panovr</id></properties>
</contributor>
</contributors>

<mailingLists>
<mailingList>
<name>ImageJ Forum</name>
<archive>http://forum.imagej.net/</archive>
</mailingList>
</mailingLists>

<scm>
<connection>scm:git:git://github.com/imagej/example-legacy-plugin</connection>
<developerConnection>scm:git:git@github.com:imagej/example-legacy-plugin</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/imagej/example-legacy-plugin</url>
</scm>
<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/imagej/example-legacy-plugin/issues</url>
</issueManagement>
<ciManagement>
<system>None</system>
</ciManagement>

<properties>
<package-name>RoA_</package-name>
<main-class>RoA_.Run_RoA_</main-class>
<license.licenseName>bsd_2</license.licenseName>
<license.copyrightOwners>The GAIA Group</license.copyrightOwners>
</properties>

<dependencies>
<dependency>
<groupId>cz.cuni.lf1</groupId>
<artifactId>ImageJStubProject</artifactId>
<version>1.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>gov.nih.imagej</groupId>
<artifactId>imagej</artifactId>
<version>1.47</version>
<type>jar</type>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>Run_RoA_</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo