Ignored pom xml как исправить

Why are some maven projects in IntelliJ greyed out?

enter image description here

Pratik Ambani's user avatar

asked Mar 24, 2017 at 16:25

powder366's user avatar

1

Seems images are better way to answer this question.

  1. Projects are greyed out when you ignore them in your IntelliJ workspace.

Ignored Projects

  1. To add those projects or modules back in your workspace, right click on them and click on unignore projects as shown in below screenshot.

Ignored Projects back in Workspace

  1. Alternatively, you can also go to File — Settings -> Build, execution and deployment -> Build Tools -> Maven -> Ignored Files, now select whichever projects/modules you may wish to retain in your IntelliJ workspace.

enter image description here

user's user avatar

user

14.4k6 gold badges25 silver badges123 bronze badges

answered Mar 24, 2017 at 16:33

Pratik Ambani's user avatar

Pratik AmbaniPratik Ambani

2,4761 gold badge18 silver badges26 bronze badges

5

Right click on the pom -> maven -> unignore. Then right click on pom -> maven -> reload project.

Seems some kind of bug when you open a child subdirectory then open the parent in IntelliJ.

answered Sep 1, 2021 at 20:15

rogerdpack's user avatar

rogerdpackrogerdpack

62k36 gold badges265 silver badges386 bronze badges

3

This is known issue and interlinked to 3 more IDEA issue. You can find more details here.

Indicate that pom.xml is ignored when editing it

Lot of us might spend more time and then end up deleting module & re-creating it.
But @Pratik Ambani solutions works great!!, option 3 worked in my case.

answered Jul 6, 2021 at 23:27

Vishwas Shenoy Alevoor's user avatar

Problem environment

Maven parent-child engineering project, generated when the sub-module is created

Problem Description

problem causes

Since the module with the same name was created before (the module with the same name was created before and deleted), there are traces in IDEA. Recreating a new module with the same name will make IDEA mistakenly think that it is a module that was deleted before, so this pom.xml file is automatically ignored

Solution

1. Click file> Setting to enter the setting

2. Find the lgnored file, uncheck the selected option on the right, and then click ok

3. It is recommended to click Refresh in Maven in the upper right corner, so that the pom.xml file will be changed back

Use this page to specify the pom.xml files or their paths of Maven modules, which you want to exclude from the project when you ignore a Maven subproject.

Item

Description

Path patterns

Enter the comma-separated list of paths to be ignored during the build. Wildcards are honored. For example, entering * will ignore all the files in the project. You can use Maven tool window to edit the specified patterns.

Ignored files

Check the individual files to be ignored during the build. If you have a multi-module project, IntelliJ IDEA lists all POM files of your project. Selecting the checkbox against a POM file will equal ignoring the project or module in the Maven structure. You can also use the Maven tool window to ignore or unignore projects from the importing.

Last modified: 18 May 2022


  1. Home


  2. Software Programming


  3. pom.xml is ignored intellij as

This topic has been deleted. Only users with topic management privileges can see it.


  • I did rebase to collect all the committs in one, and Iml’s missing file. Reconstructed it by looking at local history in IntellijIDEA. The modul’s been freshened again, but the man is not:

    введите сюда описание изображения

    On the left, it can be seen that the pom is grey and stricken, and on the right, a restored iml file. How do you fix it?


  • Somehow it worked.

    1. Remove the memory.
    2. Removal of disposal
    3. Subject module — right button of mouse — add framework support — maven

  • 1 / 1

Suggested Topics

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    O

    Finally, I managed to resolve it the following way, as indicated https://coderwall.com/p/e5fxrw/use-hibernate-4-3-x-with-jta-on-glassfish-4 I downloaded the version jar I’m using from Hibernate http://hibernate.org/orm/downloads/ I copied the required jars (quick required) at {Glassfish4 direcory}/glassfish/lib. I copied jboss-logging-3.3.2.Finish at {Glassfish4 direcory}/glassfish/lib/endorsedI changed the head of persistence.xml, thus remaining: <?xml version=»1.0″ encoding=»UTF-8″?>
    <persistence version=»2.1″
    xmlns=»http://xmlns.jcp.org/xml/ns/persistence» xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance»
    xsi:schemaLocation=»http://xmlns.jcp.org/xml/ns/persistence http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/persistence_2_1.xsd»>
    <persistence-unit name=»PsePU» transaction-type=»JTA»>
    <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
    <jta-data-source>jdbc/PseMySql</jta-data-source>
    <properties>
    <property name=»hibernate.dialect» value=»org.hibernate.dialect.MySQLDialect» />
    <!— GLASSFISH SPECIFIC: The following property is necessary for
    deployment within Glassfish. Note that each application
    server vendor has its own unique value. —>
    <property name=»hibernate.transaction.manager_lookup_class» value=»org.hibernate.transaction.SunONETransactionManagerLookup» />
    <property name=»hibernate.transaction.jta.platform» value=»org.hibernate.service.jta.platform.internal.SunOneJtaPlatform» />
    </properties>
    </persistence-unit>
    </persistence>
    I can already make the deployment, if anything comes up, I’ll update the post. Greetings.

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    A

    All the blame is these lines:int data = Integer.parseInt(elem[3]);
    int number = Integer.parseInt(elem[4])
    Use the sweet to clarify the situation. Stop the program on these lines and check the value of the variables. elem[3] and elem[4]♪ It’s almost certainly not the whole number of symbols, but some other text.UpdatingAt first, each line of the head shall be marked ‘#, for example.
    Then in the cycle, while conducting the test:
    If the symbol ‘#’ is the first in the row, let that line pass. It’ll look like,while(…){
    if (line[0]==’#’)
    continue;
    parceteamline(line, teamlist);
    }

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    S

    Mandatory elements must have the attribute minOccurs=»1″ and then close a xs:sequence You can’t put more elements, you must start another xs:sequence or another structure.In your case, the element any part of the sequence as the last element and the scheme would remain:<xs:complexType>
    <xs:sequence>
    <xs:element maxOccurs=»unbounded» name=»evento»>
    <xs:complexType>
    <xs:sequence>
    <xs:element name=»ID_INSTANCIA» type=»xs:string» minOccurs=»1″ />
    <xs:element name=»ACTIVIDAD» type=»xs:string» minOccurs=»1″ />
    <xs:any minOccurs=»1″ maxOccurs=»unbounded» processContents=»skip»/>
    </xs:sequence>
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;

    </xs:sequence>
    </xs:complexType>

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    F

    input Single Gate (not closed) :.reg {
    position: absolute;
    padding: 10px;
    margin-left: 300px;
    border-radius:10px;
    box-shadow: 0 1px 0 #ccc inset;
    transition:500ms all ease;
    width: 150px;
    }
    .reg:hover {
    width: 180px;
    }
    #log {
    margin-top: 150px;
    }
    #pass {
    margin-top: 200px;
    }
    #rep {
    margin-top: 250px;
    }<form>
    <input class = ‘reg’ id = ‘log’ placeholder = ‘Логин’ maxlength=»16″>
    <input class = ‘reg’ id = ‘pass’ placeholder = ‘Пароль’ type = ‘text’ maxlength=»10″>
    <input class = ‘reg’ id = ‘rep’ placeholder = ‘Повторите пароль’ type = ‘password’>
    </form>

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    P

    Put a mouse on the element you need, then press it. Alt+Enter and pick as a screamer: Default exports are bad practices, and you’ll be able to export properly:export { TestComp } instead export default TestComp

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    T

    tag View and tag fragments are different things. Fragment won’t be found by the fog designated for any one. View♪ he needs to take his own tag through the method ♪ FragmentManagere.g.:fragmentManager.beginTransaction().replace(R.id.fragment_container, mFragment, TAG);
    When you get the fragment on the screen, give him the tag as in the method above. And check the visibility after check NULL:if(fragment!=null && !fragment.isVisible()){
    //Log.i(TAG,dataSnapshot.getKey());
    push(dataSnapshot.getKey());
    }

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    jeanid

    And it’s been a month. I finally found the answer. It’s all set. https://www.youtube.com/watch?v=w_PsCNqqcE4&t video. This file is created by the following logic:<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.0.0</version>
    <executions>
    <execution>
    <phase>package</phase>
    <goals>
    <goal>shade</goal>
    </goals>
    <configuration>
    <transformers>
    <transformer
    implementation=»org.apache.maven.plugins.shade.resource.ManifestResourceTransformer»>
    <mainClass>MainLauncher</mainClass>
    </transformer>
    </transformers>
    </configuration>
    </execution>
    </executions>
    </plugin>
    It’s worth noting that there’s a launcher in the Taega, not a major class. Let’s say our main class is Main. The Launcher code then appears as follows:public class MainLauncher {
    public static void main(String[] args) {
    Main.main(args);
    }
    }
    It’s a very important moment, because without this jar, I don’t want to start. Next,’s our java-jar or common double-click.Here’s my pom.xml: <?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>
    &lt;groupId&gt;com.vladhuk&lt;/groupId&gt;
    &lt;artifactId&gt;MavenProject&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;

    &lt;dependencies&gt;
    &lt;dependency&gt;
    &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
    &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
    &lt;version&gt;11.0.1&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;dependency&gt;
    &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
    &lt;artifactId&gt;javafx-graphics&lt;/artifactId&gt;
    &lt;version&gt;11.0.1&lt;/version&gt;
    &lt;/dependency&gt;

    &lt;dependency&gt;
    &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
    &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
    &lt;version&gt;11.0.1&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;/dependencies&gt;

    &lt;build&gt;
    &lt;plugins&gt;
    &lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
    &lt;configuration&gt;
    &lt;source&gt;11&lt;/source&gt;
    &lt;target&gt;11&lt;/target&gt;
    &lt;encoding&gt;UTF-8&lt;/encoding&gt;
    &lt;/configuration&gt;
    &lt;/plugin&gt;

    &lt;plugin&gt;
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
    &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;1.2.1&lt;/version&gt;
    &lt;executions&gt;
    &lt;execution&gt;
    &lt;goals&gt;
    &lt;goal&gt;java&lt;/goal&gt;
    &lt;/goals&gt;
    &lt;/execution&gt;
    &lt;/executions&gt;
    &lt;configuration&gt;
    &lt;mainClass&gt;Main&lt;/mainClass&gt;
    &lt;/configuration&gt;
    &lt;/plugin&gt;

    &lt;plugin&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
    &lt;version&gt;3.0.0&lt;/version&gt;
    &lt;executions&gt;
    &lt;execution&gt;
    &lt;phase&gt;package&lt;/phase&gt;
    &lt;goals&gt;
    &lt;goal&gt;shade&lt;/goal&gt;
    &lt;/goals&gt;
    &lt;configuration&gt;
    &lt;transformers&gt;
    &lt;transformer
    implementation=»org.apache.maven.plugins.shade.resource.ManifestResourceTransformer»&gt;
    &lt;mainClass&gt;MainLauncher&lt;/mainClass&gt;
    &lt;/transformer&gt;
    &lt;/transformers&gt;
    &lt;/configuration&gt;
    &lt;/execution&gt;
    &lt;/executions&gt;
    &lt;/plugin&gt;
    &lt;/plugins&gt;
    &lt;/build&gt;

    </project>

  • 2

    0
    Votes

    2
    Posts

    1
    Views

    D

    You can add libraries to «lib/ext» folder as follows:
    <configuration>
    <jmeterExtensions>
    <artifact>kg.apc:jmeter-plugins-casutg:2.4</artifact>
    </jmeterExtensions>
    </configuration>

    Replace kg.apc:jmeter-plugins-casutg:2.4 with your own artifact in form of:
    groupId:artifactId:version

    References:

    Guide to naming conventions on groupId, artifactId and version
    Adding jar’s to the /lib/ext directory
    Five Ways To Launch a JMeter Test without Using the JMeter GUI

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    J

    You can see the maven servers directly. https://maven.apache.org/guides/mini/guide-central-repository-upload.html Alternative servers have paid and free repositories compatible with maven cm. https://mymavenrepo.com/ ♪ https://aws.amazon.com/s3/ (sighs) http://www.yegor256.com/2015/09/07/maven-repository-amazon-s3.html Instruction, https://www.jfrog.com/artifactory/buy-now/#Cloud etc.

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    Analeea

    Xml documents are good for LINQ.XElement source = XElement.Load(@»source.xml»);
    var parsed = (from date in source.Descendants(«Дата»)
    let d = new
    {
    Day = date.Element(«День»).Value,
    Month = date.Element(«Месяц»).Value,
    Year = date.Element(«Год»).Value
    }
    select d)
    .ToArray();
    It’s not gonna be anywhere, but it has to work.

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    G

    In pom.xml, the parent was misplaced that way.<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.2.RELEASE</version>
    <relativePath/>
    </parent>
    and dependence <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-tomcat</artifactId>
    </dependency>

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    K

    It’s possible in the code of the method to write to the log or the console of the glass (which can be obtained by using the method http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#getStackTrace() )UPDIf you want to analyze the chain of IDE challenge, IDEA has a thing. http://www.jetbrains.com/idea/webhelp/building-call-hierarchy.html ♪

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    emmalee

    Clicks on Enable Auto-import in the window in the right lower corner.

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    Alberto

    What you should do is add dependency to the servlets library. As you indicate that you work with maven, this would be dependency:<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <version>3.1.0</version>
    <!—
    scope provided porque no debes agregar estas librerías
    directamente al proyecto, el contenedor de servlets
    o servidor de aplicaciones que uses se encargará de
    brindar estas librerías
    —>
    <scope>provided</scope>
    </dependency>
    Adapted from: https://stackoverflow.com/a/22756202/1065197

  • 2

    0
    Votes

    2
    Posts

    0
    Views

    T

    ♪ write() Method xml_declaration=True Tell me.

  • Forum
  • Unread
  • Recent
  • Users
  • Groups
  • Menu
  • Jobs
  • Tools
  • Companies
  • Conferences
  • Courses

[Problem] IDEA Maven pom.xml is grayed out and strikethrough appears

Project pom.xml file is set in a maven ignore list in

Solution As shown in the figure, the file with strikethrough will be grayed out and uncheck

Read More:

Понравилась статья? Поделить с друзьями:
  • Как найти читера в стендофф 2
  • Как найти sftp сервер
  • На основании акта сверки выявлена ошибка за прошлый год как исправить
  • Как найти глубину жидкости в физике
  • Как найти цифру в круге